VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtContourizationWidget Class Reference

A widget for controlling contour settings and controlled by a DtContourizationLogic. More...

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

List of all members.

Public Member Functions

 DtContourizationWidget (QWidget *parent, Qt::WindowFlags f=Qt::Widget)
 CTOR.
virtual ~DtContourizationWidget ()
 Virtual DTOR.
Field value setters.

Sets the values of the widget's corresponding fields.

virtual void setCurrentInterval (double interval)
 Set the interface's current interval value Called by the logic.
virtual void setIntervalUnits (const DtUnicode &units)
 Set the interface's contour interval units.
virtual void setIntervalDecimals (int decimals)
 Set the interface's contour interval decimals.
virtual void setCurrentThickness (double thickness)
 Set the interface's current thickness value Called by the logic.
virtual void setIntermediateLines (bool enabled)
 Set the interface's current "intermediate lines enabled" state Called by the logic.
virtual void setContoursEnabled (bool enabled)
 Set the interface's current "contours enabled" state Called by the logic.
Field value getters.

Gets the values of the widget's corresponding fields.

virtual double currentInterval ()
 Returns the interface's current interval value.
virtual double currentThickness ()
 Returns the interface's current thickness value.
virtual bool intermediateLines ()
 Returns the interface's current "intermediate lines enabled" state.
virtual bool contoursEnabled ()
 Returns the interface's current "contours enabled" state.

Protected Slots

User input slots.

Receives notification that the user has changed a widget's value.

virtual void onIntervalChanged (double value)
 Called when interval spinbox changes.
virtual void onThicknessChanged (double value)
 Called when thickness spinbox changes.
virtual void onContoursEnabledChanged (int enabled)
 Called when contour checkbox changes.
virtual void onIntermediateLinesChanged (int enabled)
 Called when interval checkbox changes.

Protected Member Functions

void setupGui ()
 Sets up the widget's fields.

Protected Attributes

QVBoxLayout * myGroupLayout
QGroupBox * myGroupBox
QVBoxLayout * myMainLayout
QCheckBoxmyEnableContourLinesCheckBox
QFrameline
QLabelmyIntervalLabel
QDoubleSpinBox * myIntervalSpinBox
QLabelmyThicknessLabel
QDoubleSpinBox * myThicknessSpinBox
QSpacerItem * spacerItem
QCheckBoxmyIntermediateLinesCheckBox
QSpacerItem * spacerItem1

Detailed Description

A widget for controlling contour settings and controlled by a DtContourizationLogic.


Constructor & Destructor Documentation

makVrv::DtContourizationWidget::DtContourizationWidget ( QWidget parent,
Qt::WindowFlags  f = Qt::Widget 
)

CTOR.

Virtual DTOR.


Member Function Documentation

virtual void makVrv::DtContourizationWidget::setCurrentInterval ( double  interval) [virtual]

Set the interface's current interval value Called by the logic.

Implements makVrv::DtContourizationInterface.

virtual void makVrv::DtContourizationWidget::setIntervalUnits ( const DtUnicode units) [virtual]

Set the interface's contour interval units.

Called by the logic

Implements makVrv::DtContourizationInterface.

virtual void makVrv::DtContourizationWidget::setIntervalDecimals ( int  decimals) [virtual]

Set the interface's contour interval decimals.

Called by the logic

Implements makVrv::DtContourizationInterface.

virtual void makVrv::DtContourizationWidget::setCurrentThickness ( double  thickness) [virtual]

Set the interface's current thickness value Called by the logic.

Implements makVrv::DtContourizationInterface.

virtual void makVrv::DtContourizationWidget::setIntermediateLines ( bool  enabled) [virtual]

Set the interface's current "intermediate lines enabled" state Called by the logic.

Implements makVrv::DtContourizationInterface.

virtual void makVrv::DtContourizationWidget::setContoursEnabled ( bool  enabled) [virtual]

Set the interface's current "contours enabled" state Called by the logic.

Implements makVrv::DtContourizationInterface.

Returns the interface's current interval value.

Implements makVrv::DtContourizationInterface.

Returns the interface's current thickness value.

Implements makVrv::DtContourizationInterface.

Returns the interface's current "intermediate lines enabled" state.

Implements makVrv::DtContourizationInterface.

Returns the interface's current "contours enabled" state.

Implements makVrv::DtContourizationInterface.

virtual void makVrv::DtContourizationWidget::onIntervalChanged ( double  value) [protected, virtual, slot]

Called when interval spinbox changes.

virtual void makVrv::DtContourizationWidget::onThicknessChanged ( double  value) [protected, virtual, slot]

Called when thickness spinbox changes.

virtual void makVrv::DtContourizationWidget::onContoursEnabledChanged ( int  enabled) [protected, virtual, slot]

Called when contour checkbox changes.

virtual void makVrv::DtContourizationWidget::onIntermediateLinesChanged ( int  enabled) [protected, virtual, slot]

Called when interval checkbox changes.

Sets up the widget's fields.

Non-virtual (Called from CTOR).


Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)