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

#include <Modules/Loadable/Reformat/qSlicerReformatModuleWidget.h>

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

Public Types

enum  AxesReferenceType { axisX =0, axisY, axisZ }
 
enum  OriginReferenceType { ONPLANE, INVOLUME }
 
typedef qSlicerAbstractModuleWidget Superclass
 
- Public Types inherited from qSlicerAbstractModuleRepresentation
typedef qSlicerObject Superclass
 

Public Slots

void centerSliceNode ()
 Recenter the active node given its coordinates reference. More...
 
void setNormalToAxisX ()
 Set the normal to a x axis. More...
 
void setNormalToAxisY ()
 Set the normal to a y axis. More...
 
void setNormalToAxisZ ()
 Set the normal to a z axis. More...
 
void setNormalToCamera ()
 Set slice normal to the camera. More...
 
void setSliceNormal (double *normal)
 
void setSliceOffsetValue (double offset)
 
void setWorldPosition (double *newWorldPosition)
 
- Public Slots inherited from qSlicerWidget
void setMRMLScene (vtkMRMLScene *scene) override
 

Public Member Functions

 qSlicerReformatModuleWidget (QWidget *parent=nullptr)
 
bool setEditedNode (vtkMRMLNode *node, QString role=QString(), QString context=QString()) override
 Node editing. More...
 
void setSliceNormal (double x, double y, double z)
 Utility function that sets the normal of the slice plane. More...
 
 ~qSlicerReformatModuleWidget () override
 
- Public Member Functions inherited from qSlicerAbstractModuleWidget
virtual Q_INVOKABLE void enter ()
 
virtual Q_INVOKABLE void exit ()
 
bool isEntered () const
 
Q_INVOKABLE double nodeEditable (vtkMRMLNode *node) override
 
 qSlicerAbstractModuleWidget (QWidget *parent=nullptr)
 
 ~qSlicerAbstractModuleWidget () override
 
- Public Member Functions inherited from qSlicerWidget
vtkSlicerApplicationLogicappLogic () const
 
