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

The shared simulation settings.

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

Public Member Functions

virtual ~DtSharedCockpitSettings ()
 
void setCockpitMapper (const DtEntityTypeMapper &cockpitTypeMapper)
 
void setCockpitModelMapping (const DtEntityType &type, const std::string &definition)
 
const std::vector< DtUnicode > & mapCockpitModelDefinition (const DtEntityType &type) const
 
virtual void setDe (DtDe *)
 
const DtModelDefinitionfindCockpitDefinition (const std::string &str) const
 
virtual DtEntityTypeMapperfindMapperByName (const std::string &name)
 
virtual const DtEntityTypeMapperfindMapperByName (const std::string &name) const
 
virtual DtEntityTypeMappercockpitTypeMapper ()
 
virtual const DtEntityTypeMappercockpitTypeMapper () const
 
virtual void setFromRecord (const makArchives::DtCockpitSettingsRecord &rec)
 
virtual void getRecord (makArchives::DtCockpitSettingsRecord &rec) const
 
virtual void mapperChanged (const DtEntityType &type, const DtUnicode &value, DtEntityTypeMapper &mapper)
 
virtual void realizeCockpit (DtObserver *obs, DtUniqueID &id, const std::string &modelDefinition="")
 
virtual void unrealizeCockpit (DtObserver *obs)
 
virtual void computePlatformDataPath (std::string &path) const
 
virtual const std::string & dataPath () const
 
virtual void setDataPath (const std::string &path)
 
virtual void setCockpitsEnabled (bool enable)
 
virtual bool cockpitsEnabled () const
 
virtual void hideEntity (const std::string &obsName)
 
virtual void unHideEntity (const std::string &obsName)
 
virtual void setAttachmentHas3DCockpit (const std::string &obsName, bool cockpit)
 
virtual
DtGlStudioAttributeUpdaterFactory
updaterFactory ()
 
virtual bool smoothingEnabled () const
 
virtual void setSmoothingEnabled (bool smooth)
 
virtual double smoothingPeriod () const
 
virtual void setSmoothingPeriod (const double &period)
 
const DtSettingsBackupsettingsBackup () const
 
DtSettingsBackupsettingsBackup ()
 
virtual void backup ()
 
- Public Member Functions inherited from makVrv::DtSharedSettings
 DtSharedSettings (const DtSharedSettingsManager &manager)
 
virtual ~DtSharedSettings ()
 
boost::shared_mutex & mutex ()
 
SafetyKey safeToEmitSignals ()
 
void setCurrentWriteLock (boost::unique_lock< boost::shared_mutex > *currentWriteLock)
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 
virtual ~DtVirtualBaseClass ()
 

Static Public Member Functions

static std::string className ()
 

Protected Member Functions

 DtSharedCockpitSettings (DtSharedSettingsManager &manager)
 

Protected Attributes

std::vector< DtUnicodemyEmptyMappings
 
DtEntityTypeMappermyCockpitTypeMapper
 
std::string myDataPath
 
bool myCockpitsEnabled
 
bool myCockpitSmoothingEnabled
 
double myCockpitSmoothingPeriod
 
DtDemyDe
 
DtGlStudioAttributeUpdaterFactory myUpdaterFactory
 
DtCockpitSettingsBackupmySettingsBackup
 

Friends

class DtReadSettingsLock< DtSharedCockpitSettings >
 
class DtWriteSettingsLock< DtSharedCockpitSettings >
 
class DtSharedSettingsManager
 

Constructor & Destructor Documentation

virtual makVrv::DtSharedCockpitSettings::~DtSharedCockpitSettings ( )
virtual

DTOR.

makVrv::DtSharedCockpitSettings::DtSharedCockpitSettings ( DtSharedSettingsManager manager)
protected

CTOR.

Member Function Documentation

static std::string makVrv::DtSharedCockpitSettings::className ( )
static

Get an instance of the settings object. Also protected, use the DtReadSettingsLock and DtWriteSettingsLock to access the object.

void makVrv::DtSharedCockpitSettings::setCockpitMapper ( const DtEntityTypeMapper cockpitTypeMapper)

Set a number of the state parameters.

void makVrv::DtSharedCockpitSettings::setCockpitModelMapping ( const DtEntityType &  type,
const std::string &  definition 
)

Set the entity model mapping.

const std::vector<DtUnicode>& makVrv::DtSharedCockpitSettings::mapCockpitModelDefinition ( const DtEntityType &  type) const

Get a model definition for an entity model based upon entity type.

virtual void makVrv::DtSharedCockpitSettings::setDe ( DtDe )
virtual

Sets the display engine used for the settings object.

const DtModelDefinition* makVrv::DtSharedCockpitSettings::findCockpitDefinition ( const std::string &  str) const

finds a HUD definition if it exists. Returns NULL on failure

virtual DtEntityTypeMapper* makVrv::DtSharedCockpitSettings::findMapperByName ( const std::string &  name)
virtual

Get an mapper by name.

