VR-Forces 4.0.4 Class Documentation
Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtDeInitializer Class Reference

The initialization configuration for the makVrv::DtDe. More...

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

List of all members.

Classes

struct  DisplayConnection

Public Types

enum  DeMode { NoMode = 0, MasterMode = 1, SlaveMode = 2, DeMode_end }
enum  DeFeatures {
  Features_None = 0, Features_2D = 1, Features_3D = 2, Features_XR = Features_3D | Features_2D,
  DeFeatures_end
}
 Defines the features, features should be masked. More...
typedef std::vector< std::pair
< std::string, DtConfiguration > > 
DriverInstanceList
 A driver instance list is a list of pairs where the first parameter is the class name of the driver and the second parameter is the configuration.
typedef std::map< std::string,
std::string > 
AuthorizationCodeMap
 A map of authorization keys and their values.
typedef std::vector< std::pair
< std::string,
makArchives::DtObserverStateRecord > > 
ObserverStateMap
 A map of observer names, to DtObserverStateRecords.
typedef std::map< std::string,
DtBaseRecordHolder * > 
DefaultRecordMap
 A map of default records.
typedef std::vector
< DisplayConnection
DisplayConnections

Public Member Functions

 DtDeInitializer (const std::string &name="")
 Constructor.
 DtDeInitializer (const DtDeInitializer &initializer)
 Copy Constructor.
DtDeInitializeroperator= (const DtDeInitializer &initializer)
 Assignment Op.
virtual ~DtDeInitializer ()
 Destructor.
void setFeatures (DeFeatures features)
 Set the features.
DeFeatures features () const
 Get the current features.
bool featureSupported (DeFeatures feature) const
 Check to see if a feature is supported.
void setDriverConfiguration (const DtDriverConfiguration &)
 Set the driver configuration.
void setGuiConfiguration (const DtGuiConfiguration &config)
 Set the driver configuration.
void setInputDriverConfiguration (const DtInputDriverConfiguration &config)
 Set the input driver configuration.
const std::string & displayName () const
 Returns the name of the active local display configuration.
void setDisplayEngineName (const std::string &name)
 Set the active local display engine configuration.
DtDeInitializer::DeMode deMode () const
 Return myDeMode;.
void setDeMode (DtDeInitializer::DeMode mode)
 Set myDeMode.
void setDefaultDrivers (const DriverInstanceList &drivers)
 Set the driver instance list.
const DriverInstanceListdefaultDrivers () const
 Get the default driver list.
void setDeConfiguration (const DtDeConfiguration &config)
 Set the initial de configuration.
DtDeConfigurationdeConfiguration ()
 Get the initial de configuration.
const DtDeConfigurationdeConfiguration () const
 Get the initial de configuration.
void setCoordinateSystem (const std::string &coordinateSystem, const std::string &parameters)
 Set the coordinate system and parameters.
const std::string & coordinateSystem () const
 Get the name of the coordinate system.
const std::string & coordinateSystemParameters () const
 Get the parameters of the coordinate system.
void setNotifyLevel (DtDebugLog::PrintLevel level)
 Set the initial notify level of print output.
DtDebugLog::PrintLevel notifyLevel () const
 Get the initial notify level of print output.
void setLogFileName (const std::string &filename)
 Set the log file name.
const std::string & logFileName () const
 Get the name of the output log.
void setAutoLoadDrivers (bool autoLoad)
 Set whether saved drivers in the driver directory should be automatically loaded.
bool autoLoadDrivers () const
 Get whether saved drivers in the driver directory should be automatically loaded.
void setAutoStartDrivers (const std::vector< std::string > &names)
 Set the auto start drivers.
const std::vector< std::string > & autoStartDrivers () const
 Get the auto start drivers.
void setAuthorizationCodeMap (const AuthorizationCodeMap &map)
 Assigns the authorization code mapping.
void addAuthorizationCodeMapping (const std::string &key, const std::string &value)
 Adds an authorization code mapping.
void removeAuthorizationCodeMapping (const std::string &key)
 Removes an authorization code mapping.
const std::string * findAuthorizationCodeValue (const std::string &key) const
 Find an authorization code value from a key.
void setObserverStateMap (const ObserverStateMap &osm)
 Set the ObserverStateMap. Used by DtInputDriver when creating observers.
const ObserverStateMapobserverStateMap () const
 Get the ObserverStateMap. Used by DtInputDriver when creating observers.
const std::vector< std::string > & mappingFilesToLoad () const
 Get the mapping files to load.
void setMappingFilesToLoad (const std::vector< std::string > &)
 Set the mapping files to load.
const DisplayConnectionsdisplayConnections () const
 Get the list of connections to make.
DisplayConnectionsdisplayConnections ()
void setDisplayConnections (const DisplayConnections &displayConnections)
void setAutoLoadFile (const std::string &file)
 Set the file to automatically load.
const std::string & autoLoadFile () const
 Get the file to automatically load.
void setStartFullScreen (bool)
 Set whether the application should start up in fullscreen mode.
