![]() |
VR-Forces Developer's Guide
|
This updater provides a way to modifiy a set of widgets that are added to it. Typically a set of widgets would be per a model such as DtProjectedWidgetModel. One of the main uses for the widget updater is to modify the position of the widgets based upon the 3D location of the model. A select number of other utility methods are provided that operate on all widgets currently added to this updater.

Public Member Functions | |
| DtWidgetUpdater (DtDe &de) | |
| ~DtWidgetUpdater () | |
| DtWidgetUpdater ()=delete | |
| DtWidgetUpdater (const DtWidgetUpdater &other)=delete | |
| DtWidgetUpdater (const DtWidgetUpdater &&other)=delete | |
| DtWidgetUpdater & | operator= (const DtWidgetUpdater &other)=delete |
| DtWidgetUpdater & | operator= (const DtWidgetUpdater &&other)=delete |
| virtual void | addWidget (DtWidget *widget) |
| virtual void | removeWidget (DtWidget *widget) |
| virtual void | setVisible (bool isVisible) |
| virtual void | update (const DtVector &worldPosition) |
| virtual void | updateGeocentric (const DtVector &worldPosition) |
| virtual void | setOrderGroup (int orderGroup) |
| virtual void | setParentId (const DtUniqueID &parentId) |
| virtual void | setWidgetLabelText (const DtUnicode &text) |
Public Member Functions inherited from makVrv::DtModelInstance | |
| DtModelInstance (DtDe &de) | |
| virtual | ~DtModelInstance () |
| virtual bool | realize (const DtModelDefinition &definition) |
| virtual bool | cloneInstance (const DtModelDefinition &definition) |
| const std::string & | realizedDefinitionName () const |
| virtual bool | saveModelToFile (const std::string &filename) const |
| const DtVector & | boundingBoxExtents () const |
| void | getBoundingBoxExtents (double &x, double &y, double &z) const |
| const DtVector & | boundingBoxCenter () const |
| void | getBoundingBoxCenter (double &x, double &y, double &z) const |
| void | getBoundingBoxComponents (DtVector &minimum, DtVector &maximum) |
| const DtVector & | allGeometryboundingBoxExtents () const |
| void | getAllGeometryBoundingBoxExtents (double &x, double &y, double &z) const |
| const DtVector & | allGeometryboundingBoxCenter () const |
| void | getAllGeometryBoundingBoxCenter (double &x, double &y, double &z) const |
| void | getAllGeometryBoundingBoxComponents (DtVector &minimum, DtVector &maximum) |
| virtual void | setContributesToBound (bool trueOrFalse) |
| bool | contributesToBound () const |
| virtual void | setBlendColor (float r, float g, float b, float a) |
| virtual void | enableColorBlending (bool b) |
Protected Attributes | |
| std::vector< DtWidget * > | myWidgets |
Protected Attributes inherited from makVrv::DtModelInstance | |
| DtDe & | myDe |
| std::string | myRealizedModelDefinitionName |
| DtVector | myBoundingBoxCenter |
| DtVector | myBoundingBoxExtents |
| DtVector | myBoundingBoxMinimum |
| DtVector | myBoundingBoxMaximum |
| DtVector | myAllGeometryBoundingBoxCenter |
| DtVector | myAllGeometryBoundingBoxExtents |
| DtVector | myAllGeometryBoundingBoxMinimum |
| DtVector | myAllGeometryBoundingBoxMaximum |
| bool | myContributesToBound |
| bool | myColorBlendingEnabled |
| float | myBlendRed |
| float | myBlendBlue |
| float | myBlendGreen |
| float | myBlendAlpha |
Additional Inherited Members | |
Static Public Member Functions inherited from makVrv::DtModelInstance | |
| static float | readFloat (const std::string ¶mName, const DtModelDefinition &definition) |
| static DtVector | readVector (const std::string ¶mName, const DtModelDefinition &definition) |
| static DtVector4< float > | readVector4 (const std::string ¶mName, const DtModelDefinition &definition) |
Public Attributes inherited from makVrv::DtModelInstance | |
| boost::signalslib::signal < void(DtModelInstance *)> | signal_modelInstanceChanged |
| makVrv::DtWidgetUpdater::DtWidgetUpdater | ( | DtDe & | de | ) |
Create a widget updater.
| makVrv::DtWidgetUpdater::~DtWidgetUpdater | ( | ) |
DTOR.
|
delete |
Default Constructor not implemented.
|
delete |
Copy Constructor not implemented - Copy not allowed.
|
delete |
Move Constructor not implemented - Move not allowed.
|
delete |
Assignment Operator not implemented - Assignment not allowed.
|
delete |
Move Assignment Operator not implemented - Move Assignment not allowed.
|
virtual |
Add a widget to the updater. The updater will NOT deallocate the widget on destruction.
|
virtual |
Remove a widget from the updater. The widget must be removed from the updater before it is destroyed.
|
virtual |
Set whether the model is visible or not.
Implements makVrv::DtModelInstance.
|
virtual |
Sets the world position for all widgets.
|
virtual |
Sets the geocentric world position for all widgets.
|
virtual |
Sets the order group number for all widgets.
|
virtual |
Sets the parent id for all widgets.
|
virtual |
Sets the text for all widgets based from DtWidgetLabel.
|
protected |