VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends
makVrv::DtSharedCockpitSettings Class Reference

The shared simulation settings. More...

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

List of all members.

Public Member Functions

virtual ~DtSharedCockpitSettings ()
 DTOR.
void setCockpitMapper (const DtEntityTypeMapper &cockpitTypeMapper)
 Set a number of the state parameters.
void setCockpitModelMapping (const DtEntityType &type, const std::string &definition)
 Set the entity model mapping.
const std::vector< DtUnicode > & mapCockpitModelDefinition (const DtEntityType &type) const
 Get a model definition for an entity model based upon entity type.
virtual void setDe (DtDe *)
 Sets the display engine used for the settings object.
const DtModelDefinitionfindCockpitDefinition (const std::string &str) const
 finds a HUD definition if it exists. Returns NULL on failure
virtual DtEntityTypeMapperfindMapperByName (const std::string &name)
 Get an mapper by name.
virtual const DtEntityTypeMapperfindMapperByName (const std::string &name) const
virtual DtEntityTypeMappercockpitTypeMapper ()
 Entity type mapping.
virtual const DtEntityTypeMappercockpitTypeMapper () const
virtual void setFromRecord (const makArchives::DtCockpitSettingsRecord &rec)
 Set the entity settings as a record.
virtual void getRecord (makArchives::DtCockpitSettingsRecord &rec) const
 Get the settings as a record.
virtual void mapperChanged (const DtEntityType &type, const DtUnicode &value, DtEntityTypeMapper &mapper)
 Slot called when mapper changes. Uses shared message signaller to send out a mapperUpdated signal.
virtual void realizeCockpit (DtObserver *obs, DtUniqueID &id)
 send signals to the agent in the other thread to create a HUD
virtual void unrealizeCockpit (DtObserver *obs)
 send signals to the agent in the other thread to remove a HUD
virtual const std::string & dataPath () const
 get the data path to the HUD shared objects
virtual void setDataPath (const std::string &path)
 set the data path to the HUD shared objects
virtual void setCockpitsEnabled (bool enable)
 turns all cockpits on or off
virtual bool cockpitsEnabled () const
 checks whether all cockpits are on or off
virtual void hideEntity (const std::string &obsName)
 Hides entities on a given observer.
virtual void unHideEntity (const std::string &obsName)
 unhides entities on a given observer
virtual
DtGlStudioAttributeUpdaterFactory
updaterFactory ()
 returns the factory for object and visualizer updater objects
virtual bool smoothingEnabled () const
 checks if HUD updater smoothing is enabled
virtual void setSmoothingEnabled (bool smooth)
 sets whether HUD updater smoothing is enabled
virtual double smoothingPeriod () const
 returns HUD updater smoothing period
virtual void setSmoothingPeriod (const double &period)
 sets theHUD updater smoothing period
const DtSettingsBackupsettingsBackup () const
 Accessor for the settings backup (const).
DtSettingsBackupsettingsBackup ()
 Accessor for the settings backup.
virtual void backup ()
 \brief Backs up current state using backup settings object

Static Public Member Functions

static std::string className ()
 Get an instance of the settings object.

Protected Member Functions

 DtSharedCockpitSettings (DtSharedSettingsManager &manager)
 CTOR.

Protected Attributes

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

Friends

class DtReadSettingsLock< DtSharedCockpitSettings >
 Also protected, use the DtReadSettingsLock and DtWriteSettingsLock to access the object.
class DtWriteSettingsLock< DtSharedCockpitSettings >
class DtSharedSettingsManager

Detailed Description

The shared simulation settings.


Constructor & Destructor Documentation

DTOR.

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.

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.

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]

Entity type mapping.

Set the entity settings as a record.

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 
) [virtual]

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

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

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

get the data path to the HUD shared objects

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

set the data path to the HUD shared objects

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

turns all cockpits on or off

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

returns the factory for object and visualizer updater objects

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

Accessor for the settings backup (const).

Exceptions:
DtCorruptedStateRe-implement to use.

Reimplemented from makVrv::DtSharedSettings.

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

friend class DtReadSettingsLock< DtSharedCockpitSettings > [friend]

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

friend class DtWriteSettingsLock< DtSharedCockpitSettings > [friend]
friend class DtSharedSettingsManager [friend]

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)