bool startFullScreen () const
 Get whether the application should start up in fullscreen mode.
void addDefaultSettingsRecord (const std::string &recordName, const DtBaseRecordHolder &record)
 Add a new record holder.
void removeDefaultSettingsRecord (const std::string &record)
 Remove a default record.
template<typename RecordType >
bool findDefaultSettingsRecord (const std::string &name, RecordType &record) const
 Find a settings default records.
void setConstrainToTerrain (bool constrain)
 Set the observers to initially constrain to terrain.
bool constrainToTerrain () const
void setSpeedScaling (bool scale)
 Set the observers to initially scale speed.
bool speedScaling () const
void setVertexSelectsParent (bool selectsParent)
 Set whether selecting a vertex actually selects its parent object.
bool vertexSelectsParent () const
void setDoubleBuffering (bool buffer)
 Set whether to double buffer the windows.
bool doubleBuffer () const
void setVSync (bool sync)
 Set whether to vsync the windows.
bool vsync () const
void setFixedFrameRate (unsigned int framesPerSecond)
 Set the number of frames per second to render.
unsigned int fixedFrameRate () const
void setPathConfiguration (const DtDePathConfiguration &pathConfig)
 Set the initial path configuration.
DtDePathConfigurationpathConfiguration ()
 Access the initial path configuration.
const DtDePathConfigurationpathConfiguration () const
 Access the initial path configuration.
void setInitLibXml (bool enabled)
 Enable or disable initialization of libxml2 for multi-threading during display engine initialization.
bool initLibXml () const
 Get status of initialization of libxml2 for multi-threading during display engine initialization.
void setCheckForData (bool check)
 Set whether to check for the existence of data.
bool checkForData () const
 Get whether to check for the existence of data.
Get the driver configuration.
const DtDriverConfigurationdriverConfiguration () const
DtDriverConfigurationdriverConfiguration ()
const DtGuiConfigurationguiConfiguration () const
DtGuiConfigurationguiConfiguration ()
Get the input driver configuration.
const DtInputDriverConfigurationinputDriverConfiguration () const
DtInputDriverConfigurationinputDriverConfiguration ()

Protected Member Functions

template<class Archive >
void _serialize (Archive &ar, const unsigned int version)
 Declare serialize functions Call via serialize(Archive ar, unsigned int version); Where Archive can be any of : xml_oarchive,xml_iarchive,binary_oarchive binary_iarchive,text_oarchive, or text_iarchive example: fstream fo("test.xml",std;:ios_base::out); xml_oarchive os(fo); DtConfiguration aConfig; aConfig.serialize(os,0);.

Protected Attributes

DtDriverConfiguration myDriverConfiguration
DtGuiConfiguration myGuiConfiguration
DtInputDriverConfiguration myInputDriverConfiguration
std::string myDisplayEngineName
DtDePathConfiguration myPathConfiguration
DtDeConfiguration myDeConfiguration
DeMode myDeMode
DriverInstanceList myDriverInstances
std::string myCoordinateSystem
std::string myCoordinateSystemParameters
int myNotifyLevel
std::string myLogFileName
bool myAutoLoadDriversFlag
AuthorizationCodeMap myAuthorizationCodeMap
 Note, this member should probably not be serialized.
std::vector< std::string > myAutoStartDrivers
ObserverStateMap myObserverStateMap
std::vector< std::string > myMappingFilesToLoad
DisplayConnections myDisplayConnections
std::string myAutoLoadFile
bool myFullScreenFlag
bool myConstrainToTerrainFlag
bool mySpeedScalingFlag
bool myVertexSelectsParentFlag
bool myDoubleBufferFlag
bool myVSyncFlag
unsigned int myFrameRate
bool myInitLibXml
bool myCheckForData
DefaultRecordMap myDefaultRecords
DeFeatures myFeatures

Detailed Description

The initialization configuration for the makVrv::DtDe.


Member Typedef Documentation

typedef std::vector<std::pair<std::string,DtConfiguration> > makVrv::DtDeInitializer::DriverInstanceList

A driver instance list is a list of pairs where the first parameter is the class name of the driver and the second parameter is the configuration.

typedef std::map<std::string, std::string> makVrv::DtDeInitializer::AuthorizationCodeMap

A map of authorization keys and their values.

Certain plug-ins check and validate their key and value before loading.

A map of observer names, to DtObserverStateRecords.

A map of default records.


Member Enumeration Documentation

Enumerator:
NoMode 
MasterMode 
SlaveMode 
DeMode_end 

Similar to the end iterator,.

this enum is one past the end.

Defines the features, features should be masked.

By default the DeInitializer only has 3D features.

Enumerator:
Features_None 
Features_2D 
Features_3D 
Features_XR 
DeFeatures_end 

Constructor & Destructor Documentation

makVrv::DtDeInitializer::DtDeInitializer ( const std::string &  name = "")

Constructor.

Defaults to MasterMode.

Copy Constructor.

Destructor.


Member Function Documentation

DtDeInitializer& makVrv::DtDeInitializer::operator= ( const DtDeInitializer initializer)

