![]() |
VR-Forces 5.0.2 Developer's Guide
|
A dialog widget that allows the user to configure a minimap for a terrain.
The dialog will display a list of terrain patches present in the currently loaded terrain that are configured to be minimap only. The widget displays the absolute paths of the terrain patches in a QTreeWidget and provides users a way of adding and removing terrain patches to the list.
The terrain record for the currently loaded terrain is updated to reflect the new list of minimap only terrain patches when the dialog is closed with an 'Accepted' Qt event. Otherwise, any changes are lost when the dialog is closed.

Signals | |
| void | minimapConfigured (bool) |
Public Member Functions | |
| DtMinimapEditorWidget (DtDe &de, QWidget *parentWidget, const Qt::WindowFlags &flags=0) | |
| void | show () |
Protected Slots | |
| virtual void | onCommitButtonPressed () |
| virtual void | onCancelButtonPressed () |
| virtual void | on_addButton_clicked () |
| virtual void | on_removeButton_clicked () |
Protected Attributes | |
| DtDe & | myDe |
| std::set< std::string > | myTerrainPatchDefinitions |
| std::string | myOsgEarthTerrainPatchDefinition |
| QVBoxLayout * | myMainLayout |
| QDialogButtonBox * | myButtonBox |
| QTreeWidget * | myContentsTreeWidget |
| QHBoxLayout * | myButtonLayout |
| QPushButton * | myAddButton |
| QPushButton * | myRemoveButton |
| makVrv::DtMinimapEditorWidget::DtMinimapEditorWidget | ( | DtDe & | de, |
| QWidget * | parentWidget, | ||
| const Qt::WindowFlags & | flags = 0 |
||
| ) |
Default CTOR.
| parentWidget | The parent widget. |
| void makVrv::DtMinimapEditorWidget::show | ( | ) |
Show the minimap editor widget with updated list of minimap-only terrain patches.
|
signal |
|
protectedvirtualslot |
Qt Slot when the 'OK' button is pressed This function updates the currently loaded terrain's DtTerrainRecord to reflect the updated list of minimap only terrain patches the user specified in this widget. Emits minimapConfigured(true), if more than one terrain patch has been specified as minimap only. Otherwise, emits minimapConfigured(false).
|
protectedvirtualslot |
Qt Slot when the 'Cancel' button is pressed Emits minimapConfigured(true), if more than one terrain patch has been specified as minimap only. Otherwise, emits minimapConfigured(false).
|
protectedvirtualslot |
Qt Slot when the green plus button is pressed This functions updates an internal list of minimap-only terrain patches and does not update the currently terrain in any way. This function ensures the user only specifies one osgEarth terrain patch.
|
protectedvirtualslot |
Qt Slot when the red minus button is pressed This functions updates an internal list of minimap-only terrain patches and does not update the currently terrain in any way.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |