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

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

Inheritance diagram for makVrf::DtVrfTerrainContentsWidget:
Inheritance graph
[legend]

Public Member Functions

virtual ~DtVrfTerrainContentsWidget ()
 DTOR.
- Public Member Functions inherited from makVrv::DtTerrainContentsWidget
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)

Protected Slots

virtual void on_addSimFeatureLayerBtn_clicked ()
- Protected Slots inherited from makVrv::DtTerrainContentsWidget
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

 DtVrfTerrainContentsWidget (makVrv::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 Member Functions inherited from makVrv::DtTerrainContentsWidget
 DtTerrainContentsWidget (DtDe &de, QWidget *parent=0, Qt::WindowFlags flags=0)
 Protected CTOR. Only callable by DtTerrainContentsWidgetCreator.

Protected Attributes

QPushButtonmyAddSimFeatureLayerButton
 Add Sim Feature Layer button.
- Protected Attributes inherited from makVrv::DtTerrainContentsWidget
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

Friends

class DtVrfTerrainContentsWidgetCreator
 Let the creator create the page.

Additional Inherited Members

- Public Types inherited from makVrv::DtTerrainContentsWidget
typedef std::map< int,
QTreeWidgetItem * > 
ItemMap
 Map of id's to the QTreeWidgetItem that represents them.
- 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.
- Static Public Attributes inherited from makVrv::DtTerrainContentsWidget
static boost::signal< void(DtDe
&, DtTerrainContentsWidget *)> 
signal_setupGui
 Signal raised when the GUI is initialized.
- Static Protected Attributes inherited from makVrv::DtTerrainContentsWidget
static const int theInputTypeColumn = 0
static const int theNameColumn = 1
static const int theStatusColumn = 2
static const int theIdColumn = 3

Detailed Description

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

Constructor & Destructor Documentation

virtual makVrf::DtVrfTerrainContentsWidget::~DtVrfTerrainContentsWidget ( )
virtual

DTOR.

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

Protected CTOR. Only callable by DtTerrainContentsWidgetCreator.

Member Function Documentation

virtual void makVrf::DtVrfTerrainContentsWidget::on_addSimFeatureLayerBtn_clicked ( )
protectedvirtualslot
void makVrf::DtVrfTerrainContentsWidget::setupGui ( )
protected

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

Reimplemented from makVrv::DtTerrainContentsWidget.

Friends And Related Function Documentation

friend class DtVrfTerrainContentsWidgetCreator
friend

Let the creator create the page.

Member Data Documentation

QPushButton* makVrf::DtVrfTerrainContentsWidget::myAddSimFeatureLayerButton
protected

Add Sim Feature Layer button.


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)