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

Adds terrain patches to the scene. More...

Public Types

enum  AlphaToCoverageState { USE_GLOBAL, FORCE_OFF, FORCE_ON }
 The possible states of alpha to coverage for a terrain patch. 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.
void onAlphaToCoverageChanged (int state)
 called when alpha to coverage for this terrain patches 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
AlphaToCoverageState myAlphaToCoverageState
DtHeaderParser::TerrainPatchRecords myTerrainPatchRecords
DtSignalConnectionManager mySignals

Detailed Description

Adds terrain patches to the scene.

<

Member Enumeration Documentation

The possible states of alpha to coverage for a terrain patch.

Enumerator:
USE_GLOBAL 
FORCE_OFF 
FORCE_ON 

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.

void makVrv::DtAddTerrainPatchLogic::onAlphaToCoverageChanged ( int  state)
protected

called when alpha to coverage for this terrain patches 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
AlphaToCoverageState makVrv::DtAddTerrainPatchLogic::myAlphaToCoverageState
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 Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)