![]() |
VR-Forces 4.0.4 Class Documentation
|
The indicator widget. More...
Public Types | |
| enum | { MaxGraphPoints = 10 } |
| enum | AttributeType { AttributeTypeNull, AttributeTypeImage, AttributeTypeNumeric, AttributeTypeText, AttributeTypeGraph, AttributeTypeValueBar } |
Public Member Functions | |
| DtAttributeGroupIndicator (DtAgentManagerInterface &sceneInterface, unsigned int modelSet, const std::string &normalTheme="AttributeGroupIndicatorTheme", const std::string &pinnedTheme="AttributeGroupPinnedTheme", int height=16, int width=16) | |
| virtual | ~DtAttributeGroupIndicator () |
| virtual void | setIndicatorActive (bool active) |
| Sets the indicator state to active/inactive (i.e. pinned) | |
| virtual void | setColor (float r, float g, float b, float a=1.) |
| Sets the color filter for the indicator. | |
| virtual DtProjectedWidgetModelAgent * | model () |
| Get the model which can be added to the scene objects. | |
| virtual void | setEventsEnabled (bool enabled) |
| Enable/disable event handling for the widget. | |
| virtual DtWidgetEventSignals & | eventSignals (DtWidgetSignaler &signaler) |
| Get the widget agent for the indicator. If the signals. | |
| virtual void | setAttributeGroupVisible (bool visible) |
| Set the attribute group's visibility. | |
| virtual void | setAttributeVisible (unsigned int index, bool visible) |
| Set the visibility of an attribute within the attribute group. | |
| virtual void | setVisible (bool visible) |
| Set the attribute group's visiblity; This is combined with setAttributeGroupVisible, so for example calling setAttributeGroupVisible(false) and setVisible(true) will leave the attribute group hidden. | |
| virtual bool | isVisible () |
| Returns true IFF all criteria for the attribute group to be visible are satisfied. | |
| virtual void | setAttributeType (unsigned int index, const DtUnicode &name, AttributeType t) |
| Set the type of the attribute at index. | |
| virtual void | setValueImage (unsigned int index, const std::string &imageFilepath) |
| Set the value of the index'th attribute to the image filename. | |
| virtual void | setValueGraphPoint (unsigned int index, unsigned int n, float x, float y) |
| Set the line graph's nth x,y values for the index'th attribute. | |
| virtual void | setValueBarValue (unsigned int index, float val) |
| Set the value bar value for the index'th attribute. | |
| virtual void | setValueNumeric (unsigned int index, float val) |
| Set the numeric value for the index'th attribute. | |
| virtual void | setMouseIn (bool mouseIn) |
| Set whether or not the mouse is in the indicator. | |
| virtual void | toggleLockState () |
| Toggle whether or not the attribute group is locked to visible. | |
Protected Member Functions | |
| virtual void | updateVisibility () |
| Update the visibility of the component widgets according to current visibility state. | |
Protected Attributes | |
| DtAgentManagerInterface & | mySceneInterface |
| DtWidgetInstanceSignaler * | myWidgetSignaler |
| DtProjectedWidgetModelAgent * | myProjectedWidgetModel |
| DtWidgetAgent * | myWidgetAgent |
| DtAttributeGroupWidgetAgent * | myAttributeGroupWidgetAgent |
| std::string | myNormalTheme |
| std::string | myPinnedTheme |
| bool | mySelected |
| bool | myEventsEnabled |
| bool | myMouseIn |
| bool | myAttributeGroupLocked |
| bool | myVisible |
| bool | myGroupVisible |
| std::vector< bool > | myAttributeVisibility |
The indicator widget.
| makVrv::DtAttributeGroupIndicator::DtAttributeGroupIndicator | ( | DtAgentManagerInterface & | sceneInterface, |
| unsigned int | modelSet, | ||
| const std::string & | normalTheme = "AttributeGroupIndicatorTheme", |
||
| const std::string & | pinnedTheme = "AttributeGroupPinnedTheme", |
||
| int | height = 16, |
||
| int | width = 16 |
||
| ) |
| virtual makVrv::DtAttributeGroupIndicator::~DtAttributeGroupIndicator | ( | ) | [virtual] |
| virtual void makVrv::DtAttributeGroupIndicator::setIndicatorActive | ( | bool | active | ) | [virtual] |
Sets the indicator state to active/inactive (i.e. pinned)
| virtual void makVrv::DtAttributeGroupIndicator::setColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a = 1. |
||
| ) | [virtual] |
Sets the color filter for the indicator.
| virtual DtProjectedWidgetModelAgent* makVrv::DtAttributeGroupIndicator::model | ( | ) | [virtual] |
Get the model which can be added to the scene objects.
| virtual void makVrv::DtAttributeGroupIndicator::setEventsEnabled | ( | bool | enabled | ) | [virtual] |
Enable/disable event handling for the widget.
| virtual DtWidgetEventSignals& makVrv::DtAttributeGroupIndicator::eventSignals | ( | DtWidgetSignaler & | signaler | ) | [virtual] |
Get the widget agent for the indicator. If the signals.
| virtual void makVrv::DtAttributeGroupIndicator::setAttributeGroupVisible | ( | bool | visible | ) | [virtual] |
Set the attribute group's visibility.
| virtual void makVrv::DtAttributeGroupIndicator::setAttributeVisible | ( | unsigned int | index, |
| bool | visible | ||
| ) | [virtual] |
Set the visibility of an attribute within the attribute group.
| virtual void makVrv::DtAttributeGroupIndicator::setVisible | ( | bool | visible | ) | [virtual] |
Set the attribute group's visiblity; This is combined with setAttributeGroupVisible, so for example calling setAttributeGroupVisible(false) and setVisible(true) will leave the attribute group hidden.
| virtual bool makVrv::DtAttributeGroupIndicator::isVisible | ( | ) | [virtual] |
Returns true IFF all criteria for the attribute group to be visible are satisfied.
| virtual void makVrv::DtAttributeGroupIndicator::setAttributeType | ( | unsigned int | index, |
| const DtUnicode & | name, | ||
| AttributeType | t | ||
| ) | [virtual] |
Set the type of the attribute at index.
| virtual void makVrv::DtAttributeGroupIndicator::setValueImage | ( | unsigned int | index, |
| const std::string & | imageFilepath | ||
| ) | [virtual] |
Set the value of the index'th attribute to the image filename.
| virtual void makVrv::DtAttributeGroupIndicator::setValueGraphPoint | ( | unsigned int | index, |
| unsigned int | n, | ||
| float | x, | ||
| float | y | ||
| ) | [virtual] |
Set the line graph's nth x,y values for the index'th attribute.
| virtual void makVrv::DtAttributeGroupIndicator::setValueBarValue | ( | unsigned int | index, |
| float | val | ||
| ) | [virtual] |
Set the value bar value for the index'th attribute.
| virtual void makVrv::DtAttributeGroupIndicator::setValueNumeric | ( | unsigned int | index, |
| float | val | ||
| ) | [virtual] |
Set the numeric value for the index'th attribute.
| virtual void makVrv::DtAttributeGroupIndicator::setMouseIn | ( | bool | mouseIn | ) | [virtual] |
Set whether or not the mouse is in the indicator.
| virtual void makVrv::DtAttributeGroupIndicator::toggleLockState | ( | ) | [virtual] |
Toggle whether or not the attribute group is locked to visible.
| virtual void makVrv::DtAttributeGroupIndicator::updateVisibility | ( | ) | [protected, virtual] |
Update the visibility of the component widgets according to current visibility state.
DtProjectedWidgetModelAgent* makVrv::DtAttributeGroupIndicator::myProjectedWidgetModel [protected] |
DtWidgetAgent* makVrv::DtAttributeGroupIndicator::myWidgetAgent [protected] |
DtAttributeGroupWidgetAgent* makVrv::DtAttributeGroupIndicator::myAttributeGroupWidgetAgent [protected] |
std::string makVrv::DtAttributeGroupIndicator::myNormalTheme [protected] |
std::string makVrv::DtAttributeGroupIndicator::myPinnedTheme [protected] |
bool makVrv::DtAttributeGroupIndicator::mySelected [protected] |
bool makVrv::DtAttributeGroupIndicator::myMouseIn [protected] |
bool makVrv::DtAttributeGroupIndicator::myVisible [protected] |
std::vector<bool> makVrv::DtAttributeGroupIndicator::myAttributeVisibility [protected] |