VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
DtSpeedTreeReplacer Class Reference

This is a utility class that contains functionality for replacing SpeedTree model definition references with appropriate geometric representations for use in the simulation engine. More...

List of all members.

Public Member Functions

 DtSpeedTreeReplacer (makVrv::DtDe &displayEngine)
virtual ~DtSpeedTreeReplacer ()
virtual void replaceSpeedTrees (makArchives::DtTerrainRecord &terrainRecord)
 Replaces any references to speedtrees in the provided terrain record with equivalent geometric representations.
virtual void printSummary (DtOutputStream &stream) const

Protected Types

typedef std::map< std::string,
std::string > 
DtStringStringMap

Protected Member Functions

virtual void replaceSpeedTrees (makArchives::DtPropRecords &propRecords)
 Replaces references in the specified list of prop records.
virtual bool isSpeedTreeModelDef (const std::string &modelDef)
virtual std::string findGeometricModelDefinition (const std::string &speedTreeModelDef)
virtual std::string removeLastWord (const std::string &str)
 Removes the last word (based on capitalization) and returns the resulting string.

Protected Attributes

makVrv::DtDemyDisplayEngine
DtStringStringMap myReplacementMap
 Map of ST model definition name to the model definition to replace it with.
std::set< std::string > myNoReplacementAvailableSet
 List of ST model definitions for which no replacement is available.

Private Member Functions

 DtSpeedTreeReplacer ()
 Not Implemented.
 DtSpeedTreeReplacer (const DtSpeedTreeReplacer &orig)
 Not Implemented.
DtSpeedTreeReplaceroperator= (const DtSpeedTreeReplacer &orig)
 Not Implemented.

Detailed Description

This is a utility class that contains functionality for replacing SpeedTree model definition references with appropriate geometric representations for use in the simulation engine.


Member Typedef Documentation

typedef std::map<std::string, std::string> DtSpeedTreeReplacer::DtStringStringMap [protected]

Constructor & Destructor Documentation

Not Implemented.

Not Implemented.


Member Function Documentation

DtSpeedTreeReplacer& DtSpeedTreeReplacer::operator= ( const DtSpeedTreeReplacer orig) [private]

Not Implemented.

virtual void DtSpeedTreeReplacer::replaceSpeedTrees ( makArchives::DtTerrainRecord terrainRecord) [virtual]

Replaces any references to speedtrees in the provided terrain record with equivalent geometric representations.

virtual void DtSpeedTreeReplacer::printSummary ( DtOutputStream &  stream) const [virtual]
virtual void DtSpeedTreeReplacer::replaceSpeedTrees ( makArchives::DtPropRecords propRecords) [protected, virtual]

Replaces references in the specified list of prop records.

virtual bool DtSpeedTreeReplacer::isSpeedTreeModelDef ( const std::string &  modelDef) [protected, virtual]
Returns:
True if this model definition string refers to a speed tree.
virtual std::string DtSpeedTreeReplacer::findGeometricModelDefinition ( const std::string &  speedTreeModelDef) [protected, virtual]
Returns:
A new model definition to use for the geometric representation for the speed tree model definition supplied.
virtual std::string DtSpeedTreeReplacer::removeLastWord ( const std::string &  str) [protected, virtual]

Removes the last word (based on capitalization) and returns the resulting string.


Member Data Documentation

Map of ST model definition name to the model definition to replace it with.

This map is build up during replaceSpeedTrees().

std::set<std::string> DtSpeedTreeReplacer::myNoReplacementAvailableSet [protected]

List of ST model definitions for which no replacement is available.


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)