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

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

Public Types

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

Public Member Functions

virtual ~DtTerrainContentsLogic ()
 DTOR.

Protected Member Functions

 DtTerrainContentsLogic (DtDe &de, DtTerrainContentsInterface &iFace)
 Protected Constructor.
void populateWidgetWithContents ()
 Populate the widget with Contents already performed.
void setOceanLayerOceanHeight (double nativeHeight)
void setOceanLayerLodRange (double nativeRange)
virtual void slot_terrainPatchAdded (const DtTerrainPatch &terrainPatch)
 Slot called when the DtTerrainSignaler signals that a new terrain has been added.
virtual void slot_terrainPatchToBeDeleted (const DtTerrainPatch &terrainPatch)
 Slot called when the DtTerrainSignaler signals that a terrain has been removed.
virtual void slot_featureLayerAdded (const DtFeatureLayer &layer)
 Slot called when the DtTerrainSignaler signals that a new feature layer has been added.
virtual void slot_featureLayerToBeDeleted (const DtFeatureLayer &layer)
 Slot called when the DtSignaler signals that a feature layer has been removed.
virtual void slot_remove (int id)
 Remove a terrain patch or feature layer based on id.
virtual void slot_oceanLayerAdded (const DtOceanLayer &layer)
 Slot called when the DtTerrainSignaler signals that a new ocean layer has been added.
virtual void slot_oceanLayerToBeDeleted (const DtOceanLayer &layer)
 Slot called when the DtSignaler signals that a ocean layer has been removed.
virtual void slot_oceanHeightChanged (float oceanHeight)
 This slot connects to the signal raised by the GUI when the ocean height is changed for the ocean layer.
virtual void slot_lodRangeChanged (double range)
 This slot connects to the signal raised by the GUI when the lod range is changed for the ocean layer.
virtual void slot_oceanLayerSeaLevelChanged (const DtOceanLayer &layer, double seaLevel)
 This slot is connected to the signal raised by the DtTerrainSignaler when an ocean layer's sea level changes.
virtual void slot_oceanLayerLodRangeChanged (const DtOceanLayer &layer, double range)
 This slot is connected to the signal raised by the DtTerrainSignaler when an ocean layer's lod range changes.
virtual void slot_displayUnitsChanged (int type)
 slot called when display units and/or decimals change

Protected Attributes

DtDemyDe
DtTerrainContentsInterfacemyGui
int myNextUniqueId
IdMap myTerrainPatchMap
IdMap myFeatureLayerMap
int myOceanLayerId
std::string myOceanLayerName
DtSignalConnectionManager mySignals

Friends

class DtTerrainContentsLogicCreator

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

virtual makVrv::DtTerrainContentsLogic::~DtTerrainContentsLogic ( )
virtual

DTOR.

makVrv::DtTerrainContentsLogic::DtTerrainContentsLogic ( DtDe de,
DtTerrainContentsInterface iFace 
)
protected

Protected Constructor.

Use DtTerrainContentsLogicCreator to create instances of this class

Member Function Documentation

void makVrv::DtTerrainContentsLogic::populateWidgetWithContents ( )
protected

Populate the widget with Contents already performed.

Not virtual because its called from the constructor. Overriding classes can send additional info to the widget in their own constructor

void makVrv::DtTerrainContentsLogic::setOceanLayerOceanHeight ( double  nativeHeight)
protected
void makVrv::DtTerrainContentsLogic::setOceanLayerLodRange ( double  nativeRange)
protected
virtual void makVrv::DtTerrainContentsLogic::slot_terrainPatchAdded ( const DtTerrainPatch terrainPatch)
protectedvirtual

Slot called when the DtTerrainSignaler signals that a new terrain has been added.

virtual void makVrv::DtTerrainContentsLogic::slot_terrainPatchToBeDeleted ( const DtTerrainPatch terrainPatch)
protectedvirtual

Slot called when the DtTerrainSignaler signals that a terrain has been removed.

virtual void makVrv::DtTerrainContentsLogic::slot_featureLayerAdded ( const DtFeatureLayer layer)
protectedvirtual

Slot called when the DtTerrainSignaler signals that a new feature layer has been added.

virtual void makVrv::DtTerrainContentsLogic::slot_featureLayerToBeDeleted ( const DtFeatureLayer layer)
protectedvirtual

Slot called when the DtSignaler signals that a feature layer has been removed.

virtual void makVrv::DtTerrainContentsLogic::slot_remove ( int  id)
protectedvirtual

Remove a terrain patch or feature layer based on id.

Signal raised by the widget.

virtual void makVrv::DtTerrainContentsLogic::slot_oceanLayerAdded ( const DtOceanLayer layer)
protectedvirtual

Slot called when the DtTerrainSignaler signals that a new ocean layer has been added.

virtual void makVrv::DtTerrainContentsLogic::slot_oceanLayerToBeDeleted ( const DtOceanLayer layer)
protectedvirtual

Slot called when the DtSignaler signals that a ocean layer has been removed.

virtual void makVrv::DtTerrainContentsLogic::slot_oceanHeightChanged ( float  oceanHeight)
protectedvirtual

This slot connects to the signal raised by the GUI when the ocean height is changed for the ocean layer.

virtual void makVrv::DtTerrainContentsLogic::slot_lodRangeChanged ( double  range)
protectedvirtual

This slot connects to the signal raised by the GUI when the lod range is changed for the ocean layer.

virtual void makVrv::DtTerrainContentsLogic::slot_oceanLayerSeaLevelChanged ( const DtOceanLayer layer,
double  seaLevel 
)
protectedvirtual

This slot is connected to the signal raised by the DtTerrainSignaler when an ocean layer's sea level changes.

virtual void makVrv::DtTerrainContentsLogic::slot_oceanLayerLodRangeChanged ( const DtOceanLayer layer,
double  range 
)
protectedvirtual

This slot is connected to the signal raised by the DtTerrainSignaler when an ocean layer's lod range changes.

virtual void makVrv::DtTerrainContentsLogic::slot_displayUnitsChanged ( int  type)
protectedvirtual

slot called when display units and/or decimals change

Friends And Related Function Documentation

friend class DtTerrainContentsLogicCreator
friend

Member Data Documentation

DtDe& makVrv::DtTerrainContentsLogic::myDe
protected
DtTerrainContentsInterface& makVrv::DtTerrainContentsLogic::myGui
protected
int makVrv::DtTerrainContentsLogic::myNextUniqueId
protected
IdMap makVrv::DtTerrainContentsLogic::myTerrainPatchMap
protected
IdMap makVrv::DtTerrainContentsLogic::myFeatureLayerMap
protected
int makVrv::DtTerrainContentsLogic::myOceanLayerId
protected
std::string makVrv::DtTerrainContentsLogic::myOceanLayerName
protected
DtSignalConnectionManager makVrv::DtTerrainContentsLogic::mySignals
protected

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

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)