VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtAttributeGroupIndicator Class Reference

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) More...
 
virtual void setColor (float r, float g, float b, float a=1.)
 Sets the color filter for the indicator. More...
 
virtual
DtProjectedWidgetModelAgent * 
model ()
 Get the model which can be added to the scene objects. More...
 
virtual void setEventsEnabled (bool enabled)
 Enable/disable event handling for the widget. More...
 
virtual DtWidgetEventSignalseventSignals (DtWidgetSignaler &signaler)
 Get the widget agent for the indicator. If the signals. More...
 
virtual void setAttributeGroupVisible (bool visible)
 Set the attribute group's visibility. More...
 
virtual void setAttributeVisible (unsigned int index, bool visible)
 Set the visibility of an attribute within the attribute group. More...
 
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. More...
 
virtual bool isVisible ()
 Returns true IFF all criteria for the attribute group to be visible are satisfied. More...
 
virtual void setAttributeType (unsigned int index, const DtUnicode &name, AttributeType t)
 Set the type of the attribute at index. More...
 
virtual void setValueImage (unsigned int index, const std::string &imageFilepath)
 Set the value of the index'th attribute to the image filename. More...
 
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. More...
 
virtual void setValueBarValue (unsigned int index, float val)
 Set the value bar value for the index'th attribute. More...
 
virtual void setValueNumeric (unsigned int index, float val)
 Set the numeric value for the index'th attribute. More...
 
virtual void setMouseIn (bool mouseIn)
 Set whether or not the mouse is in the indicator. More...
 
virtual void toggleLockState ()
 Toggle whether or not the attribute group is locked to visible. More...
 

Protected Member Functions

virtual void updateVisibility ()
 Update the visibility of the component widgets according to current visibility state. More...
 

Protected Attributes

DtAgentManagerInterfacemySceneInterface
 
DtWidgetInstanceSignalermyWidgetSignaler
 
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< boolmyAttributeVisibility
 

Detailed Description

The indicator widget.

Member Enumeration Documentation

anonymous enum
Enumerator
MaxGraphPoints 
Enumerator
AttributeTypeNull 
AttributeTypeImage 
AttributeTypeNumeric 
AttributeTypeText 
AttributeTypeGraph 
AttributeTypeValueBar 

Constructor & Destructor Documentation

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

Member Function Documentation

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 ( )
protectedvirtual

Update the visibility of the component widgets according to current visibility state.

Member Data Documentation

DtAgentManagerInterface& makVrv::DtAttributeGroupIndicator::mySceneInterface
protected
DtWidgetInstanceSignaler* makVrv::DtAttributeGroupIndicator::myWidgetSignaler
protected
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::myEventsEnabled
protected
bool makVrv::DtAttributeGroupIndicator::myMouseIn
protected
bool makVrv::DtAttributeGroupIndicator::myAttributeGroupLocked
protected
bool makVrv::DtAttributeGroupIndicator::myVisible
protected
bool makVrv::DtAttributeGroupIndicator::myGroupVisible
protected
std::vector<bool> makVrv::DtAttributeGroupIndicator::myAttributeVisibility
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)