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

The DtTerrainContentsWidget displays the terrain Contents that were used to compose the current terrain. More...

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

Public Types

typedef std::map< int,
QTreeWidgetItem * > 
ItemMap
 Map of id's to the QTreeWidgetItem that represents them.
- Public Types inherited from makVrv::DtTerrainContentsInterface
enum  LayerType { TerrainPatch, FeatureLayer, OceanLayer }

Public Member Functions

virtual ~DtTerrainContentsWidget ()
 DTOR.
virtual void addItem (int id, LayerType layerType, const DtUnicode &name, bool visualized)
 Call to add a terrain patch/ feature layer to the widget.
virtual void removeItem (int id)
 Call to remove a terrain patch/ feature layer to the widget.
virtual void setAddOceanButtonState (bool enabled)
 Called to set the state of the AddOceanFeatureLayer button.
virtual void setOceanHeight (double height, const DtUnicode &units, int decimals, double maxHeight)
 Set the height above geodetic 0 altitude that the ocean will be rendered.
virtual void setLodRange (double range, const DtUnicode &units, int decimals, double maxRange, double minStep)
 Set the range at which ocean layers LOD out.
virtual void clear ()
 Called to clear all the terrain patches, feature layers in the widget.
QVBoxLayout * mainLayout ()
 Accessor for the main layout.
QHBoxLayout * buttonLayout ()
 Accessor for the button layout.
QPushButtonaddTerrainPatchButton ()
 Accessor for the add Terrain Patch button.
QPushButtonaddFeatureLayerButton ()
 Accessor for the add Feature Layer button.
QPushButtonaddOceanLayerButton ()
 Accessor for the add Ocean Layer button.
QTreeWidgetcontentsTreeWidget ()
 Accessor for the contents tree widget.
QWidgetoceanSettingsWidget ()
 Accessor for the ocean settings widget; this widget is owns the ocean setting layout.
QVBoxLayout * oceanSettingsLayout ()
 Accessor for the ocean settings layout; this layout contains the sea level and lod layouts.
QHBoxLayout * seaLevelSettingsLayout ()
 Accessor for the sea level settings layout; this layout contains the sea level label, slider, and spin box.
QLabelseaLevelLabel ()
 Accessor for the sea level label.
QSlider * seaLevelSlider ()
 Accessor for the sea level slider.
QDoubleSpinBox * seaLevelSpinBox ()
 Accessor for the sea level spin box.
QHBoxLayout * lodRangeSettingsLayout ()
 Accessor for the lod range settings layout; this layout contains the lod range label, slider, and spin box.
QLabellodRangeLabel ()
 Accessor for the sea level label.
QSlider * lodRangeSlider ()
 Accessor for the sea level slider.
QDoubleSpinBox * lodRangeSpinBox ()
 Accessor for the sea level spin box.
int oceanLayerId ()
 Return the id of the GUI's ocean layer (or 0 if none)

Static Public Attributes

static boost::signal< void(DtDe
&, DtTerrainContentsWidget *)> 
signal_setupGui
 Signal raised when the GUI is initialized.
- Static Public Attributes inherited from makVrv::DtTerrainContentsInterface
static const double theMaxOceanHeightInMeters
static const double theMaxOceanLODElevationInMeters

Protected Slots

virtual void on_addTerrainPatchBtn_clicked ()
virtual void on_addFeatureLayerBtn_clicked ()
virtual void on_addOceanLayerBtn_clicked ()
virtual void on_removeBtn_clicked ()
virtual void on_contentsTreeWidget_itemSelectionChanged ()
virtual void on_seaLevelSpinBox_valueChanged (double value)
virtual void on_seaLevelSlider_valueChanged (int value)
virtual void on_lodRangeSpinBox_valueChanged (double value)
virtual void on_lodRangeSlider_valueChanged (int value)

Protected Member Functions

 DtTerrainContentsWidget (DtDe &de, QWidget *parent=0, Qt::WindowFlags flags=0)
 Protected CTOR. Only callable by DtTerrainContentsWidgetCreator.
void setupGui ()
 Build the gui. Non-virtual because it is called from the constructor.

Protected Attributes

DtDemyDe
ItemMap myItemMap
QTreeWidgetmyContentsTreeWidget
QHBoxLayout * myButtonLayout
QVBoxLayout * myMainLayout
QPushButtonmyAddTerrainPatchButton
 Add Terrain Patch button.
