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 | Public Attributes
makVrv::DtTerrainContentsInterface Class Reference

The interface for the makVrv::DtTerrainContentsWidget for the makVrv::DtTerrainContentsLogic. More...

Inheritance diagram for makVrv::DtTerrainContentsInterface:
Inheritance graph
[legend]

Public Types

enum  LayerType { TerrainPatch, FeatureLayer, OceanLayer }

Public Member Functions

virtual void addItem (int id, LayerType layerType, const DtUnicode &name, bool visualized)=0
 Call to add a terrain patch/ feature layer to the widget.
virtual void removeItem (int id)=0
 Call to remove a terrain patch/ feature layer to the widget.
virtual void clear ()=0
 Called to clear all the terrain patches, feature layers in the widget.
virtual void setAddOceanButtonState (bool enabled)=0
 Called to set the state of the AddOceanFeatureLayer button.
virtual void setOceanHeight (double height, const DtUnicode &units, int decimals)=0
 Set the height above geodetic 0 altitude that the ocean will be rendered.
virtual void setLodRange (double range, const DtUnicode &units, int decimals)=0
 Set the range at which ocean layers LOD out.

Public Attributes

boost::signal< void(int)> signal_remove
 emitted by the widget when the user chooses remove a layer.
boost::signal< void(float)> signal_oceanHeightChanged
 Signal emitted by the widget when the user changes the ocean height spin box or slider.
boost::signal< void(float)> signal_lodRangeChanged
 Signal emitted by the widget when the user changes the lod range spin box or slider.

Detailed Description

The interface for the makVrv::DtTerrainContentsWidget for the makVrv::DtTerrainContentsLogic.

Member Enumeration Documentation

Enumerator:
TerrainPatch 
FeatureLayer 
OceanLayer 

Member Function Documentation

virtual void makVrv::DtTerrainContentsInterface::addItem ( int  id,
LayerType  layerType,
const DtUnicode name,
bool  visualized 
)
pure virtual

Call to add a terrain patch/ feature layer to the widget.

Implemented in makVrv::DtTerrainContentsWidget.

virtual void makVrv::DtTerrainContentsInterface::removeItem ( int  id)
pure virtual

Call to remove a terrain patch/ feature layer to the widget.

Implemented in makVrv::DtTerrainContentsWidget.

virtual void makVrv::DtTerrainContentsInterface::clear ( )
pure virtual

Called to clear all the terrain patches, feature layers in the widget.

Implemented in makVrv::DtTerrainContentsWidget.

virtual void makVrv::DtTerrainContentsInterface::setAddOceanButtonState ( bool  enabled)
pure virtual

Called to set the state of the AddOceanFeatureLayer button.

Currently, only one ocean layer is supported, so disable if an ocean layer already exists

Implemented in makVrv::DtTerrainContentsWidget.

virtual void makVrv::DtTerrainContentsInterface::setOceanHeight ( double  height,
const DtUnicode units,
int  decimals 
)
pure virtual

Set the height above geodetic 0 altitude that the ocean will be rendered.

Implemented in makVrv::DtTerrainContentsWidget.

virtual void makVrv::DtTerrainContentsInterface::setLodRange ( double  range,
const DtUnicode units,
int  decimals 
)
pure virtual

Set the range at which ocean layers LOD out.

Implemented in makVrv::DtTerrainContentsWidget.

Member Data Documentation

boost::signal<void (int)> makVrv::DtTerrainContentsInterface::signal_remove

emitted by the widget when the user chooses remove a layer.

Connected to a slot in the logic.

boost::signal<void ( float )> makVrv::DtTerrainContentsInterface::signal_oceanHeightChanged

Signal emitted by the widget when the user changes the ocean height spin box or slider.

boost::signal<void ( float )> makVrv::DtTerrainContentsInterface::signal_lodRangeChanged

Signal emitted by the widget when the user changes the lod range spin box or slider.


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)