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

Public Slots

virtual void showAll (void)
 Show all papermap levels.
virtual void applyChanges ()
virtual void hideAll (void)
 Hide all papermap levels.

Signals

void paperMapLayerChanged (DtPaperMap *p)
 Signalled when a papermap layer changes its show/hide state.

Public Member Functions

 DtTerrainPaperMapWidget (QWidget *parent=0, const Qt::WindowFlags &flags=0)
virtual ~DtTerrainPaperMapWidget ()
virtual bool init (const DtPaperMapDatabase *db)
 Must be called after creation.
virtual bool initColumns (void)
 Initializes the columns used in the list box. By default only one.
virtual bool hasValidPaperMap (void)
 Returns true if there is a papermap loaded into our context.
virtual void updatePaperMapLayers (void)
 Cycles through the layers of the papermap and adds them to the list box via the addPapermapLayer call.
virtual void addPaperMapLayer (DtPaperMap *p)
 Adds a new layer to the list box of type QCheckListItem.
virtual bool setAllLayersTo (bool show)
 Sets all the layers to the specified value (show or hide).
virtual void updateTransparencyBar (int)
virtual bool setTransparencyLevel (const QString &layer, int level)
 Sets the transparency level of the specified paper map layer.
virtual bool showPaperMap (const QString &layer, bool show)
 Show/hide individual layer. Returns false if layer does not exist.

Static Public Member Functions

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

Public Attributes

Ui::DtTerrainPaperMapWidgetUi myUiImpl

Protected Slots

virtual void paperMapLoaded (const DtPaperMapDatabase *p)
 When a new paper map database is loaded, set it to be our local pointer and reconfigure our layout.
virtual void layerChange (QTreeWidgetItem *p, int)
 Called whenever the display state for the listview item changes.
virtual void raiseLayer ()
 Raises the selected layer by one level.
virtual void lowerLayer ()
 Lowers the selected layer by one level.
virtual void updateRaiseLowerButtons (QTreeWidgetItem *selectedItem)
 Updates the enabled/disabled states of the raise and lower buttons based on the currently selected item in the list view.
virtual void selectionChanged ()
 Updates the transparency value slider and the raise/lower buttons.
virtual void applyAndClose ()
virtual void transparencyValueChanged (const QString &)
 User has changed text of transparency value, so, also update currently selected item.
virtual void transparencyValueChanged (int)
virtual void applyChangesImmediatelyChanged ()

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *e)
virtual void enableApply ()
virtual bool eventFilter (QObject *o, QEvent *e)
virtual void setPaperMapImage (QTreeWidgetItem *)

Protected Attributes

DtPaperMapDatabasemyPaperMapDatabase
QIntValidator myTransparencyValidator

Constructor & Destructor Documentation

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

Member Function Documentation

virtual bool DtTerrainPaperMapWidget::init ( const DtPaperMapDatabase db)
virtual

Must be called after creation.

virtual bool DtTerrainPaperMapWidget::initColumns ( void  )
virtual

Initializes the columns used in the list box. By default only one.

virtual bool DtTerrainPaperMapWidget::hasValidPaperMap ( void  )
virtual

Returns true if there is a papermap loaded into our context.

virtual void DtTerrainPaperMapWidget::updatePaperMapLayers ( void  )
virtual

Cycles through the layers of the papermap and adds them to the list box via the addPapermapLayer call.

virtual void DtTerrainPaperMapWidget::addPaperMapLayer ( DtPaperMap p)
virtual

Adds a new layer to the list box of type QCheckListItem.

virtual bool DtTerrainPaperMapWidget::setAllLayersTo ( bool  show)
virtual

Sets all the layers to the specified value (show or hide).

If any layers change as a resule, returns true, else returns false. Another side effect is that the listview will change its checkbox state

virtual void DtTerrainPaperMapWidget::updateTransparencyBar ( int  )
virtual
virtual bool DtTerrainPaperMapWidget::setTransparencyLevel ( const QString &  layer,
int  level 
)
virtual

Sets the transparency level of the specified paper map layer.

Returns false if layer does not exist. Transparency level is from 0 (opaque) to 100 (completely transparent)

virtual bool DtTerrainPaperMapWidget::showPaperMap ( const QString &  layer,
bool  show 
)
virtual

Show/hide individual layer. Returns false if layer does not exist.

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

Returns a newly created instance of a DtTerrainPaperMapWidget.

virtual void DtTerrainPaperMapWidget::keyPressEvent ( QKeyEvent *  e)
protectedvirtual
virtual void DtTerrainPaperMapWidget::enableApply ( )
protectedvirtual
virtual bool DtTerrainPaperMapWidget::eventFilter ( QObject o,
QEvent *  e 
)
protectedvirtual
virtual void DtTerrainPaperMapWidget::setPaperMapImage ( QTreeWidgetItem )
protectedvirtual
void DtTerrainPaperMapWidget::paperMapLayerChanged ( DtPaperMap p)
signal

Signalled when a papermap layer changes its show/hide state.

If a NULL papermap is sent through that means all the layers have changed

virtual void DtTerrainPaperMapWidget::showAll ( void  )
virtualslot

Show all papermap levels.

virtual void DtTerrainPaperMapWidget::applyChanges ( )
virtualslot
virtual void DtTerrainPaperMapWidget::hideAll ( void  )
virtualslot

Hide all papermap levels.

virtual void DtTerrainPaperMapWidget::paperMapLoaded ( const DtPaperMapDatabase p)
protectedvirtualslot

When a new paper map database is loaded, set it to be our local pointer and reconfigure our layout.

virtual void DtTerrainPaperMapWidget::layerChange ( QTreeWidgetItem p,
int   
)
protectedvirtualslot

Called whenever the display state for the listview item changes.

virtual void DtTerrainPaperMapWidget::raiseLayer ( )
protectedvirtualslot

Raises the selected layer by one level.

virtual void DtTerrainPaperMapWidget::lowerLayer ( )
protectedvirtualslot

Lowers the selected layer by one level.

virtual void DtTerrainPaperMapWidget::updateRaiseLowerButtons ( QTreeWidgetItem selectedItem)
protectedvirtualslot

Updates the enabled/disabled states of the raise and lower buttons based on the currently selected item in the list view.

virtual void DtTerrainPaperMapWidget::selectionChanged ( )
protectedvirtualslot

Updates the transparency value slider and the raise/lower buttons.

virtual void DtTerrainPaperMapWidget::applyAndClose ( )
protectedvirtualslot
virtual void DtTerrainPaperMapWidget::transparencyValueChanged ( const QString &  )
protectedvirtualslot

User has changed text of transparency value, so, also update currently selected item.

virtual void DtTerrainPaperMapWidget::transparencyValueChanged ( int  )
protectedvirtualslot
virtual void DtTerrainPaperMapWidget::applyChangesImmediatelyChanged ( )
protectedvirtualslot

Member Data Documentation

Ui::DtTerrainPaperMapWidgetUi DtTerrainPaperMapWidget::myUiImpl
DtPaperMapDatabase* DtTerrainPaperMapWidget::myPaperMapDatabase
protected
QIntValidator DtTerrainPaperMapWidget::myTransparencyValidator
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)