VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | 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]

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
QFrame * line
QLabelmyIntervalLabel
QDoubleSpinBox * myIntervalSpinBox
QLabelmyThicknessLabel
QDoubleSpinBox * myThicknessSpinBox
QSpacerItem * spacerItem
QCheckBoxmyIntermediateLinesCheckBox
QSpacerItem * spacerItem1

Additional Inherited Members

- Public Attributes inherited from makVrv::DtContourizationInterface
boost::signal< void(bool)> signal_intermediateLinesChanged
 Signal emitted when the user checks/unchecks "intermediate lines".
boost::signal< void(bool)> signal_contoursEnabledChanged
 Signal emitted when the user checks/unchecks "enable contour lines".
boost::signal< void(double)> signal_intervalChanged
 Signal emitted when the user changes the line interval.
boost::signal< void(double)> signal_thicknessChanged
 Signal emitted when the user changes the line thickness.

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 makVrv::DtContourizationWidget::~DtContourizationWidget ( )
virtual

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.

virtual double makVrv::DtContourizationWidget::currentInterval ( )
virtual

Returns the interface's current interval value.

Implements makVrv::DtContourizationInterface.

virtual double makVrv::DtContourizationWidget::currentThickness ( )
virtual

Returns the interface's current thickness value.

Implements makVrv::DtContourizationInterface.

virtual bool makVrv::DtContourizationWidget::intermediateLines ( )
virtual

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

Implements makVrv::DtContourizationInterface.

virtual bool makVrv::DtContourizationWidget::contoursEnabled ( )
virtual

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

Implements makVrv::DtContourizationInterface.

virtual void makVrv::DtContourizationWidget::onIntervalChanged ( double  value)
protectedvirtualslot

Called when interval spinbox changes.

virtual void makVrv::DtContourizationWidget::onThicknessChanged ( double  value)
protectedvirtualslot

Called when thickness spinbox changes.

virtual void makVrv::DtContourizationWidget::onContoursEnabledChanged ( int  enabled)
protectedvirtualslot

Called when contour checkbox changes.

virtual void makVrv::DtContourizationWidget::onIntermediateLinesChanged ( int  enabled)
protectedvirtualslot

Called when interval checkbox changes.

void makVrv::DtContourizationWidget::setupGui ( )
protected

Sets up the widget's fields.

Non-virtual (Called from CTOR).

Member Data Documentation

QVBoxLayout* makVrv::DtContourizationWidget::myGroupLayout
protected
QGroupBox* makVrv::DtContourizationWidget::myGroupBox
protected
QVBoxLayout* makVrv::DtContourizationWidget::myMainLayout
protected
QCheckBox* makVrv::DtContourizationWidget::myEnableContourLinesCheckBox
protected
QFrame* makVrv::DtContourizationWidget::line
protected
QLabel* makVrv::DtContourizationWidget::myIntervalLabel
protected
QDoubleSpinBox* makVrv::DtContourizationWidget::myIntervalSpinBox
protected
QLabel* makVrv::DtContourizationWidget::myThicknessLabel
protected
QDoubleSpinBox* makVrv::DtContourizationWidget::myThicknessSpinBox
protected
QSpacerItem* makVrv::DtContourizationWidget::spacerItem
protected
QCheckBox* makVrv::DtContourizationWidget::myIntermediateLinesCheckBox
protected
QSpacerItem* makVrv::DtContourizationWidget::spacerItem1
protected

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

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)