VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtAddTerrainPatchLogic Class Reference

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

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

makVrv::DtAddTerrainPatchLogic::DtAddTerrainPatchLogic ( DtDe de,
DtAddTerrainPatchInterface iFace 
)

CTOR.

makVrv::DtAddTerrainPatchLogic::~DtAddTerrainPatchLogic ( )

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.

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.

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.

void makVrv::DtAddTerrainPatchLogic::onDdsFlipChanged ( bool  ddsFlip)
protected

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

DtDe& makVrv::DtAddTerrainPatchLogic::myDe
protected
DtAddTerrainPatchInterface* makVrv::DtAddTerrainPatchLogic::myInterface
protected
std::string makVrv::DtAddTerrainPatchLogic::myTerrainPath
protected
std::string makVrv::DtAddTerrainPatchLogic::myCoordinateSystem
protected
std::string makVrv::DtAddTerrainPatchLogic::myCoordinateSystemParams
protected
bool makVrv::DtAddTerrainPatchLogic::myDdsFlip
protected
DtHeaderParser::TerrainPatchRecords makVrv::DtAddTerrainPatchLogic::myTerrainPatchRecords
protected
DtSignalConnectionManager makVrv::DtAddTerrainPatchLogic::mySignals
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)