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

The DtTerrainContentsLogic populates the DtTerrainContentsWidget with the Contents that were used to compose the current terrain. More...

List of all members.

Public Types

typedef std::map< std::string,
int > 
IdMap
 Terrain patches will have unique string names.

Public Member Functions

 DtTerrainContentsLogic (DtDe &de, DtTerrainContentsInterface &iFace)
 CTOR.
 ~DtTerrainContentsLogic ()
 DTOR.

Protected Member Functions

void populateWidgetWithContents ()
 Populate the widget with Contents already performed.
void slot_terrainPatchAdded (const DtTerrainPatch &terrainPatch)
 Slot called when a new terrain has been added.
void slot_terrainPatchToBeDeleted (const DtTerrainPatch &terrainPatch)
 Slot called when a new terrain has been removed.
void slot_featureLayerAdded (const DtFeatureLayer &layer)
 Slot called when a new feature layer has been added.
void slot_featureLayerToBeDeleted (const DtFeatureLayer &layer)
 Slot called when a new feature layer has been removed.
void slot_remove (int id)
 Remove a terrain patch or feature layer based on id.

Protected Attributes

DtDemyDe
DtTerrainContentsInterfacemyGui
int myNextUniqueId
IdMap myTerrainPatchMap
IdMap myFeatureLayerMap

Detailed Description

The DtTerrainContentsLogic populates the DtTerrainContentsWidget with the Contents that were used to compose the current terrain.


Member Typedef Documentation

typedef std::map<std::string, int> makVrv::DtTerrainContentsLogic::IdMap

Terrain patches will have unique string names.

Feature layers will have unique string names. Terrain patches could have the same string name as feature layers though. Keep a map of the "unique" string name, to a actually unique id.


Constructor & Destructor Documentation

CTOR.

DTOR.


Member Function Documentation

Populate the widget with Contents already performed.

void makVrv::DtTerrainContentsLogic::slot_terrainPatchAdded ( const DtTerrainPatch terrainPatch) [protected]

Slot called when a new terrain has been added.

Slot called when a new terrain has been removed.

Slot called when a new feature layer has been added.

Slot called when a new feature layer has been removed.

void makVrv::DtTerrainContentsLogic::slot_remove ( int  id) [protected]

Remove a terrain patch or feature layer based on id.

Called from the widget.


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)