![]() |
VR-Forces 4.6.1 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 |
|
virtual |
Sets the indicator state to active/inactive (i.e. pinned)
|
virtual |
Sets the color filter for the indicator.
|
virtual |
Get the model which can be added to the scene objects.
|
virtual |
Enable/disable event handling for the widget.
|
virtual |
Get the widget agent for the indicator. If the signals.
|
virtual |
Set the attribute group's visibility.
|
virtual |
Set the visibility of an attribute within the attribute group.
|
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 |
Returns true IFF all criteria for the attribute group to be visible are satisfied.
|
virtual |
Set the type of the attribute at index.
|
virtual |
Set the value of the index'th attribute to the image filename.
|
virtual |
Set the line graph's nth x,y values for the index'th attribute.
|
virtual |
Set the value bar value for the index'th attribute.
|
virtual |
Set the numeric value for the index'th attribute.
|
virtual |
Set whether or not the mouse is in the indicator.
|
virtual |
Toggle whether or not the attribute group is locked to visible.
|
protectedvirtual |
Update the visibility of the component widgets according to current visibility state.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |