![]() |
VR-Forces 4.5 Class Documentation
|
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...
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, DtOutputStream *errorStream=0) const |
Protected Types | |
| typedef boost::unordered_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 bool | findGeometricModelDefinitionWithExt (std::string startModelDef, const std::string &extention, std::string &result) |
| virtual std::string | removeLastWord (const std::string &str) |
| Removes the last word (based on capitalization) and returns the resulting string. | |
Protected Attributes | |
| makVrv::DtDe & | myDisplayEngine |
| 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. | |
| std::list< std::string > | mySimExtensionList |
| A list (set up in the constructor) of the extensions to look for to a model definition when looking for a geometric version. | |
Private Member Functions | |
| DtSpeedTreeReplacer () | |
| Not Implemented. | |
| DtSpeedTreeReplacer (const DtSpeedTreeReplacer &orig) | |
| DtSpeedTreeReplacer & | operator= (const DtSpeedTreeReplacer &orig) |
This is a utility class that contains functionality for replacing SpeedTree model definition references with appropriate geometric representations for use in the simulation engine.
|
protected |
| DtSpeedTreeReplacer::DtSpeedTreeReplacer | ( | makVrv::DtDe & | displayEngine | ) |
|
virtual |
|
private |
Not Implemented.
|
private |
|
private |
|
virtual |
Replaces any references to speedtrees in the provided terrain record with equivalent geometric representations.
|
virtual |
|
protectedvirtual |
Replaces references in the specified list of prop records.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Removes the last word (based on capitalization) and returns the resulting string.
|
protected |
|
protected |
Map of ST model definition name to the model definition to replace it with.
This map is build up during replaceSpeedTrees().
|
protected |
List of ST model definitions for which no replacement is available.
|
protected |
A list (set up in the constructor) of the extensions to look for to a model definition when looking for a geometric version.
They will be tested in order, with the first extension found being used.