Slicer  5.0
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
[legend]
Collaboration diagram for qMRMLTransformSliders:
Collaboration graph
[legend]

Public Types

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

Properties

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...
 

Signals

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=Qt::WindowFlags())
 
 ~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 QPixmap pixmapFromIcon (const QIcon &icon)
 
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

Constructors.

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

Enumerator
GLOBAL 
LOCAL 

Definition at line 66 of file qMRMLTransformSliders.h.

◆ TransformType

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

Enumerator
ROTATION 
TRANSLATION 

Definition at line 73 of file qMRMLTransformSliders.h.

Property Documentation

◆ CoordinateReference

CoordinateReferenceType qMRMLTransformSliders::CoordinateReference
readwrite

Definition at line 43 of file qMRMLTransformSliders.h.

◆ decimals

int qMRMLTransformSliders::decimals
readwrite

Definition at line 52 of file qMRMLTransformSliders.h.

◆ ISLabel

QString qMRMLTransformSliders::ISLabel
readwrite

Definition at line 49 of file qMRMLTransformSliders.h.

◆ LRLabel

QString qMRMLTransformSliders::LRLabel
readwrite

Definition at line 47 of file qMRMLTransformSliders.h.

◆ maximum

double qMRMLTransformSliders::maximum
readwrite

Definition at line 54 of file qMRMLTransformSliders.h.

◆ minimum

double qMRMLTransformSliders::minimum
readwrite

Definition at line 53 of file qMRMLTransformSliders.h.

◆ minMaxVisible

bool qMRMLTransformSliders::minMaxVisible
readwrite

Definition at line 55 of file qMRMLTransformSliders.h.

◆ PALabel

QString qMRMLTransformSliders::PALabel
readwrite

Definition at line 48 of file qMRMLTransformSliders.h.

◆ SingleStep

double qMRMLTransformSliders::SingleStep
readwrite

Definition at line 50 of file qMRMLTransformSliders.h.

◆ Title

QString qMRMLTransformSliders::Title
readwrite

Definition at line 42 of file qMRMLTransformSliders.h.

◆ TypeOfTransform

TransformType qMRMLTransformSliders::TypeOfTransform
readwrite

Definition at line 45 of file qMRMLTransformSliders.h.

Constructor & Destructor Documentation

◆ qMRMLTransformSliders()

qMRMLTransformSliders::qMRMLTransformSliders ( QWidget *  parent)
explicit

◆ ~qMRMLTransformSliders()

qMRMLTransformSliders::~qMRMLTransformSliders ( )
override

Member Function Documentation

◆ coordinateReference()

CoordinateReferenceType qMRMLTransformSliders::coordinateReference ( ) const

◆ decimals()

int qMRMLTransformSliders::decimals ( ) const

Return the decimals property value.

See also
decimals

◆ decimalsChanged

void qMRMLTransformSliders::decimalsChanged ( int  newDecimals)
signal

Signal sent when the number of decimals has changed.

See also
decimals

◆ extractMinMaxTranslationValue()

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

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)
protectedslot

◆ onMinimumChanged

void qMRMLTransformSliders::onMinimumChanged ( double  min)
protectedslot

◆ onMRMLTransformNodeModified

void qMRMLTransformSliders::onMRMLTransformNodeModified ( vtkObject *  caller)
protectedslot


Triggered upon MRML node transform modified events

◆ onSliderPositionChanged

void qMRMLTransformSliders::onSliderPositionChanged ( double  position)
protectedslot

◆ paLabel()

QString qMRMLTransformSliders::paLabel ( ) const

◆ rangeChanged

void qMRMLTransformSliders::rangeChanged ( double  newMinimum,
double  newMaximum 
)
signal

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

◆ reset

void qMRMLTransformSliders::reset ( )
slot

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

◆ resetUnactiveSliders

void qMRMLTransformSliders::resetUnactiveSliders ( )
slot

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)
slot

Set the decimals property value.

See also
decimals

◆ 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)
slot


Set the MRML node of interest

◆ setMRMLTransformNode [2/2]

void qMRMLTransformSliders::setMRMLTransformNode ( vtkMRMLNode node)
slot

◆ 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)
protected

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


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

Member Data Documentation

◆ d_ptr

QScopedPointer<qMRMLTransformSlidersPrivate> qMRMLTransformSliders::d_ptr
protected

Definition at line 168 of file qMRMLTransformSliders.h.


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