VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
makVrv::DtWidgetUpdater Class Reference

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.

Inheritance diagram for makVrv::DtWidgetUpdater:
Inheritance graph
[legend]

Public Member Functions

 DtWidgetUpdater (DtDe &de)
 
 ~DtWidgetUpdater ()
 
 DtWidgetUpdater ()=delete
 
 DtWidgetUpdater (const DtWidgetUpdater &other)=delete
 
 DtWidgetUpdater (const DtWidgetUpdater &&other)=delete
 
DtWidgetUpdateroperator= (const DtWidgetUpdater &other)=delete
 
DtWidgetUpdateroperator= (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
DtDemyDe
 
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 &paramName, const DtModelDefinition &definition)
 
static DtVector readVector (const std::string &paramName, const DtModelDefinition &definition)
 
static DtVector4< float > readVector4 (const std::string &paramName, const DtModelDefinition &definition)
 
- Public Attributes inherited from makVrv::DtModelInstance
boost::signalslib::signal
< void(DtModelInstance *)> 
signal_modelInstanceChanged
 

Constructor & Destructor Documentation

makVrv::DtWidgetUpdater::DtWidgetUpdater ( DtDe de)

Create a widget updater.

makVrv::DtWidgetUpdater::~DtWidgetUpdater ( )

DTOR.

makVrv::DtWidgetUpdater::DtWidgetUpdater ( )
delete

Default Constructor not implemented.

makVrv::DtWidgetUpdater::DtWidgetUpdater ( const DtWidgetUpdater other)
delete

Copy Constructor not implemented - Copy not allowed.

makVrv::DtWidgetUpdater::DtWidgetUpdater ( const DtWidgetUpdater &&  other)
delete

Move Constructor not implemented - Move not allowed.

Member Function Documentation

DtWidgetUpdater& makVrv::DtWidgetUpdater::operator= ( const DtWidgetUpdater other)
delete

Assignment Operator not implemented - Assignment not allowed.

DtWidgetUpdater& makVrv::DtWidgetUpdater::operator= ( const DtWidgetUpdater &&  other)
delete

Move Assignment Operator not implemented - Move Assignment not allowed.

virtual void makVrv::DtWidgetUpdater::addWidget ( DtWidget widget)
virtual

Add a widget to the updater. The updater will NOT deallocate the widget on destruction.

virtual void makVrv::DtWidgetUpdater::removeWidget ( DtWidget widget)
virtual

Remove a widget from the updater. The widget must be removed from the updater before it is destroyed.

virtual void makVrv::DtWidgetUpdater::setVisible ( bool  isVisible)
virtual

Set whether the model is visible or not.

Implements makVrv::DtModelInstance.

virtual void makVrv::DtWidgetUpdater::update ( const DtVector &  worldPosition)
virtual

Sets the world position for all widgets.

virtual void makVrv::DtWidgetUpdater::updateGeocentric ( const DtVector &  worldPosition)
virtual

Sets the geocentric world position for all widgets.

virtual void makVrv::DtWidgetUpdater::setOrderGroup ( int  orderGroup)
virtual

Sets the order group number for all widgets.

virtual void makVrv::DtWidgetUpdater::setParentId ( const DtUniqueID parentId)
virtual

Sets the parent id for all widgets.

virtual void makVrv::DtWidgetUpdater::setWidgetLabelText ( const DtUnicode text)
virtual

Sets the text for all widgets based from DtWidgetLabel.

Member Data Documentation

std::vector<DtWidget*> makVrv::DtWidgetUpdater::myWidgets
protected

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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)