![]() |
VR-Forces 4.5 Class Documentation
|
Class DtTerrainFilenameRemapper will load in the comma delimited terrain file name map, and, if there is a gui or sim terrain that does not exists in the scenario file but the filename does exist in the file name map, will change the terrain name to the remapped name from the user terrain directory. More...
Public Member Functions | |
| DtTerrainFilenameRemapper (const DtFilename &terrainMapFilename, const DtFilename &terrainDirectory) | |
| CTOR. | |
| DtTerrainFilenameRemapper (const DtTerrainFilenameRemapper &) | |
| Copy constructor. | |
| virtual | ~DtTerrainFilenameRemapper () |
| DTOR. | |
| virtual bool | remapTerrainFilenames (DtScenario &) |
| Will remap terrain filenames in gui and sim terrains. | |
Protected Member Functions | |
| virtual void | readMapFile (const DtFilename &terrainMapFilename) |
Protected Attributes | |
| std::map< DtFilename, DtFilename > | myTerrainMap |
| DtFilename | myTerrainDirectory |
Class DtTerrainFilenameRemapper will load in the comma delimited terrain file name map, and, if there is a gui or sim terrain that does not exists in the scenario file but the filename does exist in the file name map, will change the terrain name to the remapped name from the user terrain directory.
Note that the target name will always be assumed to be relative to the given user data terrain. The map file will not substitute variables in the target name. Note, due to linux support, this search is case sensitive.
| DtTerrainFilenameRemapper::DtTerrainFilenameRemapper | ( | const DtFilename & | terrainMapFilename, |
| const DtFilename & | terrainDirectory | ||
| ) |
CTOR.
| DtTerrainFilenameRemapper::DtTerrainFilenameRemapper | ( | const DtTerrainFilenameRemapper & | ) |
Copy constructor.
|
virtual |
DTOR.
|
virtual |
Will remap terrain filenames in gui and sim terrains.
If a remap occured will return true. Does not save out modified scenario
|
protectedvirtual |
|
protected |
|
protected |