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

The osg widget updater updates the position of the widgets based upon the 3D location of the model. The updater also has a dynamic group ordering mode that brings the widget to the front of all the other widgets when the widget is being hovered over OR if its parent scene object has been selected.

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

Public Types

typedef std::vector< DtWidget * > WidgetList
 

Public Member Functions

 DtWidgetUpdater (DtDe &de)
 
 ~DtWidgetUpdater ()
 
virtual void setVisible (bool isVisible)
 
void addWidget (DtWidget *widget)
 
void removeWidget (DtWidget *widget)
 
WidgetListwidgets ()
 
void update (const DtVector &worldPosition)
 
void updateGeocentric (const DtVector &worldPosition)
 
- 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 DtVectorboundingBoxExtents () const
 
void getBoundingBoxExtents (double &x, double &y, double &z) const
 
const DtVectorboundingBoxCenter () const
 
void getBoundingBoxCenter (double &x, double &y, double &z) const
 
void getBoundingBoxComponents (DtVector &minimum, DtVector &maximum)
 
const DtVectorallGeometryboundingBoxExtents () const
 
void getAllGeometryBoundingBoxExtents (double &x, double &y, double &z) const
 
const DtVectorallGeometryboundingBoxCenter () 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
 
std::map< DtWidget
*, DtWidgetInstanceSignaler * > 
myWidgetInstanceSignalersMap
 
- 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
 

Member Typedef Documentation

Constructor & Destructor Documentation

makVrv::DtWidgetUpdater::DtWidgetUpdater ( DtDe de)

Create a widget updater.

makVrv::DtWidgetUpdater::~DtWidgetUpdater ( )

DTOR.

Member Function Documentation

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

Set whether the model is visible or not.

Implements makVrv::DtModelInstance.

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

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

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

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

WidgetList& makVrv::DtWidgetUpdater::widgets ( )

Get a list of the widgets the updater is updating.

void makVrv::DtWidgetUpdater::update ( const DtVector worldPosition)
void makVrv::DtWidgetUpdater::updateGeocentric ( const DtVector worldPosition)

Member Data Documentation

std::vector<DtWidget*> makVrv::DtWidgetUpdater::myWidgets
protected
std::map<DtWidget*, DtWidgetInstanceSignaler*> makVrv::DtWidgetUpdater::myWidgetInstanceSignalersMap
protected

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)