![]() |
VR-Forces 4.0.4 Class Documentation
|
The osg widget updater updates the position of the widgets based upon the 3D location of the model. More...

Public Types | |
| typedef std::vector< DtWidget * > | WidgetList |
Public Member Functions | |
| DtOsgWidgetUpdater (DtDe &de) | |
| Create a widget updater. | |
| virtual void | setVisible (bool isVisible) |
| Det the. | |
| virtual void | setVisibleViaSwitch (bool isVisible) |
| Set whether the model is visible or not. | |
| void | addWidget (DtWidget *widget) |
| Add a widget to the updater. | |
| void | removeWidget (DtWidget *widget) |
| Remove a widget from the updater. | |
| WidgetList & | widgets () |
| Get a list of the widgets the updater is updating. | |
| void | update (const osg::Vec3d &worldPosition) |
| void | updateGeocentric (const osg::Vec3d &worldPosition) |
Protected Attributes | |
| std::vector< DtWidget * > | myWidgets |
The osg widget updater updates the position of the widgets based upon the 3D location of the model.
| typedef std::vector<DtWidget*> makVrv::DtOsgWidgetUpdater::WidgetList |
Create a widget updater.
| virtual void makVrv::DtOsgWidgetUpdater::setVisible | ( | bool | isVisible | ) | [virtual] |
Det the.
Implements makVrv::DtModelInstance.
| virtual void makVrv::DtOsgWidgetUpdater::setVisibleViaSwitch | ( | bool | isVisible | ) | [virtual] |
Set whether the model is visible or not.
Implements makVrv::DtModelInstance.
| void makVrv::DtOsgWidgetUpdater::addWidget | ( | DtWidget * | widget | ) |
Add a widget to the updater.
The updater will NOT deallocate the widget on destruction.
| void makVrv::DtOsgWidgetUpdater::removeWidget | ( | DtWidget * | widget | ) |
Remove a widget from the updater.
The widget must be removed from the updater before it is destroyed.
Get a list of the widgets the updater is updating.
| void makVrv::DtOsgWidgetUpdater::update | ( | const osg::Vec3d & | worldPosition | ) |
| void makVrv::DtOsgWidgetUpdater::updateGeocentric | ( | const osg::Vec3d & | worldPosition | ) |
std::vector<DtWidget*> makVrv::DtOsgWidgetUpdater::myWidgets [protected] |