QPushButtonmyAddFeatureLayerButton
QPushButtonmyAddOceanLayerButton
QWidgetmyOceanSettingsWidget
QVBoxLayout * myOceanSettingsLayout
QHBoxLayout * mySeaLevelSettingsLayout
QLabelmySeaLevelLabel
QSlider * mySeaLevelSlider
QDoubleSpinBox * mySeaLevelSpinBox
QHBoxLayout * myLodRangeSettingsLayout
QLabelmyLodRangeLabel
QSlider * myLodRangeSlider
QDoubleSpinBox * myLodRangeSpinBox
int myOceanLayerId
double myMaxOceanHeight
double myMaxOceanLODElevation

Static Protected Attributes

static const int theInputTypeColumn = 0
static const int theNameColumn = 1
static const int theStatusColumn = 2
static const int theIdColumn = 3

Friends

class DtTerrainContentsWidgetCreator
 Let the creator create the page.

Additional Inherited Members

- Public Attributes inherited from makVrv::DtTerrainContentsInterface
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 DtTerrainContentsWidget displays the terrain Contents that were used to compose the current terrain.

Member Typedef Documentation

Map of id's to the QTreeWidgetItem that represents them.

Constructor & Destructor Documentation

virtual makVrv::DtTerrainContentsWidget::~DtTerrainContentsWidget ( )
virtual

DTOR.

makVrv::DtTerrainContentsWidget::DtTerrainContentsWidget ( DtDe de,
QWidget parent = 0,
Qt::WindowFlags  flags = 0 
)
protected

Protected CTOR. Only callable by DtTerrainContentsWidgetCreator.

Member Function Documentation

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

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

Implements makVrv::DtTerrainContentsInterface.

virtual void makVrv::DtTerrainContentsWidget::removeItem ( int  id)
virtual

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

Implements makVrv::DtTerrainContentsInterface.

virtual void makVrv::DtTerrainContentsWidget::setAddOceanButtonState ( bool  enabled)
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

Implements makVrv::DtTerrainContentsInterface.

virtual void makVrv::DtTerrainContentsWidget::setOceanHeight ( double  height,
const DtUnicode units,
int  decimals,
double  maxHeight 
)
virtual

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

Implements makVrv::DtTerrainContentsInterface.

virtual void makVrv::DtTerrainContentsWidget::setLodRange ( double  range,
const DtUnicode units,
int  decimals,
double  maxRange,
double  minStep 
)
virtual

Set the range at which ocean layers LOD out.

Implements makVrv::DtTerrainContentsInterface.

virtual void makVrv::DtTerrainContentsWidget::clear ( )
virtual

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

Implements makVrv::DtTerrainContentsInterface.

QVBoxLayout* makVrv::DtTerrainContentsWidget::mainLayout ( )
inline

Accessor for the main layout.

QHBoxLayout* makVrv::DtTerrainContentsWidget::buttonLayout ( )
inline

Accessor for the button layout.

QPushButton* makVrv::DtTerrainContentsWidget::addTerrainPatchButton ( )
inline

Accessor for the add Terrain Patch button.

QPushButton* makVrv::DtTerrainContentsWidget::addFeatureLayerButton ( )
inline

Accessor for the add Feature Layer button.

QPushButton* makVrv::DtTerrainContentsWidget::addOceanLayerButton ( )
inline

Accessor for the add Ocean Layer button.

QTreeWidget* makVrv::DtTerrainContentsWidget::contentsTreeWidget ( )
inline

Accessor for the contents tree widget.

QWidget* makVrv::DtTerrainContentsWidget::oceanSettingsWidget ( )
inline

Accessor for the ocean settings widget; this widget is owns the ocean setting layout.

QVBoxLayout* makVrv::DtTerrainContentsWidget::oceanSettingsLayout ( )
inline

Accessor for the ocean settings layout; this layout contains the sea level and lod layouts.

QHBoxLayout* makVrv::DtTerrainContentsWidget::seaLevelSettingsLayout ( )
inline

Accessor for the sea level settings layout; this layout contains the sea level label, slider, and spin box.

QLabel* makVrv::DtTerrainContentsWidget::seaLevelLabel ( )
inline

Accessor for the sea level label.

QSlider* makVrv::DtTerrainContentsWidget::seaLevelSlider ( )
inline

Accessor for the sea level slider.

QDoubleSpinBox* makVrv::DtTerrainContentsWidget::seaLevelSpinBox ( )
inline

Accessor for the sea level spin box.

QHBoxLayout* makVrv::DtTerrainContentsWidget::lodRangeSettingsLayout ( )
inline

Accessor for the lod range settings layout; this layout contains the lod range label, slider, and spin box.

QLabel* makVrv::DtTerrainContentsWidget::lodRangeLabel ( )
inline

Accessor for the sea level label.

