VR-Forces 4.0.4 Class Documentation
Public Types | Public Member Functions | Protected Attributes
makVrv::DtOsgWidgetUpdater Class Reference

The osg widget updater updates the position of the widgets based upon the 3D location of the model. More...

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

List of all members.

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.
WidgetListwidgets ()
 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

Detailed Description

The osg widget updater updates the position of the widgets based upon the 3D location of the model.


Member Typedef Documentation


Constructor & Destructor Documentation

Create a widget updater.


Member Function Documentation

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.

Add a widget to the updater.

The updater will NOT deallocate the widget on destruction.

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)

Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)