![]() |
VR-Forces 4.0.4 Class Documentation
|
DtOsgGlStudioCockpit is the implementation of the distributed object of the same name (and under our current nameing conventions, would more correctly be named DtOsgGlStudioCockpitObject). More...
Public Types | |
| enum | DtPerspective { Dt2D, Dt3D } |
| typedef std::map< std::string, DtGlStudioAttributeUpdater * > | DtAttributeUpdateMap |
Public Member Functions | |
| DtOsgGlStudioCockpit (DtDe &de, DtUniqueID id) | |
| virtual | ~DtOsgGlStudioCockpit () |
| virtual void | createCockpit (const std::string &filename, const std::string &rsoName, DtPerspective p) |
| Override the set model definition function to load the right cockpit element for the attached object and channel. | |
| virtual void | removeCockpit () |
| Override the set model definition function to load the right cockpit element for the attached object and channel. | |
| virtual void | setProperty (const std::string &prop, const std::string &val) |
| sets a property with the value (in string form) | |
| virtual void | setChannelKeyword (const std::string &channelKeyword) |
| sets the channel keyword that it will display on | |
| virtual void | setPerspective (const double &width, const double &height) |
| sets the projection perspsective for drawing the HUD | |
| virtual void | setOffset (const double &x, const double &y, const double &z) |
| sets the offset of the HUD with respect to the entity | |
| virtual void | setVisible (bool vis) |
| sets the cockpit to be visible or not | |
| virtual void | addUpdater (const std::string &name, const std::string &type) |
| adds an attribute updater to the local updaters | |
| virtual void | updateTSPI (const DtVector &loc, const DtVector &vel, const DtVector &accel, const DtTaitBryan &orient, const DtVector &rotVel, int algorithm) |
| updates location/orientation info about the attached entity for the smoother to use | |
| virtual void | setObserverName (const std::string &obsName) |
| set the name of the observer this HUD object is supporting | |
| virtual std::string | className () const |
| Get the class name of the model instance owner. | |
| DtUniqueID | uniqueID () const |
| Get the unique id of the object. | |
| virtual bool | handleMouseInput (const DtMouseEvent &ea) |
| event handling function | |
| virtual double | update () |
| update callback function | |
Protected Member Functions | |
| virtual void | initGlStudio () |
| initializes GL studio | |
| virtual osg::Group * | createOverlayObjects () |
| actually creates the HUD object and supporting nodes | |
| virtual osg::Group * | createChannelNode () |
| creates a channel specific node and sets whether the HUD should be added to the channels or not | |
| virtual void | deepRemoveChildren (osg::Group *g) |
| recursivly removes nodes from a group to prevent memory leaks | |
| virtual void | slot_channelAdded (DtChannelManager *mgr, DtChannel *channel) |
| slot to be called when a new channel is added | |
| virtual void | slot_channelDestroyed (DtChannelManager *mgr, DtChannel *channel) |
| slot to be called when a channel is remvoed | |
| virtual void | slot_channelModified (const std::string &deName, const std::string &windowName, const std::string &channelName, const DtChannelConfiguration &config) |
| slot to be called when a channel configuration is modified | |
| virtual void | slot_smoothingEnabled (bool smooth) |
| slot to be called when the smmoth is enabled or disabled | |
| virtual void | slot_smoothingPeriod (const double &period) |
| slot to be called when the smoothing period changes | |
| virtual void | slot_projectionChanged (DtObserverObject *, bool is2D) |
Protected Attributes | |
| DtAttributeUpdateMap | myAttributeUpdaters |
| DtDe & | myDe |
| DtUniqueID | myId |
| std::string | myRsoName |
| std::string | myFilename |
| double | myWidth |
| double | myHeight |
| DtPerspective | myPerspective |
| std::string | myChannelKeyword |
| double | myOffsetX |
| double | myOffsetY |
| double | myOffsetZ |
| std::string | myObserverName |
| bool | myIsVisible |
| bool | myObserverIs2D |
| osg::Group * | myGlStudioGroup |
| osg::Switch * | myViewSwitchNode |
| DtChannelSpecificGroup * | myChannelNode |
| DtGlStudioDrawable * | myGlStudioComponent |
| DtGlStudioEventProcessor * | myEventProcessor |
| bool | myHasSmootherValues |
| DtOldSmoother | mySmoother |
| DtClock | myClock |
| double | myPreviousTime |
| double | myCurrentTime |
DtOsgGlStudioCockpit is the implementation of the distributed object of the same name (and under our current nameing conventions, would more correctly be named DtOsgGlStudioCockpitObject).
| typedef std::map<std::string, DtGlStudioAttributeUpdater*> makVrv::DtOsgGlStudioCockpit::DtAttributeUpdateMap |
| virtual makVrv::DtOsgGlStudioCockpit::~DtOsgGlStudioCockpit | ( | ) | [virtual] |
| virtual void makVrv::DtOsgGlStudioCockpit::createCockpit | ( | const std::string & | filename, |
| const std::string & | rsoName, | ||
| DtPerspective | p | ||
| ) | [virtual] |
Override the set model definition function to load the right cockpit element for the attached object and channel.
| virtual void makVrv::DtOsgGlStudioCockpit::removeCockpit | ( | ) | [virtual] |
Override the set model definition function to load the right cockpit element for the attached object and channel.
| virtual void makVrv::DtOsgGlStudioCockpit::setProperty | ( | const std::string & | prop, |
| const std::string & | val | ||
| ) | [virtual] |
sets a property with the value (in string form)
| virtual void makVrv::DtOsgGlStudioCockpit::setChannelKeyword | ( | const std::string & | channelKeyword | ) | [virtual] |
sets the channel keyword that it will display on
| virtual void makVrv::DtOsgGlStudioCockpit::setPerspective | ( | const double & | width, |
| const double & | height | ||
| ) | [virtual] |
sets the projection perspsective for drawing the HUD
| virtual void makVrv::DtOsgGlStudioCockpit::setOffset | ( | const double & | x, |
| const double & | y, | ||
| const double & | z | ||
| ) | [virtual] |
sets the offset of the HUD with respect to the entity
| virtual void makVrv::DtOsgGlStudioCockpit::setVisible | ( | bool | vis | ) | [virtual] |
sets the cockpit to be visible or not
| virtual void makVrv::DtOsgGlStudioCockpit::addUpdater | ( | const std::string & | name, |
| const std::string & | type | ||
| ) | [virtual] |
adds an attribute updater to the local updaters
| virtual void makVrv::DtOsgGlStudioCockpit::updateTSPI | ( | const DtVector & | loc, |
| const DtVector & | vel, | ||
| const DtVector & | accel, | ||
| const DtTaitBryan & | orient, | ||
| const DtVector & | rotVel, | ||
| int | algorithm | ||
| ) | [virtual] |
updates location/orientation info about the attached entity for the smoother to use
| virtual void makVrv::DtOsgGlStudioCockpit::setObserverName | ( | const std::string & | obsName | ) | [virtual] |
set the name of the observer this HUD object is supporting
| virtual std::string makVrv::DtOsgGlStudioCockpit::className | ( | ) | const [virtual] |
Get the class name of the model instance owner.
This is used to control how model instances are created.
Get the unique id of the object.
| virtual bool makVrv::DtOsgGlStudioCockpit::handleMouseInput | ( | const DtMouseEvent & | ea | ) | [virtual] |
event handling function
| virtual double makVrv::DtOsgGlStudioCockpit::update | ( | ) | [virtual] |
update callback function
| virtual void makVrv::DtOsgGlStudioCockpit::initGlStudio | ( | ) | [protected, virtual] |
initializes GL studio
| virtual osg::Group* makVrv::DtOsgGlStudioCockpit::createOverlayObjects | ( | ) | [protected, virtual] |
actually creates the HUD object and supporting nodes
| virtual osg::Group* makVrv::DtOsgGlStudioCockpit::createChannelNode | ( | ) | [protected, virtual] |
creates a channel specific node and sets whether the HUD should be added to the channels or not
| virtual void makVrv::DtOsgGlStudioCockpit::deepRemoveChildren | ( | osg::Group * | g | ) | [protected, virtual] |
recursivly removes nodes from a group to prevent memory leaks
| virtual void makVrv::DtOsgGlStudioCockpit::slot_channelAdded | ( | DtChannelManager * | mgr, |
| DtChannel * | channel | ||
| ) | [protected, virtual] |
slot to be called when a new channel is added
| virtual void makVrv::DtOsgGlStudioCockpit::slot_channelDestroyed | ( | DtChannelManager * | mgr, |
| DtChannel * | channel | ||
| ) | [protected, virtual] |
slot to be called when a channel is remvoed
| virtual void makVrv::DtOsgGlStudioCockpit::slot_channelModified | ( | const std::string & | deName, |
| const std::string & | windowName, | ||
| const std::string & | channelName, | ||
| const DtChannelConfiguration & | config | ||
| ) | [protected, virtual] |
slot to be called when a channel configuration is modified
| virtual void makVrv::DtOsgGlStudioCockpit::slot_smoothingEnabled | ( | bool | smooth | ) | [protected, virtual] |
slot to be called when the smmoth is enabled or disabled
| virtual void makVrv::DtOsgGlStudioCockpit::slot_smoothingPeriod | ( | const double & | period | ) | [protected, virtual] |
slot to be called when the smoothing period changes
| virtual void makVrv::DtOsgGlStudioCockpit::slot_projectionChanged | ( | DtObserverObject * | , |
| bool | is2D | ||
| ) | [protected, virtual] |
DtDe& makVrv::DtOsgGlStudioCockpit::myDe [protected] |
DtUniqueID makVrv::DtOsgGlStudioCockpit::myId [protected] |
std::string makVrv::DtOsgGlStudioCockpit::myRsoName [protected] |
std::string makVrv::DtOsgGlStudioCockpit::myFilename [protected] |
double makVrv::DtOsgGlStudioCockpit::myWidth [protected] |
double makVrv::DtOsgGlStudioCockpit::myHeight [protected] |
std::string makVrv::DtOsgGlStudioCockpit::myChannelKeyword [protected] |
double makVrv::DtOsgGlStudioCockpit::myOffsetX [protected] |
double makVrv::DtOsgGlStudioCockpit::myOffsetY [protected] |
double makVrv::DtOsgGlStudioCockpit::myOffsetZ [protected] |
std::string makVrv::DtOsgGlStudioCockpit::myObserverName [protected] |
bool makVrv::DtOsgGlStudioCockpit::myIsVisible [protected] |
bool makVrv::DtOsgGlStudioCockpit::myObserverIs2D [protected] |
osg::Group* makVrv::DtOsgGlStudioCockpit::myGlStudioGroup [protected] |
osg::Switch* makVrv::DtOsgGlStudioCockpit::myViewSwitchNode [protected] |
DtOldSmoother makVrv::DtOsgGlStudioCockpit::mySmoother [protected] |
DtClock makVrv::DtOsgGlStudioCockpit::myClock [protected] |
double makVrv::DtOsgGlStudioCockpit::myPreviousTime [protected] |
double makVrv::DtOsgGlStudioCockpit::myCurrentTime [protected] |