![]() |
VR-Forces 4.10 Class Documentation
|
DtOsgGlStudioCockpit is the implementation of the distributed object of the same name (and under our current naming conventions, would more correctly be named DtOsgGlStudioCockpitObject). More...

Public Types | |
| enum | DtPerspective { Dt2D, Dt3D } |
| typedef std::map< std::string, DtGlStudioAttributeUpdater * > | DtAttributeUpdateMap |
Public Types inherited from makVrv::DtTickable | |
| enum | TickableListState { TickableNotOnList, TickableOnMainList, TickableOnThreadSafeList } |
| Enumeration used to indicate which DtTickableManager's tickable list the tickable is on, if any. More... | |
Public Member Functions | |
| DtOsgGlStudioCockpit (DtDe &de, DtUniqueID id) | |
| virtual | ~DtOsgGlStudioCockpit () |
| virtual bool | needsUpdate (DtTime tNow) |
| Always calls update. More... | |
| virtual void | update (DtTime tNow) |
| Calls updateMatrixTransform. More... | |
| virtual DtPerspective | perspective (void) const |
| retrieve the perspective More... | |
| virtual void | createCockpit (const std::string &filename, const std::string &rsoName, DtPerspective p, DtUniqueID attachedEntityElementId=0) |
| Override the set model definition function to load the right cockpit element for the attached object and channel. More... | |
| virtual void | removeCockpit () |
| virtual void | setProperty (const std::string &prop, const std::string &val) |
| sets a property with the value (in string form) More... | |
| virtual void | setChannelKeyword (const std::string &channelKeyword) |
| sets the channel keyword that it will display on More... | |
| virtual void | setPerspective (const double &width, const double &height) |
| sets the projection perspective for drawing the HUD More... | |
| virtual void | setOffset (const double &x, const double &y, const double &z) |
| sets the offset of the HUD with respect to the entity More... | |
| virtual void | setDynamicScale (const double &x, const double &y, const double &z) |
| Sets the values of the DynamicScale call into GL Studio. More... | |
| virtual void | setDynamicRotate (const double &x, const double &y, const double &z) |
| Sets the values of the DynamicRotate call into GL Studio. More... | |
| virtual void | setVisible (bool vis) |
| sets the cockpit to be visible or not More... | |
| virtual void | addUpdater (const std::string &name, const std::string &type) |
| adds an attribute updater to the local updaters More... | |
| 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 More... | |
| virtual void | setObserverName (const std::string &obsName) |
| set the name of the observer this HUD object is supporting More... | |
| virtual void | setRenderCockpitOnly (bool cockpitOnly) |
| Sets the DtOsgChannel's scene data to be the cockpit's channel node (which causes it to render only the cockpit and not the rest of the scene). More... | |
| virtual bool | renderCockpitOnly () |
| virtual void | setRenderAsOverlay (bool renderAsOverlay) |
| Set the glstudio cockpit to be rendered as part of the overlay camera instead of the main camera. More... | |
| virtual bool | renderAsOverlay () |
| virtual std::string | className () const |
| Get the class name of the model instance owner. More... | |
| DtUniqueID | uniqueID () const |
| Get the unique id of the object. More... | |
| virtual void | updateMatrixTransform () |
| updates myMatrixTransform to the location of myHostSceneObject plus the myOffset values. More... | |
| virtual bool | handleMouseInput (const DtMouseEvent &ea) |
| event handling function More... | |
| virtual double | update () |
| update callback function More... | |
Public Member Functions inherited from makVrv::DtTickable | |
| virtual bool | updateIfNeeded (DtTime tNow) |
| Calls needsUpdate(), and then calls update() if needsUpdate() is true. More... | |
| virtual | ~DtTickable () |
| Virtual DTOR. More... | |
| virtual void | setIsThreadSafe (bool safe) |
| Get/set whether this tickable can be updated in parallel with other tickables. More... | |
| virtual bool | isThreadSafe () const |
| virtual void | setTickableListState (TickableListState safeList) |
| Track which tickable list (if any) this tickable is on Since the tickable constructor puts ALL tickables on the main (unThreadSafe) to start we need a way to check which list a tickable is on (and this way we can request removals from the correct list instead of having to call DtTickableManager::removeTickableObject(), which tries both lists). More... | |
| virtual TickableListState | tickableListState () const |
| virtual void | setUpdatePeriod (unsigned int period) |
| Specify how often (in # of frames) this tickable should call update. More... | |
| virtual unsigned int | updatePeriod () const |
| virtual bool | lodSystemEnabled () const |
| is the update LOD system enabled, overridden by subclasses More... | |
Protected Member Functions | |
| virtual void | initGlStudio () |
| initializes GL studio More... | |
| virtual osg::Group * | createOverlayObjects () |
| actually creates the HUD object and supporting nodes More... | |
| virtual osg::Group * | createChannelNode () |
| creates a channel specific node and sets whether the HUD should be added to the channels or not More... | |
| virtual void | deepRemoveChildren (osg::Group *g) |
| recursively removes nodes from a group to prevent memory leaks More... | |
| virtual void | slot_channelAdded (DtChannelManager *mgr, DtChannel *channel) |
| slot to be called when a new channel is added More... | |
| virtual void | slot_channelDestroyed (DtChannelManager *mgr, DtChannel *channel) |
| slot to be called when a channel is removed More... | |
| 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 More... | |
| virtual void | slot_smoothingEnabled (bool smooth) |
| slot to be called when the smooth is enabled or disabled More... | |
| virtual void | slot_smoothingPeriod (const double &period) |
| slot to be called when the smoothing period changes More... | |
| virtual void | slot_projectionChanged (DtObserverObject *, bool is2D) |
Protected Member Functions inherited from makVrv::DtTickable | |
| DtTickable (DtTickableManagerInterface *manager) | |
| CTOR. More... | |
| DtTickable () | |
| Unimplemented default CTOR. More... | |
| virtual void | slot_managerAboutToBeDeleted () |
DtOsgGlStudioCockpit is the implementation of the distributed object of the same name (and under our current naming conventions, would more correctly be named DtOsgGlStudioCockpitObject).
| typedef std::map<std::string, DtGlStudioAttributeUpdater*> makVrv::DtOsgGlStudioCockpit::DtAttributeUpdateMap |
| makVrv::DtOsgGlStudioCockpit::DtOsgGlStudioCockpit | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
|
virtual |
|
virtual |
Override the set model definition function to load the right cockpit element for the attached object and channel.
The attachedEntityElementId parameter is only required for 3D cockpits (i.e. with p = Dt3D) and is used to set myHostSceneObject.
|
virtual |
|
virtual |
sets a property with the value (in string form)
|
virtual |
sets the channel keyword that it will display on
|
virtual |
sets the projection perspective for drawing the HUD
|
virtual |
sets the offset of the HUD with respect to the entity
|
virtual |
Sets the values of the DynamicScale call into GL Studio.
|
virtual |
Sets the values of the DynamicRotate call into GL Studio.
|
virtual |
sets the cockpit to be visible or not
|
virtual |
adds an attribute updater to the local updaters
|
virtual |
updates location/orientation info about the attached entity for the smoother to use
|
virtual |
set the name of the observer this HUD object is supporting
|
virtual |
Sets the DtOsgChannel's scene data to be the cockpit's channel node (which causes it to render only the cockpit and not the rest of the scene).
|
virtual |
|
virtual |
Set the glstudio cockpit to be rendered as part of the overlay camera instead of the main camera.
This pushes the glstudio huds to be rendered after the post processor effects.
|
virtual |
|
virtual |
Get the class name of the model instance owner.
This is used to control how model instances are created.
| DtUniqueID makVrv::DtOsgGlStudioCockpit::uniqueID | ( | ) | const |
Get the unique id of the object.
|
virtual |
updates myMatrixTransform to the location of myHostSceneObject plus the myOffset values.
|
virtual |
event handling function
|
virtual |
update callback function
Always calls update.
Reimplemented from makVrv::DtTickable.
|
virtual |
Calls updateMatrixTransform.
Implements makVrv::DtTickable.
|
virtual |
retrieve the perspective
|
protectedvirtual |
initializes GL studio
|
protectedvirtual |
actually creates the HUD object and supporting nodes
|
protectedvirtual |
creates a channel specific node and sets whether the HUD should be added to the channels or not
|
protectedvirtual |
recursively removes nodes from a group to prevent memory leaks
|
protectedvirtual |
slot to be called when a new channel is added
|
protectedvirtual |
slot to be called when a channel is removed
|
protectedvirtual |
slot to be called when a channel configuration is modified
|
protectedvirtual |
slot to be called when the smooth is enabled or disabled
|
protectedvirtual |
slot to be called when the smoothing period changes
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |