Slicer  4.11
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Properties | Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Static Protected Member Functions | Protected Attributes
qMRMLTransformSliders Class Reference

#include <Libs/MRML/Widgets/qMRMLTransformSliders.h>

Inheritance diagram for qMRMLTransformSliders:
Inheritance graph
Collaboration diagram for qMRMLTransformSliders:
Collaboration graph

Public Types

enum  CoordinateReferenceType { GLOBAL, LOCAL }
typedef qMRMLWidget Superclass
 Constructors. More...
enum  TransformType { ROTATION, TRANSLATION }
- Public Types inherited from qMRMLWidget
typedef QWidget Superclass


CoordinateReferenceType CoordinateReference
int decimals
QString ISLabel
QString LRLabel
double maximum
double minimum
bool minMaxVisible
QString PALabel
double SingleStep
QString Title
TransformType TypeOfTransform

Public Slots

void reset ()
void resetUnactiveSliders ()
void setDecimals (int newDecimals)
void setMRMLTransformNode (vtkMRMLTransformNode *transformNode)
Set the MRML node of interest More...
void setMRMLTransformNode (vtkMRMLNode *node)
- Public Slots inherited from qMRMLWidget
virtual void setMRMLScene (vtkMRMLScene *newScene)
 Set the MRML scene associated with the widget. More...


void decimalsChanged (int newDecimals)
void rangeChanged (double newMinimum, double newMaximum)
 Signal sent if the minimum or maximum slider's value is updated. More...
void valuesChanged ()
Signal sent if at least one of the slider's value is updated More...
- Signals inherited from qMRMLWidget
void mrmlSceneChanged (vtkMRMLScene *)

Public Member Functions

CoordinateReferenceType coordinateReference () const
int decimals () const
QString isLabel () const
bool isMinMaxVisible () const
QString lrLabel () const
Get/Set slider's label More...
double maximum () const
double minimum () const
Get sliders range More...
vtkMRMLTransformNodemrmlTransformNode () const
Return the current MRML node of interest More...
QString paLabel () const
 qMRMLTransformSliders (QWidget *parent)
void setCoordinateReference (CoordinateReferenceType coordinateReference)
void setISLabel (const QString &label)
void setLRLabel (const QString &label)
void setMaximum (double max)
void setMinimum (double min)
Set sliders range More...
void setMinMaxVisible (bool visible)
void setPALabel (const QString &label)
void setRange (double min, double max)
Utility function that set min/max in once More...
void setSingleStep (double step)
void setTitle (const QString &title)
Set/Get Title of the group box More...
void setTypeOfTransform (TransformType typeOfTransform)
double singleStep () const
Set sliders single step More...
QString title () const
TransformType typeOfTransform () const
 ~qMRMLTransformSliders () override
- Public Member Functions inherited from qMRMLWidget
Q_INVOKABLE vtkMRMLScenemrmlScene () const
 Return a pointer on the current MRML scene. More...
 qMRMLWidget (QWidget *parent=nullptr, Qt::WindowFlags f=nullptr)
 ~qMRMLWidget () override

Protected Slots

void onMaximumChanged (double max)
void onMinimumChanged (double min)
void onMRMLTransformNodeModified (vtkObject *caller)
Triggered upon MRML node transform modified events More...
void onSliderPositionChanged (double position)

Protected Member Functions

void updateRangeFromTransform (vtkMRMLTransformNode *transformNode)

Static Protected Member Functions

static QPair< double, double > extractMinMaxTranslationValue (vtkMatrix4x4 *mat, double pad=0)

Protected Attributes

QScopedPointer< qMRMLTransformSlidersPrivate > d_ptr
- Protected Attributes inherited from qMRMLWidget
QScopedPointer< qMRMLWidgetPrivate > d_ptr

Additional Inherited Members

- Static Public Member Functions inherited from qMRMLWidget
static Q_INVOKABLE void postInitializeApplication ()
 Initialization that needs to be performed after application object is created. More...
static Q_INVOKABLE void preInitializeApplication ()

Detailed Description

Definition at line 38 of file qMRMLTransformSliders.h.

Member Typedef Documentation

◆ Superclass


Definition at line 59 of file qMRMLTransformSliders.h.

Member Enumeration Documentation

◆ CoordinateReferenceType

Set/Get Coordinate system By default, the selector coordinate system will be set to GLOBAL


Definition at line 66 of file qMRMLTransformSliders.h.

◆ TransformType

Set/Get TypeOfTransform By default, the selector coordinate system will be set to TRANSLATION


Definition at line 73 of file qMRMLTransformSliders.h.

Property Documentation

◆ CoordinateReference

CoordinateReferenceType qMRMLTransformSliders::CoordinateReference

Definition at line 43 of file qMRMLTransformSliders.h.

◆ decimals

int qMRMLTransformSliders::decimals

Definition at line 52 of file qMRMLTransformSliders.h.

◆ ISLabel

QString qMRMLTransformSliders::ISLabel

Definition at line 49 of file qMRMLTransformSliders.h.

◆ LRLabel

QString qMRMLTransformSliders::LRLabel

Definition at line 47 of file qMRMLTransformSliders.h.

◆ maximum

double qMRMLTransformSliders::maximum

Definition at line 54 of file qMRMLTransformSliders.h.

◆ minimum

double qMRMLTransformSliders::minimum

Definition at line 53 of file qMRMLTransformSliders.h.

◆ minMaxVisible

bool qMRMLTransformSliders::minMaxVisible

Definition at line 55 of file qMRMLTransformSliders.h.

◆ PALabel

QString qMRMLTransformSliders::PALabel

Definition at line 48 of file qMRMLTransformSliders.h.

◆ SingleStep

double qMRMLTransformSliders::SingleStep

Definition at line 50 of file qMRMLTransformSliders.h.

◆ Title

QString qMRMLTransformSliders::Title

Definition at line 42 of file qMRMLTransformSliders.h.

◆ TypeOfTransform

TransformType qMRMLTransformSliders::TypeOfTransform

Definition at line 45 of file qMRMLTransformSliders.h.

Constructor & Destructor Documentation

◆ qMRMLTransformSliders()

qMRMLTransformSliders::qMRMLTransformSliders ( QWidget *  parent)

◆ ~qMRMLTransformSliders()

qMRMLTransformSliders::~qMRMLTransformSliders ( )

Member Function Documentation

◆ coordinateReference()

CoordinateReferenceType qMRMLTransformSliders::coordinateReference ( ) const

◆ decimals()

int qMRMLTransformSliders::decimals ( ) const

Return the decimals property value.

See also

◆ decimalsChanged

void qMRMLTransformSliders::decimalsChanged ( int  newDecimals)

Signal sent when the number of decimals has changed.

See also

◆ extractMinMaxTranslationValue()

static QPair<double, double> qMRMLTransformSliders::extractMinMaxTranslationValue ( vtkMatrix4x4 *  mat,
double  pad = 0 

Extract min/max translation values from the transform matrix. Parameter 'pad' allows to specify (using a value between 0 and 1) which percentage of the found range(max-min) value should be subtracted/added to the min/max value found.

◆ isLabel()

QString qMRMLTransformSliders::isLabel ( ) const

◆ isMinMaxVisible()

bool qMRMLTransformSliders::isMinMaxVisible ( ) const

◆ lrLabel()

QString qMRMLTransformSliders::lrLabel ( ) const

Get/Set slider's label

◆ maximum()

double qMRMLTransformSliders::maximum ( ) const

◆ minimum()

double qMRMLTransformSliders::minimum ( ) const

Get sliders range

◆ mrmlTransformNode()

vtkMRMLTransformNode* qMRMLTransformSliders::mrmlTransformNode ( ) const

Return the current MRML node of interest

◆ onMaximumChanged

void qMRMLTransformSliders::onMaximumChanged ( double  max)

◆ onMinimumChanged

void qMRMLTransformSliders::onMinimumChanged ( double  min)

◆ onMRMLTransformNodeModified

void qMRMLTransformSliders::onMRMLTransformNodeModified ( vtkObject *  caller)

Triggered upon MRML node transform modified events

◆ onSliderPositionChanged

void qMRMLTransformSliders::onSliderPositionChanged ( double  position)

◆ paLabel()

QString qMRMLTransformSliders::paLabel ( ) const

◆ rangeChanged

void qMRMLTransformSliders::rangeChanged ( double  newMinimum,
double  newMaximum 

Signal sent if the minimum or maximum slider's value is updated.

◆ reset

void qMRMLTransformSliders::reset ( )

Reset all sliders to their 0 position and value. Note that it can change the transform node values.

◆ resetUnactiveSliders

void qMRMLTransformSliders::resetUnactiveSliders ( )

Reset all sliders but the one that is currently active (i.e. the user is changing its value. The reset doesn't fire any event and the node is not modified. If no slider is active, then all sliders are reset.

◆ setCoordinateReference()

void qMRMLTransformSliders::setCoordinateReference ( CoordinateReferenceType  coordinateReference)

◆ setDecimals

void qMRMLTransformSliders::setDecimals ( int  newDecimals)

Set the decimals property value.

See also

◆ setISLabel()

void qMRMLTransformSliders::setISLabel ( const QString &  label)

◆ setLRLabel()

void qMRMLTransformSliders::setLRLabel ( const QString &  label)

◆ setMaximum()

void qMRMLTransformSliders::setMaximum ( double  max)

◆ setMinimum()

void qMRMLTransformSliders::setMinimum ( double  min)

Set sliders range

◆ setMinMaxVisible()

void qMRMLTransformSliders::setMinMaxVisible ( bool  visible)

Set the visibility property of the minimum QSpinBox and maximum QSpinBox. Note: If the QSpinBoxes are hidden, you can still can setMinimum() and setMaximum() manually

◆ setMRMLTransformNode [1/2]

void qMRMLTransformSliders::setMRMLTransformNode ( vtkMRMLTransformNode transformNode)

Set the MRML node of interest

◆ setMRMLTransformNode [2/2]

void qMRMLTransformSliders::setMRMLTransformNode ( vtkMRMLNode node)

◆ setPALabel()

void qMRMLTransformSliders::setPALabel ( const QString &  label)

◆ setRange()

void qMRMLTransformSliders::setRange ( double  min,
double  max 

Utility function that set min/max in once

◆ setSingleStep()

void qMRMLTransformSliders::setSingleStep ( double  step)

◆ setTitle()

void qMRMLTransformSliders::setTitle ( const QString &  title)

Set/Get Title of the group box

◆ setTypeOfTransform()

void qMRMLTransformSliders::setTypeOfTransform ( TransformType  typeOfTransform)

◆ singleStep()

double qMRMLTransformSliders::singleStep ( ) const

Set sliders single step

◆ title()

QString qMRMLTransformSliders::title ( ) const

◆ typeOfTransform()

TransformType qMRMLTransformSliders::typeOfTransform ( ) const

◆ updateRangeFromTransform()

void qMRMLTransformSliders::updateRangeFromTransform ( vtkMRMLTransformNode transformNode)

Extract the min/max values from the matrix and change the slider min/max values accordingly. Needed if the matrix changed externally (python, cli, etc.)

◆ valuesChanged

void qMRMLTransformSliders::valuesChanged ( )

Signal sent if at least one of the slider's value is updated

Member Data Documentation

◆ d_ptr

QScopedPointer<qMRMLTransformSlidersPrivate> qMRMLTransformSliders::d_ptr

Definition at line 168 of file qMRMLTransformSliders.h.

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