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

Driver for GLStudio cockpits.

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

Public Member Functions

 DtGlStudioDriver (DtAgentManager &agentManager, const std::string &instanceName)
 
virtual ~DtGlStudioDriver ()
 
virtual const std::string & className () const
 
virtual void hideEntity (DtObserver *obs)
 
virtual void unHideEntity (DtObserver *obs)
 
virtual void setAttachmentHas3DCockpit (DtObserver *obs, bool cockpit)
 
virtual void realizeCockpit (DtObserver *obs, const std::string &modelDefinition="")
 
- Public Member Functions inherited from makVrv::DtDriver
 DtDriver (DtAgentManager &agentManager, const std::string &instanceName)
 
virtual ~DtDriver ()
 
virtual void realizeConfiguration (const DtConfiguration &configuration)
 
virtual DtConfiguration createConfiguration () const
 
DtAgentManageragentManager ()
 
virtual DtAgentManagerInterfacesceneInterface ()
 
bool started () const
 
virtual const std::string & instanceName () const
 
virtual bool autoStart () const
 
virtual void setAutoStart (bool autoStart)
 
virtual bool isWindowDependent () const
 
virtual void setIsWindowDependent (bool dep)
 
virtual void setIsUserControllable (bool)
 
virtual bool isUserControllable () const
 
virtual void setIsPersistent (bool per)
 
virtual bool isPersistent () const
 
virtual bool isOnDriverSelectionList () const
 
virtual void setOnDriverSelectionList (bool)
 
bool objectFromAgentManager (const DtUniqueID &id) const
 

Protected Types

typedef std::map< DtObserver
*, DtUniqueID
DtObserverAttachmentMap
 

Protected Member Functions

virtual bool onStart ()
 
virtual bool onStop ()
 
virtual bool onTick ()
 
virtual void handleAttachChange (DtObserver *obs)
 
virtual void handleObserverDestroyed (DtObserver *observer)
 
virtual void handleObserverCreated (DtObserver *observer)
 
virtual void handleEnableStateChanged (bool enabled)
 
virtual void unrealizeCockpit (DtObserver *obs)
 
virtual DtUniqueID findAttachedSimObject (DtObserver *obs)
 
- Protected Member Functions inherited from makVrv::DtDriver
void applyChangesAndDelete (DtElementChanges *changes)
 
void reportElementCreated (DtElementID id, DtElementID parentId, DtElementEntry::ElementType type)
 
void reportElementAttribute (DtElementID id, DtElementAttribute *attribute)
 
void reportElementDestroyed (DtElementID id)
 
void start ()
 
void stop ()
 
bool tick ()
 
virtual void slot_displayEngineAdded (const DtDeRecord &igRecord)
 
virtual void setInstanceName (const std::string &name)
 
virtual void installAccessories ()
 
virtual void uninstallAccessories ()
 

Protected Attributes

DtObserverAttachmentMap myAttachedObserverMap
 
std::string myClassName
 
DtAttachManagermyAttachManager
 
DtDemyDe
 
- Protected Attributes inherited from makVrv::DtDriver
DtAgentManagermyAgentManager
 
bool myStartedFlag
 
std::string myName
 
DtConfiguration myConfiguration
 
bool myPersistentFlag
 
bool myUserControllableFlag
 
bool myRequestStateDiffPendingFlag
 
DtElementChanges myChanges
 

Member Typedef Documentation

Constructor & Destructor Documentation

makVrv::DtGlStudioDriver::DtGlStudioDriver ( DtAgentManager agentManager,
const std::string &  instanceName 
)

constructor

virtual makVrv::DtGlStudioDriver::~DtGlStudioDriver ( )
virtual

destructor

Member Function Documentation

virtual const std::string& makVrv::DtGlStudioDriver::className ( ) const
virtual

Get this Driver's class name.

Implements makVrv::DtDriver.

virtual void makVrv::DtGlStudioDriver::hideEntity ( DtObserver obs)
virtual
virtual void makVrv::DtGlStudioDriver::unHideEntity ( DtObserver obs)
virtual
virtual void makVrv::DtGlStudioDriver::setAttachmentHas3DCockpit ( DtObserver obs,
bool  cockpit 
)
virtual

The GL Studio driver uses this to tell the observer that it's going to render a 3D cockpit so the observer can take that into account when determining znear.

virtual void makVrv::DtGlStudioDriver::realizeCockpit ( DtObserver obs,
const std::string &  modelDefinition = "" 
)
virtual

Creates a cockpit for the given observer's attached entity. If a model definition is given it will be created otherwise the default cockpit mappings will be used.

virtual bool makVrv::DtGlStudioDriver::onStart ( )
protectedvirtual

Start the host output. Create all object for an existing host connection.

Implements makVrv::DtDriver.

virtual bool makVrv::DtGlStudioDriver::onStop ( )
protectedvirtual

Stop the host output. All scene object created by the host should be destroyed.

Implements makVrv::DtDriver.

virtual bool makVrv::DtGlStudioDriver::onTick ( )
protectedvirtual

Tick.

Implements makVrv::DtDriver.

virtual void makVrv::DtGlStudioDriver::handleAttachChange ( DtObserver obs)
protectedvirtual

checks when attachment changes if a new cockpit needs to be

virtual void makVrv::DtGlStudioDriver::handleObserverDestroyed ( DtObserver observer)
protectedvirtual

checks when observers are destroyed if cockipts need to be removed

virtual void makVrv::DtGlStudioDriver::handleObserverCreated ( DtObserver observer)
protectedvirtual

checks when observer is created if cockpits need to be addeed

virtual void makVrv::DtGlStudioDriver::handleEnableStateChanged ( bool  enabled)
protectedvirtual

checks when HUDs are enabled, realizes cockpit for any entities Attached to that don't have a HUD yet.

virtual void makVrv::DtGlStudioDriver::unrealizeCockpit ( DtObserver obs)
protectedvirtual

cleans up any cockpits that may have been created

virtual DtUniqueID makVrv::DtGlStudioDriver::findAttachedSimObject ( DtObserver obs)
protectedvirtual

finds the sim object ID of the attached object

Member Data Documentation

DtObserverAttachmentMap makVrv::DtGlStudioDriver::myAttachedObserverMap
protected
std::string makVrv::DtGlStudioDriver::myClassName
protected
DtAttachManager* makVrv::DtGlStudioDriver::myAttachManager
protected
DtDe* makVrv::DtGlStudioDriver::myDe
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)