QSlider* makVrv::DtTerrainContentsWidget::lodRangeSlider ( )
inline

Accessor for the sea level slider.

QDoubleSpinBox* makVrv::DtTerrainContentsWidget::lodRangeSpinBox ( )
inline

Accessor for the sea level spin box.

int makVrv::DtTerrainContentsWidget::oceanLayerId ( )
inline

Return the id of the GUI's ocean layer (or 0 if none)

virtual void makVrv::DtTerrainContentsWidget::on_addTerrainPatchBtn_clicked ( )
protectedvirtualslot
virtual void makVrv::DtTerrainContentsWidget::on_addFeatureLayerBtn_clicked ( )
protectedvirtualslot
virtual void makVrv::DtTerrainContentsWidget::on_addOceanLayerBtn_clicked ( )
protectedvirtualslot
virtual void makVrv::DtTerrainContentsWidget::on_removeBtn_clicked ( )
protectedvirtualslot
virtual void makVrv::DtTerrainContentsWidget::on_contentsTreeWidget_itemSelectionChanged ( )
protectedvirtualslot
virtual void makVrv::DtTerrainContentsWidget::on_seaLevelSpinBox_valueChanged ( double  value)
protectedvirtualslot
virtual void makVrv::DtTerrainContentsWidget::on_seaLevelSlider_valueChanged ( int  value)
protectedvirtualslot
virtual void makVrv::DtTerrainContentsWidget::on_lodRangeSpinBox_valueChanged ( double  value)
protectedvirtualslot
virtual void makVrv::DtTerrainContentsWidget::on_lodRangeSlider_valueChanged ( int  value)
protectedvirtualslot
void makVrv::DtTerrainContentsWidget::setupGui ( )
protected

Build the gui. Non-virtual because it is called from the constructor.

Reimplemented in makVrf::DtVrfTerrainContentsWidget.

Friends And Related Function Documentation

friend class DtTerrainContentsWidgetCreator
friend

Let the creator create the page.

Member Data Documentation

boost::signal<void (DtDe&, DtTerrainContentsWidget*)> makVrv::DtTerrainContentsWidget::signal_setupGui
static

Signal raised when the GUI is initialized.

const int makVrv::DtTerrainContentsWidget::theInputTypeColumn = 0
staticprotected
const int makVrv::DtTerrainContentsWidget::theNameColumn = 1
staticprotected
const int makVrv::DtTerrainContentsWidget::theStatusColumn = 2
staticprotected
const int makVrv::DtTerrainContentsWidget::theIdColumn = 3
staticprotected
DtDe& makVrv::DtTerrainContentsWidget::myDe
protected
ItemMap makVrv::DtTerrainContentsWidget::myItemMap
protected
QTreeWidget* makVrv::DtTerrainContentsWidget::myContentsTreeWidget
protected
QHBoxLayout* makVrv::DtTerrainContentsWidget::myButtonLayout
protected
QVBoxLayout* makVrv::DtTerrainContentsWidget::myMainLayout
protected
QPushButton* makVrv::DtTerrainContentsWidget::myAddTerrainPatchButton
protected

Add Terrain Patch button.

QPushButton* makVrv::DtTerrainContentsWidget::myAddFeatureLayerButton
protected
QPushButton* makVrv::DtTerrainContentsWidget::myAddOceanLayerButton
protected
QWidget* makVrv::DtTerrainContentsWidget::myOceanSettingsWidget
protected
QVBoxLayout* makVrv::DtTerrainContentsWidget::myOceanSettingsLayout
protected
QHBoxLayout* makVrv::DtTerrainContentsWidget::mySeaLevelSettingsLayout
protected
QLabel* makVrv::DtTerrainContentsWidget::mySeaLevelLabel
protected
QSlider* makVrv::DtTerrainContentsWidget::mySeaLevelSlider
protected
QDoubleSpinBox* makVrv::DtTerrainContentsWidget::mySeaLevelSpinBox
protected
QHBoxLayout* makVrv::DtTerrainContentsWidget::myLodRangeSettingsLayout
protected
QLabel* makVrv::DtTerrainContentsWidget::myLodRangeLabel
protected
QSlider* makVrv::DtTerrainContentsWidget::myLodRangeSlider
protected
QDoubleSpinBox* makVrv::DtTerrainContentsWidget::myLodRangeSpinBox
protected
int makVrv::DtTerrainContentsWidget::myOceanLayerId
protected
double makVrv::DtTerrainContentsWidget::myMaxOceanHeight
protected
double makVrv::DtTerrainContentsWidget::myMaxOceanLODElevation
protected

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

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)