![]() |
VR-Forces 4.3 Class Documentation
|
Adds terrain patches to the scene. More...
Public Member Functions | |
| DtAddTerrainPatchLogic (DtDe &de, DtAddTerrainPatchInterface *iFace) | |
| CTOR. | |
| ~DtAddTerrainPatchLogic () | |
| DTOR. | |
| void | onTerrainPatchFileChosen (const std::string &filePath) |
| Called when users chooses a file to be loaded as a terrain patch. | |
| bool | processTerrainHeader (const std::string &filePath, DtAddTerrainPatchInterface::ErrorMessage &msg) |
| Process a terrain header to fill out terrain parameter values and a terrain record; if no parser if found for the terrian type, use default values. | |
| void | addTerrainPatch () |
| Called when a user clicks "Ok" on the add terrain patch dialog. | |
| bool | terrainPatchLoadable () |
| Check whether there is enough information to load the terrain patch. | |
Protected Member Functions | |
| void | onCoordinateSystemChanged (const std::string &coordSystem) |
| Called when the coordinate system is changed. | |
| void | onCoordinateSystemParamsChanged (const std::string &coordSystemParams) |
| Called when the coordinate system parameters are changed. | |
| void | onDdsFlipChanged (bool ddsFlip) |
| Called when dds flip is changed. | |
| int | coordSysStrToEnum (const std::string &coordSys) |
| Helper method for getting an enum for a coordSys string. | |
Protected Attributes | |
| DtDe & | myDe |
| DtAddTerrainPatchInterface * | myInterface |
| std::string | myTerrainPath |
| std::string | myCoordinateSystem |
| std::string | myCoordinateSystemParams |
| bool | myDdsFlip |
| DtHeaderParser::TerrainPatchRecords | myTerrainPatchRecords |
| DtSignalConnectionManager | mySignals |
Adds terrain patches to the scene.
<
| makVrv::DtAddTerrainPatchLogic::DtAddTerrainPatchLogic | ( | DtDe & | de, |
| DtAddTerrainPatchInterface * | iFace | ||
| ) |
CTOR.
| makVrv::DtAddTerrainPatchLogic::~DtAddTerrainPatchLogic | ( | ) |
DTOR.
| void makVrv::DtAddTerrainPatchLogic::onTerrainPatchFileChosen | ( | const std::string & | filePath | ) |
Called when users chooses a file to be loaded as a terrain patch.
| bool makVrv::DtAddTerrainPatchLogic::processTerrainHeader | ( | const std::string & | filePath, |
| DtAddTerrainPatchInterface::ErrorMessage & | msg | ||
| ) |
Process a terrain header to fill out terrain parameter values and a terrain record; if no parser if found for the terrian type, use default values.
Writes out the error msg enum if the proces fails.
| void makVrv::DtAddTerrainPatchLogic::addTerrainPatch | ( | ) |
Called when a user clicks "Ok" on the add terrain patch dialog.
Creates a model definition and adds it as a terrain patch.
| bool makVrv::DtAddTerrainPatchLogic::terrainPatchLoadable | ( | ) |
Check whether there is enough information to load the terrain patch.
|
protected |
Called when the coordinate system is changed.
|
protected |
Called when the coordinate system parameters are changed.
|
protected |
Called when dds flip is changed.
|
protected |
Helper method for getting an enum for a coordSys string.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |