Slicer  5.3
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 | Public Member Functions | Protected Slots | Protected Attributes
qMRMLLinearTransformSlider Class Reference

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

Inheritance diagram for qMRMLLinearTransformSlider:
Inheritance graph
[legend]
Collaboration diagram for qMRMLLinearTransformSlider:
Collaboration graph
[legend]

Public Types

enum  CoordinateReferenceType { GLOBAL, LOCAL }
 
typedef qMRMLSliderWidget Superclass
 Constructors. More...
 
enum  TransformType {
  TRANSLATION_LR, TRANSLATION_PA, TRANSLATION_IS, ROTATION_LR,
  ROTATION_PA, ROTATION_IS
}
 
- Public Types inherited from qMRMLSliderWidget
typedef ctkSliderWidget Superclass
 
enum  UnitAwareProperty {
  None = 0x00, Prefix = 0x01, Suffix = 0x02, Precision = 0x04,
  MinimumValue = 0x08, MaximumValue = 0x10, Scaling = 0x20, All = Prefix | Suffix | Precision | MinimumValue | MaximumValue | Scaling
}
 

Properties

CoordinateReferenceType CoordinateReference
 
TransformType TypeOfTransform
 
- Properties inherited from qMRMLSliderWidget
QString quantity
 
UnitAwareProperties unitAwareProperties
 

Public Slots

void applyTransformation (double sliderPosition)
 
Apply the appropriate rotation/translation according to the typeOfTransform of the slider. More...
 
void setMRMLTransformNode (vtkMRMLTransformNode *transformNode)
 
- Public Slots inherited from qMRMLSliderWidget
virtual void setMRMLScene (vtkMRMLScene *scene)
 
void setQuantity (const QString &baseName)
 
void setUnitAwareProperties (UnitAwareProperties flags)
 

Public Member Functions

CoordinateReferenceType coordinateReference () const
 
bool isRotation () const
 
Convenience method allowing to get which family of transform is set More...
 
bool isTranslation () const
 
vtkMRMLTransformNodemrmlTransformNode () const
 
Return the current transform node More...
 
 qMRMLLinearTransformSlider (QWidget *parent)
 
void setCoordinateReference (CoordinateReferenceType coordinateReference)
 
void setTypeOfTransform (TransformType typeOfTransform)
 
TransformType typeOfTransform () const
 
 ~qMRMLLinearTransformSlider () override
 
- Public Member Functions inherited from qMRMLSliderWidget
Q_INVOKABLE vtkMRMLScenemrmlScene () const
 
 qMRMLSliderWidget (QWidget *parent=nullptr)
 Construct an empty qMRMLSliderWidget with a null scene. More...
 
QString quantity () const
 
void setMaximum (double) override
 
void setMinimum (double) override
 
void setRange (double, double) override
 
UnitAwareProperties unitAwareProperties () const
 
 ~qMRMLSliderWidget () override
 

Protected Slots

void onMRMLTransformNodeModified (vtkObject *caller)
 
Triggered upon MRML scene updates More...
 
- Protected Slots inherited from qMRMLSliderWidget
void updateWidgetFromUnitNode ()
 

Protected Attributes

QScopedPointer< qMRMLLinearTransformSliderPrivate > d_ptr
 
- Protected Attributes inherited from qMRMLSliderWidget
QScopedPointer< qMRMLSliderWidgetPrivate > d_ptr
 

Detailed Description

Definition at line 34 of file qMRMLLinearTransformSlider.h.

Member Typedef Documentation

◆ Superclass

Constructors.

Definition at line 45 of file qMRMLLinearTransformSlider.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 69 of file qMRMLLinearTransformSlider.h.

◆ TransformType

Set/Get Transform type By default, the slider transform type will be set to TRANSLATION_LR X axis:LR, Y axis:PA, Z axis:IS

Enumerator
TRANSLATION_LR 
TRANSLATION_PA 
TRANSLATION_IS 
ROTATION_LR 
ROTATION_PA 
ROTATION_IS 

Definition at line 53 of file qMRMLLinearTransformSlider.h.

Property Documentation

◆ CoordinateReference

CoordinateReferenceType qMRMLLinearTransformSlider::CoordinateReference
readwrite

Definition at line 40 of file qMRMLLinearTransformSlider.h.

◆ TypeOfTransform

TransformType qMRMLLinearTransformSlider::TypeOfTransform
readwrite

Definition at line 38 of file qMRMLLinearTransformSlider.h.

Constructor & Destructor Documentation

◆ qMRMLLinearTransformSlider()

qMRMLLinearTransformSlider::qMRMLLinearTransformSlider ( QWidget *  parent)
explicit

◆ ~qMRMLLinearTransformSlider()

qMRMLLinearTransformSlider::~qMRMLLinearTransformSlider ( )
override

Member Function Documentation

◆ applyTransformation

void qMRMLLinearTransformSlider::applyTransformation ( double  sliderPosition)
slot


Apply the appropriate rotation/translation according to the typeOfTransform of the slider.

◆ coordinateReference()

CoordinateReferenceType qMRMLLinearTransformSlider::coordinateReference ( ) const

◆ isRotation()

bool qMRMLLinearTransformSlider::isRotation ( ) const


Convenience method allowing to get which family of transform is set

◆ isTranslation()

bool qMRMLLinearTransformSlider::isTranslation ( ) const

◆ mrmlTransformNode()

vtkMRMLTransformNode* qMRMLLinearTransformSlider::mrmlTransformNode ( ) const


Return the current transform node

◆ onMRMLTransformNodeModified

void qMRMLLinearTransformSlider::onMRMLTransformNodeModified ( vtkObject *  caller)
protectedslot


Triggered upon MRML scene updates

◆ setCoordinateReference()

void qMRMLLinearTransformSlider::setCoordinateReference ( CoordinateReferenceType  coordinateReference)

◆ setMRMLTransformNode

void qMRMLLinearTransformSlider::setMRMLTransformNode ( vtkMRMLTransformNode transformNode)
slot

Set the MRML node of interest Note that setting transformNode to 0 will disable the widget

◆ setTypeOfTransform()

void qMRMLLinearTransformSlider::setTypeOfTransform ( TransformType  typeOfTransform)

◆ typeOfTransform()

TransformType qMRMLLinearTransformSlider::typeOfTransform ( ) const

Member Data Documentation

◆ d_ptr

QScopedPointer<qMRMLLinearTransformSliderPrivate> qMRMLLinearTransformSlider::d_ptr
protected

Definition at line 93 of file qMRMLLinearTransformSlider.h.


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