Assignment Op.

Set the features.

Get the current features.

Check to see if a feature is supported.

Set the driver configuration.

Set the driver configuration.

Set the input driver configuration.

const std::string& makVrv::DtDeInitializer::displayName ( ) const

Returns the name of the active local display configuration.

void makVrv::DtDeInitializer::setDisplayEngineName ( const std::string &  name)

Set the active local display engine configuration.

Return myDeMode;.

Set myDeMode.

Set the driver instance list.

Get the default driver list.

Set the initial de configuration.

Get the initial de configuration.

Get the initial de configuration.

void makVrv::DtDeInitializer::setCoordinateSystem ( const std::string &  coordinateSystem,
const std::string &  parameters 
)

Set the coordinate system and parameters.

const std::string& makVrv::DtDeInitializer::coordinateSystem ( ) const

Get the name of the coordinate system.

Get the parameters of the coordinate system.

Set the initial notify level of print output.

Get the initial notify level of print output.

void makVrv::DtDeInitializer::setLogFileName ( const std::string &  filename)

Set the log file name.

const std::string& makVrv::DtDeInitializer::logFileName ( ) const

Get the name of the output log.

Set whether saved drivers in the driver directory should be automatically loaded.

Get whether saved drivers in the driver directory should be automatically loaded.

void makVrv::DtDeInitializer::setAutoStartDrivers ( const std::vector< std::string > &  names)

Set the auto start drivers.

const std::vector<std::string>& makVrv::DtDeInitializer::autoStartDrivers ( ) const

Get the auto start drivers.

Assigns the authorization code mapping.

void makVrv::DtDeInitializer::addAuthorizationCodeMapping ( const std::string &  key,
const std::string &  value 
)

Adds an authorization code mapping.

Removes an authorization code mapping.

const std::string* makVrv::DtDeInitializer::findAuthorizationCodeValue ( const std::string &  key) const

Find an authorization code value from a key.

Returns NULL if key isn't found.

Set the ObserverStateMap. Used by DtInputDriver when creating observers.

Get the ObserverStateMap. Used by DtInputDriver when creating observers.

const std::vector<std::string>& makVrv::DtDeInitializer::mappingFilesToLoad ( ) const

Get the mapping files to load.

void makVrv::DtDeInitializer::setMappingFilesToLoad ( const std::vector< std::string > &  )

Set the mapping files to load.

Get the list of connections to make.

void makVrv::DtDeInitializer::setAutoLoadFile ( const std::string &  file)

Set the file to automatically load.

const std::string& makVrv::DtDeInitializer::autoLoadFile ( ) const

Get the file to automatically load.

Set whether the application should start up in fullscreen mode.

Get whether the application should start up in fullscreen mode.

void makVrv::DtDeInitializer::addDefaultSettingsRecord ( const std::string &  recordName,
const DtBaseRecordHolder record 
)

Add a new record holder.

void makVrv::DtDeInitializer::removeDefaultSettingsRecord ( const std::string &  record)

Remove a default record.

template<typename RecordType >
bool makVrv::DtDeInitializer::findDefaultSettingsRecord ( const std::string &  name,
RecordType &  record 
) const [inline]

Set the observers to initially constrain to terrain.

Set the observers to initially scale speed.

Set whether selecting a vertex actually selects its parent object.

Set whether to double buffer the windows.

Set whether to vsync the windows.

void makVrv::DtDeInitializer::setFixedFrameRate ( unsigned int  framesPerSecond)

Set the number of frames per second to render.

If this is equal to zero than a variable framerate is used.

Set the initial path configuration.

Access the initial path configuration.

Access the initial path configuration.

Enable or disable initialization of libxml2 for multi-threading during display engine initialization.

Get status of initialization of libxml2 for multi-threading during display engine initialization.

Set whether to check for the existence of data.

Get whether to check for the existence of data.

template<class Archive >
void makVrv::DtDeInitializer::_serialize ( Archive &  ar,
const unsigned int  version 
) [inline, protected]

Declare serialize functions Call via serialize(Archive ar, unsigned int version); Where Archive can be any of : xml_oarchive,xml_iarchive,binary_oarchive binary_iarchive,text_oarchive, or text_iarchive example: fstream fo("test.xml",std;:ios_base::out); xml_oarchive os(fo); DtConfiguration aConfig; aConfig.serialize(os,0);.

Serialize this class.

Reimplemented from makVrv::DtConfiguration.

References DT_SERIALIZE_BASE, and DT_SERIALIZE_MEMBER.


Member Data Documentation

std::string makVrv::DtDeInitializer::myLogFileName [protected]

Note, this member should probably not be serialized.

std::vector<std::string> makVrv::DtDeInitializer::myAutoStartDrivers [protected]
std::vector<std::string> makVrv::DtDeInitializer::myMappingFilesToLoad [protected]
std::string makVrv::DtDeInitializer::myAutoLoadFile [protected]
unsigned int makVrv::DtDeInitializer::myFrameRate [protected]

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)