vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Icon Class Reference

Icon. More...

#include <Icon.h>

Inheritance diagram for Icon:

Public Member Functions

 Icon ()
 
 ~Icon ()
 
void clicked ()
 
int load (XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *IconNode)
 
bool loadXMLParameters (XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *parametersNode)
 
void postInitialize ()
 
void pointed (bool pointed)
 
void save (XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *Document, XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *IconNode)
 
void setColorofPart (std::string partName, osg::Vec4 *newColor)
 Recolor given part of geometry of icon. More...
 
virtual void update ()
 

Protected Attributes

IconType type
 Type of this icon. More...
 
bool defaultState
 Used only if this Icon type is switch. More...
 
osg::Vec4 originalColor
 Original (loaded from .3ds) color of part of icon. More...
 
std::string colorablePartName
 

Detailed Description

Icon.

Ability for simple adding button or switches to scene. Handle situations, when user point to Icon and click on Icon. Ability should be added as child to EO with some geometry.

Author
Jiri Chmelik
Date
2010

Constructor & Destructor Documentation

Icon::Icon ( )
Icon::~Icon ( )

Member Function Documentation

void Icon::clicked ( )
int Icon::load ( XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *  IconNode)
bool Icon::loadXMLParameters ( XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *  parametersNode)
void Icon::pointed ( bool  pointed)
void Icon::postInitialize ( void  )
void Icon::save ( XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *  Document,
XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *  IconNode 
)
void Icon::setColorofPart ( std::string  partName,
osg::Vec4 *  newColor 
)

Recolor given part of geometry of icon.

void Icon::update ( void  )
virtual

Member Data Documentation

std::string Icon::colorablePartName
protected
bool Icon::defaultState
protected

Used only if this Icon type is switch.

osg::Vec4 Icon::originalColor
protected

Original (loaded from .3ds) color of part of icon.

IconType Icon::type
protected

Type of this icon.


The documentation for this class was generated from the following files: