VR-Forces 4.1.1 Class Documentation
List of all members | Public Slots | Signals | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
DtTerrainFeaturesWidget Class Reference
Inheritance diagram for DtTerrainFeaturesWidget:
Inheritance graph
[legend]

Public Slots

virtual void setTerrainDatabase (const DtTerrainDatabase *d)
 Called when the terrain database is set.
virtual void applyAndClose ()
 Apply changes and close the window.
virtual void applyChanges ()
 Apply changes without closing.
virtual void featureChanged (QTreeWidgetItem *item)
 Called when a user selects an item in the list box, will see if the visible flag has changed.
virtual void showAll ()
virtual void hideAll ()
virtual void restore ()
 Restores the list box to the original settings.
virtual void featureColorChanged (QTreeWidgetItem *)
 Called when the mouse button is pressed on an item, if it is the left mouse button and on the color column, bring up the color dialog to change.
virtual void raiseLayer ()
 Called to raise the selected layer in the drawing order.
virtual void lowerLayer ()
 Called to lower the selected layer in the drawing order.
virtual void updateRaiseButtons ()
 Updates the status of the raise/lower buttons.
virtual void selectionChanged (QTreeWidgetItem *item, int col)
 Will enable/disable select all button.
virtual void selectAll ()
 This will select all of the features on the currently active map by asking the terrain selector of that map to select all features that are of particular specification.
virtual void selectionModeChanged (DtBaseWindow *)
 Received when parent window changes its selection mode.

Signals

void featuresChanged (DtList *)
 Sent when a feature has changed.

Public Member Functions

 DtTerrainFeaturesWidget (QWidget *parent=0, const Qt::WindowFlags &flags=0)
virtual ~DtTerrainFeaturesWidget ()
virtual bool init (DtBaseWindow *parent)
 Must be called after creation.
virtual void connectParent (DtBaseWindow *window)
virtual DtTerrainFeaturesListfeaturesList () const
 Returns the list box of features.

Static Public Member Functions

static DtTerrainFeaturesWidgetcreate (QWidget *parent, const Qt::WindowFlags &flags)
 Returns a newly created instance of a DtTerrainPaperMapWidget.

Public Attributes

Ui::DtTerrainPaperMapWidgetUi myUiImpl

Protected Member Functions

virtual bool setAllLayersTo (bool show)
 Sets all the feature layers to either show or hide.
virtual DtTerrainFeaturesListExcreateFeaturesList ()
 Creates the features list list box.
virtual void initConnections (DtBaseWindow *parent)
virtual bool featureIsVisible (QTreeWidgetItem *item)
virtual void selectFeature (QTreeWidgetItem *item, bool merge)
 Selects the specified feature group, merging into current selection if merge is true.
virtual void keyPressEvent (QKeyEvent *e)

Protected Attributes

DtTerrainFeaturesListExmyFeaturesList
bool myDrawOrderingEnabled
 Set in constructor to true/false to enable/disable draw ordering.
DtBaseWindowmyParent

Constructor & Destructor Documentation

DtTerrainFeaturesWidget::DtTerrainFeaturesWidget ( QWidget parent = 0,
const Qt::WindowFlags &  flags = 0 
)
virtual DtTerrainFeaturesWidget::~DtTerrainFeaturesWidget ( )
virtual

Member Function Documentation

virtual bool DtTerrainFeaturesWidget::init ( DtBaseWindow parent)
virtual

Must be called after creation.

virtual void DtTerrainFeaturesWidget::connectParent ( DtBaseWindow window)
virtual
virtual DtTerrainFeaturesList* DtTerrainFeaturesWidget::featuresList ( ) const
virtual

Returns the list box of features.

static DtTerrainFeaturesWidget* DtTerrainFeaturesWidget::create ( QWidget parent,
const Qt::WindowFlags &  flags 
)
static

Returns a newly created instance of a DtTerrainPaperMapWidget.

virtual bool DtTerrainFeaturesWidget::setAllLayersTo ( bool  show)
protectedvirtual

Sets all the feature layers to either show or hide.

Returns true if any layer changed

virtual DtTerrainFeaturesListEx* DtTerrainFeaturesWidget::createFeaturesList ( )
protectedvirtual

Creates the features list list box.

virtual void DtTerrainFeaturesWidget::initConnections ( DtBaseWindow parent)
protectedvirtual
virtual bool DtTerrainFeaturesWidget::featureIsVisible ( QTreeWidgetItem item)
protectedvirtual
virtual void DtTerrainFeaturesWidget::selectFeature ( QTreeWidgetItem item,
bool  merge 
)
protectedvirtual

Selects the specified feature group, merging into current selection if merge is true.

virtual void DtTerrainFeaturesWidget::keyPressEvent ( QKeyEvent *  e)
protectedvirtual
void DtTerrainFeaturesWidget::featuresChanged ( DtList *  )
signal

Sent when a feature has changed.

If the draw order of the features has also changed will include the new draw order list of specifications (A DtList which contains a list of DtLists that have the specifications in the order they should be drawn) as the parameter, else NULL

virtual void DtTerrainFeaturesWidget::setTerrainDatabase ( const DtTerrainDatabase d)
virtualslot

Called when the terrain database is set.

virtual void DtTerrainFeaturesWidget::applyAndClose ( )
virtualslot

Apply changes and close the window.

virtual void DtTerrainFeaturesWidget::applyChanges ( )
virtualslot

Apply changes without closing.

virtual void DtTerrainFeaturesWidget::featureChanged ( QTreeWidgetItem item)
virtualslot

Called when a user selects an item in the list box, will see if the visible flag has changed.

virtual void DtTerrainFeaturesWidget::showAll ( )
virtualslot
virtual void DtTerrainFeaturesWidget::hideAll ( )
virtualslot
virtual void DtTerrainFeaturesWidget::restore ( )
virtualslot

Restores the list box to the original settings.

virtual void DtTerrainFeaturesWidget::featureColorChanged ( QTreeWidgetItem )
virtualslot

Called when the mouse button is pressed on an item, if it is the left mouse button and on the color column, bring up the color dialog to change.

virtual void DtTerrainFeaturesWidget::raiseLayer ( )
virtualslot

Called to raise the selected layer in the drawing order.

virtual void DtTerrainFeaturesWidget::lowerLayer ( )
virtualslot

Called to lower the selected layer in the drawing order.

virtual void DtTerrainFeaturesWidget::updateRaiseButtons ( )
virtualslot

Updates the status of the raise/lower buttons.

virtual void DtTerrainFeaturesWidget::selectionChanged ( QTreeWidgetItem item,
int  col 
)
virtualslot

Will enable/disable select all button.

virtual void DtTerrainFeaturesWidget::selectAll ( )
virtualslot

This will select all of the features on the currently active map by asking the terrain selector of that map to select all features that are of particular specification.

virtual void DtTerrainFeaturesWidget::selectionModeChanged ( DtBaseWindow )
virtualslot

Received when parent window changes its selection mode.

Member Data Documentation

Ui::DtTerrainPaperMapWidgetUi DtTerrainFeaturesWidget::myUiImpl
DtTerrainFeaturesListEx* DtTerrainFeaturesWidget::myFeaturesList
protected
bool DtTerrainFeaturesWidget::myDrawOrderingEnabled
protected

Set in constructor to true/false to enable/disable draw ordering.

DtBaseWindow* DtTerrainFeaturesWidget::myParent
protected

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

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)