vtkMRMLAbstractLogicmoduleLogic (const QString &moduleName) const
 
 qSlicerWidget (QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
 
 ~qSlicerWidget () override
 
- Public Member Functions inherited from qSlicerObject
vtkMRMLScenemrmlScene () const
 Return a pointer on the MRML scene. More...
 
 qSlicerObject ()
 
virtual void setMRMLScene (vtkMRMLScene *)
 Set the current MRML scene to the widget. More...
 
virtual ~qSlicerObject ()
 
- Public Member Functions inherited from qSlicerAbstractModuleRepresentation
qSlicerAbstractCoreModulemodule () const
 
QString moduleName () const
 Set/Get module name. More...
 
 qSlicerAbstractModuleRepresentation ()
 
 ~qSlicerAbstractModuleRepresentation () override
 

Protected Slots

void onLockReformatWidgetToCamera (bool lock)
 
void onMRMLSliceNodeModified (vtkObject *caller)
 Triggered upon MRML transform node updates. More...
 
void onNodeSelected (vtkMRMLNode *node)
 
void onOriginCoordinateReferenceButtonPressed (int reference)
 
void onReformatWidgetVisibilityChanged (bool visible)
 
void onSliceNormalToAxisChanged (AxesReferenceType axis)
 
void onSliceOrientationChanged (const QString &orientation)
 
void onSliceVisibilityChanged (bool visible)
 
void onSliderRotationChanged (double rotationX)
 
void onTrackSliceOffsetValueChanged (double offset)
 Set slice offset. Used when events will come is rapid succession. More...
 

Protected Member Functions

void setup () override
 
- Protected Member Functions inherited from qSlicerAbstractModuleRepresentation
vtkMRMLAbstractLogiclogic () const
 

Protected Attributes

QScopedPointer< qSlicerReformatModuleWidgetPrivate > d_ptr
 
- Protected Attributes inherited from qSlicerAbstractModuleWidget
QScopedPointer< qSlicerAbstractModuleWidgetPrivate > d_ptr
 
- Protected Attributes inherited from qSlicerWidget
QScopedPointer< qSlicerWidgetPrivate > d_ptr
 
- Protected Attributes inherited from qSlicerObject
QScopedPointer< qSlicerObjectPrivate > d_ptr
 
- Protected Attributes inherited from qSlicerAbstractModuleRepresentation
QScopedPointer< qSlicerAbstractModuleRepresentationPrivate > d_ptr
 

Additional Inherited Members

- Properties inherited from qSlicerAbstractModuleWidget
bool isEntered
 
- Signals inherited from qSlicerWidget
void mrmlSceneChanged (vtkMRMLScene *)
 

Detailed Description

Definition at line 33 of file qSlicerReformatModuleWidget.h.

Member Typedef Documentation

◆ Superclass

Definition at line 39 of file qSlicerReformatModuleWidget.h.

Member Enumeration Documentation

◆ AxesReferenceType

Enumerator
axisX 
axisY 
axisZ 

Definition at line 44 of file qSlicerReformatModuleWidget.h.

◆ OriginReferenceType

Enumerator
ONPLANE 
INVOLUME 

Definition at line 43 of file qSlicerReformatModuleWidget.h.

Constructor & Destructor Documentation

◆ qSlicerReformatModuleWidget()

qSlicerReformatModuleWidget::qSlicerReformatModuleWidget ( QWidget *  parent = nullptr)

◆ ~qSlicerReformatModuleWidget()

qSlicerReformatModuleWidget::~qSlicerReformatModuleWidget ( )
override

Member Function Documentation

◆ centerSliceNode

void qSlicerReformatModuleWidget::centerSliceNode ( )
slot

Recenter the active node given its coordinates reference.

◆ onLockReformatWidgetToCamera

void qSlicerReformatModuleWidget::onLockReformatWidgetToCamera ( bool  lock)
protectedslot

◆ onMRMLSliceNodeModified

void qSlicerReformatModuleWidget::onMRMLSliceNodeModified ( vtkObject *  caller)
protectedslot

Triggered upon MRML transform node updates.

◆ onNodeSelected

void qSlicerReformatModuleWidget::onNodeSelected ( vtkMRMLNode node)
protectedslot

◆ onOriginCoordinateReferenceButtonPressed

void qSlicerReformatModuleWidget::onOriginCoordinateReferenceButtonPressed ( int  reference)
protectedslot

◆ onReformatWidgetVisibilityChanged

void qSlicerReformatModuleWidget::onReformatWidgetVisibilityChanged ( bool  visible)
protectedslot

◆ onSliceNormalToAxisChanged

void qSlicerReformatModuleWidget::onSliceNormalToAxisChanged ( AxesReferenceType  axis)
protectedslot

◆ onSliceOrientationChanged

void qSlicerReformatModuleWidget::onSliceOrientationChanged ( const QString &  orientation)
protectedslot

◆ onSliceVisibilityChanged

void qSlicerReformatModuleWidget::onSliceVisibilityChanged ( bool  visible)
protectedslot

◆ onSliderRotationChanged

void qSlicerReformatModuleWidget::onSliderRotationChanged ( double  rotationX)
protectedslot

◆ onTrackSliceOffsetValueChanged

void qSlicerReformatModuleWidget::onTrackSliceOffsetValueChanged ( double  offset)
protectedslot

Set slice offset. Used when events will come is rapid succession.

◆ setEditedNode()

bool qSlicerReformatModuleWidget::setEditedNode ( vtkMRMLNode node,
QString  role = QString(),
QString  context = QString() 
)
overridevirtual

Node editing.

Reimplemented from qSlicerAbstractModuleWidget.

◆ setNormalToAxisX

void qSlicerReformatModuleWidget::setNormalToAxisX ( )
slot

Set the normal to a x axis.

◆ setNormalToAxisY

void qSlicerReformatModuleWidget::setNormalToAxisY ( )
slot

Set the normal to a y axis.

◆ setNormalToAxisZ

void qSlicerReformatModuleWidget::setNormalToAxisZ ( )
slot

Set the normal to a z axis.

◆ setNormalToCamera

void qSlicerReformatModuleWidget::setNormalToCamera ( )
slot

Set slice normal to the camera.

◆ setSliceNormal() [1/2]

void qSlicerReformatModuleWidget::setSliceNormal ( double  x,
double  y,
double  z 
)

Utility function that sets the normal of the slice plane.

◆ setSliceNormal [2/2]

void qSlicerReformatModuleWidget::setSliceNormal ( double *  normal)
slot

Set the normal of the slice plane. The origin of the plane is not changed. The normal is normalized before being set to the node. It resets the rotation sliders.

See also
setWorldPosition.

◆ setSliceOffsetValue

void qSlicerReformatModuleWidget::setSliceOffsetValue ( double  offset)
slot

Set slice offset. Used to set a single value.

See also
setWorldPosition

◆ setup()

void qSlicerReformatModuleWidget::setup ( )
overrideprotectedvirtual

All initialization code (typically setupUi()) must be done in setup() The module and the logic are accessible.

Reimplemented from qSlicerAbstractModuleWidget.

◆ setWorldPosition

void qSlicerReformatModuleWidget::setWorldPosition ( double *  newWorldPosition)
slot

Set the position of the slice in world coordinates

See also
setSliceOffsetValue

Member Data Documentation

◆ d_ptr

QScopedPointer<qSlicerReformatModuleWidgetPrivate> qSlicerReformatModuleWidget::d_ptr
protected

Definition at line 103 of file qSlicerReformatModuleWidget.h.


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