![]() |
VR-Forces 4.5 Class Documentation
|
The DtTerrainContentsWidget displays the terrain Contents that were used to compose the current terrain. More...

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. | |
| QPushButton * | addTerrainPatchButton () |
| Accessor for the add Terrain Patch button. | |
| QPushButton * | addFeatureLayerButton () |
| Accessor for the add Feature Layer button. | |
| QPushButton * | addOceanLayerButton () |
| Accessor for the add Ocean Layer button. | |
| QTreeWidget * | contentsTreeWidget () |
| Accessor for the contents tree widget. | |
| QWidget * | oceanSettingsWidget () |
| 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. | |
| QLabel * | seaLevelLabel () |
| 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. | |
| QLabel * | lodRangeLabel () |
| 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 boost::signal< void(std::string)> | signal_selectTreeItemChanged |
| Signal raised when the current selection tree item changed. | |
| static boost::signal< void()> | signal_pageClosed |
| Signal raised when the page closed. | |
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 | |
| DtDe & | myDe |
| ItemMap | myItemMap |
| QTreeWidget * | myContentsTreeWidget |
| QHBoxLayout * | myButtonLayout |
| QVBoxLayout * | myMainLayout |
| QPushButton * | myAddTerrainPatchButton |
| Add Terrain Patch button. | |
| QPushButton * | myAddFeatureLayerButton |
| QPushButton * | myAddOceanLayerButton |
| QWidget * | myOceanSettingsWidget |
| QVBoxLayout * | myOceanSettingsLayout |
| QHBoxLayout * | mySeaLevelSettingsLayout |
| QLabel * | mySeaLevelLabel |
| QSlider * | mySeaLevelSlider |
| QDoubleSpinBox * | mySeaLevelSpinBox |
| QHBoxLayout * | myLodRangeSettingsLayout |
| QLabel * | myLodRangeLabel |
| 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. | |
The DtTerrainContentsWidget displays the terrain Contents that were used to compose the current terrain.
| typedef std::map<int, QTreeWidgetItem*> makVrv::DtTerrainContentsWidget::ItemMap |
Map of id's to the QTreeWidgetItem that represents them.
|
virtual |
DTOR.
|
protected |
Protected CTOR. Only callable by DtTerrainContentsWidgetCreator.
|
virtual |
Call to add a terrain patch/ feature layer to the widget.
Implements makVrv::DtTerrainContentsInterface.
|
virtual |
Call to remove a terrain patch/ feature layer to the widget.
Implements makVrv::DtTerrainContentsInterface.
|
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 |
Set the height above geodetic 0 altitude that the ocean will be rendered.
Implements makVrv::DtTerrainContentsInterface.
|
virtual |
Set the range at which ocean layers LOD out.
Implements makVrv::DtTerrainContentsInterface.
|
virtual |
Called to clear all the terrain patches, feature layers in the widget.
Implements makVrv::DtTerrainContentsInterface.
|
inline |
Accessor for the main layout.
|
inline |
Accessor for the button layout.
|
inline |
Accessor for the add Terrain Patch button.
|
inline |
Accessor for the add Feature Layer button.
|
inline |
Accessor for the add Ocean Layer button.
|
inline |
Accessor for the contents tree widget.
|
inline |
Accessor for the ocean settings widget; this widget is owns the ocean setting layout.
|
inline |
Accessor for the ocean settings layout; this layout contains the sea level and lod layouts.
|
inline |
Accessor for the sea level settings layout; this layout contains the sea level label, slider, and spin box.
|
inline |
Accessor for the sea level label.
|
inline |
Accessor for the sea level slider.
|
inline |
Accessor for the sea level spin box.
|
inline |
Accessor for the lod range settings layout; this layout contains the lod range label, slider, and spin box.
|
inline |
Accessor for the sea level label.
|
inline |
Accessor for the sea level slider.
|
inline |
Accessor for the sea level spin box.
|
inline |
Return the id of the GUI's ocean layer (or 0 if none)
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
protected |
Build the gui. Non-virtual because it is called from the constructor.
Reimplemented in makVrf::DtVrfTerrainContentsWidget.
|
friend |
Let the creator create the page.
|
static |
Signal raised when the GUI is initialized.
|
static |
Signal raised when the current selection tree item changed.
|
static |
Signal raised when the page closed.
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Add Terrain Patch button.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |