vrecko
virtual reality framework
|
#include <Icon.h>
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 |
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.
Icon::Icon | ( | ) |
Icon::~Icon | ( | ) |
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.
|
virtual |
|
protected |
|
protected |
Used only if this Icon type is switch.
|
protected |
Original (loaded from .3ds) color of part of icon.
|
protected |
Type of this icon.