VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtAddTerrainPatchLogic Class Reference

Adds terrain patches to the scene. More...

List of all members.

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

DtDemyDe
DtAddTerrainPatchInterfacemyInterface
std::string myTerrainPath
std::string myCoordinateSystem
std::string myCoordinateSystemParams
bool myDdsFlip
DtHeaderParser::TerrainPatchRecords myTerrainPatchRecords
DtSignalConnectionManager mySignals

Detailed Description

Adds terrain patches to the scene.

<


Constructor & Destructor Documentation

CTOR.

DTOR.


Member Function Documentation

void makVrv::DtAddTerrainPatchLogic::onTerrainPatchFileChosen ( const std::string &  filePath)

Called when users chooses a file to be loaded as a terrain patch.

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.

Called when a user clicks "Ok" on the add terrain patch dialog.

Creates a model definition and adds it as a terrain patch.

Check whether there is enough information to load the terrain patch.

void makVrv::DtAddTerrainPatchLogic::onCoordinateSystemChanged ( const std::string &  coordSystem) [protected]

Called when the coordinate system is changed.

void makVrv::DtAddTerrainPatchLogic::onCoordinateSystemParamsChanged ( const std::string &  coordSystemParams) [protected]

Called when the coordinate system parameters are changed.

Called when dds flip is changed.

int makVrv::DtAddTerrainPatchLogic::coordSysStrToEnum ( const std::string &  coordSys) [protected]

Helper method for getting an enum for a coordSys string.


Member Data Documentation


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)