virtual const DtEntityTypeMapper* makVrv::DtSharedCockpitSettings::findMapperByName ( const std::string &  name) const
virtual
virtual DtEntityTypeMapper& makVrv::DtSharedCockpitSettings::cockpitTypeMapper ( )
virtual

Entity type mapping.

virtual const DtEntityTypeMapper& makVrv::DtSharedCockpitSettings::cockpitTypeMapper ( ) const
virtual
virtual void makVrv::DtSharedCockpitSettings::setFromRecord ( const makArchives::DtCockpitSettingsRecord rec)
virtual

Set the entity settings as a record.

virtual void makVrv::DtSharedCockpitSettings::getRecord ( makArchives::DtCockpitSettingsRecord rec) const
virtual

Get the settings as a record.

virtual void makVrv::DtSharedCockpitSettings::mapperChanged ( const DtEntityType &  type,
const DtUnicode value,
DtEntityTypeMapper mapper 
)
virtual

Slot called when mapper changes. Uses shared message signaller to send out a mapperUpdated signal.

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

send signals to the agent in the other thread to create a HUD

virtual void makVrv::DtSharedCockpitSettings::unrealizeCockpit ( DtObserver obs)
virtual

send signals to the agent in the other thread to remove a HUD

virtual void makVrv::DtSharedCockpitSettings::computePlatformDataPath ( std::string &  path) const
virtual

compute the OS platform specific data path to the HUD shared objects This method should be used to compute the OS platform specific path which consists of the settings record path + the OS platform specific sub folder

virtual const std::string& makVrv::DtSharedCockpitSettings::dataPath ( ) const
virtual

get the data path to the HUD shared objects This path is what is saved/loaded with the settings record and does not include the OS platform specific sub folder

virtual void makVrv::DtSharedCockpitSettings::setDataPath ( const std::string &  path)
virtual

set the data path to the HUD shared objects This path is what is saved/loaded with the settings record and does not include the OS platform specific sub folder

virtual void makVrv::DtSharedCockpitSettings::setCockpitsEnabled ( bool  enable)
virtual

turns all cockpits on or off

virtual bool makVrv::DtSharedCockpitSettings::cockpitsEnabled ( ) const
virtual

checks whether all cockpits are on or off

virtual void makVrv::DtSharedCockpitSettings::hideEntity ( const std::string &  obsName)
virtual

Hides entities on a given observer.

virtual void makVrv::DtSharedCockpitSettings::unHideEntity ( const std::string &  obsName)
virtual

unhides entities on a given observer

virtual void makVrv::DtSharedCockpitSettings::setAttachmentHas3DCockpit ( const std::string &  obsName,
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 DtGlStudioAttributeUpdaterFactory& makVrv::DtSharedCockpitSettings::updaterFactory ( )
virtual

returns the factory for object and visualizer updater objects

virtual bool makVrv::DtSharedCockpitSettings::smoothingEnabled ( ) const
virtual

checks if HUD updater smoothing is enabled

virtual void makVrv::DtSharedCockpitSettings::setSmoothingEnabled ( bool  smooth)
virtual

sets whether HUD updater smoothing is enabled

virtual double makVrv::DtSharedCockpitSettings::smoothingPeriod ( ) const
virtual

returns HUD updater smoothing period

virtual void makVrv::DtSharedCockpitSettings::setSmoothingPeriod ( const double period)
virtual

sets theHUD updater smoothing period

const DtSettingsBackup* makVrv::DtSharedCockpitSettings::settingsBackup ( ) const
inlinevirtual

Accessor for the settings backup (const).

Exceptions
DtCorruptedStateRe-implement to use.

Reimplemented from makVrv::DtSharedSettings.

DtSettingsBackup* makVrv::DtSharedCockpitSettings::settingsBackup ( )
inlinevirtual

Accessor for the settings backup.

Exceptions
DtCorruptedStateRe-implement to use.

Reimplemented from makVrv::DtSharedSettings.

virtual void makVrv::DtSharedCockpitSettings::backup ( )
virtual

\brief Backs up current state using backup settings object

Reimplemented from makVrv::DtSharedSettings.

Friends And Related Function Documentation

Also protected, use the DtReadSettingsLock and DtWriteSettingsLock to access the object.

friend class DtSharedSettingsManager
friend

Member Data Documentation

std::vector<DtUnicode> makVrv::DtSharedCockpitSettings::myEmptyMappings
protected
DtEntityTypeMapper* makVrv::DtSharedCockpitSettings::myCockpitTypeMapper
protected
std::string makVrv::DtSharedCockpitSettings::myDataPath
protected
bool makVrv::DtSharedCockpitSettings::myCockpitsEnabled
protected
bool makVrv::DtSharedCockpitSettings::myCockpitSmoothingEnabled
protected
double makVrv::DtSharedCockpitSettings::myCockpitSmoothingPeriod
protected
DtDe* makVrv::DtSharedCockpitSettings::myDe
protected
DtGlStudioAttributeUpdaterFactory makVrv::DtSharedCockpitSettings::myUpdaterFactory
protected
DtCockpitSettingsBackup* makVrv::DtSharedCockpitSettings::mySettingsBackup
protected

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

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)