VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Signals | Public Member Functions | Protected Slots | Protected Attributes
makVrv::DtMinimapEditorWidget Class Reference

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.

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

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

DtDemyDe
 
std::set< std::string > myTerrainPatchDefinitions
 
std::string myOsgEarthTerrainPatchDefinition
 
QVBoxLayout * myMainLayout
 
QDialogButtonBox * myButtonBox
 
QTreeWidgetmyContentsTreeWidget
 
QHBoxLayout * myButtonLayout
 
QPushButtonmyAddButton
 
QPushButtonmyRemoveButton
 

Constructor & Destructor Documentation

makVrv::DtMinimapEditorWidget::DtMinimapEditorWidget ( DtDe de,
QWidget *  parentWidget,
const Qt::WindowFlags &  flags = 0 
)

Default CTOR.

Parameters
parentWidgetThe parent widget.

Member Function Documentation

void makVrv::DtMinimapEditorWidget::show ( )

Show the minimap editor widget with updated list of minimap-only terrain patches.

void makVrv::DtMinimapEditorWidget::minimapConfigured ( bool  )
signal
virtual void makVrv::DtMinimapEditorWidget::onCommitButtonPressed ( )
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).

virtual void makVrv::DtMinimapEditorWidget::onCancelButtonPressed ( )
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).

virtual void makVrv::DtMinimapEditorWidget::on_addButton_clicked ( )
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.

virtual void makVrv::DtMinimapEditorWidget::on_removeButton_clicked ( )
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.

Member Data Documentation

DtDe& makVrv::DtMinimapEditorWidget::myDe
protected
std::set<std::string> makVrv::DtMinimapEditorWidget::myTerrainPatchDefinitions
protected
std::string makVrv::DtMinimapEditorWidget::myOsgEarthTerrainPatchDefinition
protected
QVBoxLayout* makVrv::DtMinimapEditorWidget::myMainLayout
protected
QDialogButtonBox* makVrv::DtMinimapEditorWidget::myButtonBox
protected
QTreeWidget* makVrv::DtMinimapEditorWidget::myContentsTreeWidget
protected
QHBoxLayout* makVrv::DtMinimapEditorWidget::myButtonLayout
protected
QPushButton* makVrv::DtMinimapEditorWidget::myAddButton
protected
QPushButton* makVrv::DtMinimapEditorWidget::myRemoveButton
protected

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

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)