Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
qSlicerReformatModuleWidget Class Reference

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

Inheritance diagram for qSlicerReformatModuleWidget:
Collaboration diagram for qSlicerReformatModuleWidget:

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.
 
void flipHorizontal ()
 Flip the image slice horizontally.
 
void flipVertical ()
 Flip the image slice vertically.
 
void rotateClockwise ()
 Rotate the image slice by 90 degrees in clockwise direction.
 
void rotateCounterClockwise ()
 Rotate the image slice by 90 degrees in counterclockwise direction.
 
void rotateToVolumePlane ()
 Align slice axes with the displayed volume axes.
 
void setNormalToAxisIS ()
 Set the normal to a z axis.
 
void setNormalToAxisLR ()
 Set the normal to a x axis.
 
void setNormalToAxisPA ()
 Set the normal to a y axis.
 
void setNormalToCamera ()
 Set slice normal to the camera.
 
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.
 
void setSliceNormal (double x, double y, double z)
 Utility function that sets the normal of the slice plane.
 
 ~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.
 
 qSlicerObject ()
 
virtual void setMRMLScene (vtkMRMLScene *)
 Set the current MRML scene to the widget.
 
virtual ~qSlicerObject ()
 
- Public Member Functions inherited from qSlicerAbstractModuleRepresentation
qSlicerAbstractCoreModulemodule () const
 
QString moduleName () const
 Set/Get module name.
 
 qSlicerAbstractModuleRepresentation ()
 
 ~qSlicerAbstractModuleRepresentation () override
 

Protected Slots

void onLockReformatWidgetToCamera (bool lock)
 
void onMRMLSliceNodeModified (vtkObject *caller)
 Triggered upon MRML transform node updates.
 
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.
 

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 32 of file qSlicerReformatModuleWidget.h.

Member Typedef Documentation

◆ Superclass

Member Enumeration Documentation

◆ AxesReferenceType

Enumerator
axisX 
axisY 
axisZ 

Definition at line 43 of file qSlicerReformatModuleWidget.h.

◆ OriginReferenceType

Enumerator
ONPLANE 
INVOLUME 

Definition at line 42 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.

◆ flipHorizontal

void qSlicerReformatModuleWidget::flipHorizontal ( )
slot

Flip the image slice horizontally.

◆ flipVertical

void qSlicerReformatModuleWidget::flipVertical ( )
slot

Flip the image slice vertically.

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

◆ rotateClockwise

void qSlicerReformatModuleWidget::rotateClockwise ( )
slot

Rotate the image slice by 90 degrees in clockwise direction.

◆ rotateCounterClockwise

void qSlicerReformatModuleWidget::rotateCounterClockwise ( )
slot

Rotate the image slice by 90 degrees in counterclockwise direction.

◆ rotateToVolumePlane

void qSlicerReformatModuleWidget::rotateToVolumePlane ( )
slot

Align slice axes with the displayed volume axes.

◆ setEditedNode()

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

Node editing.

Reimplemented from qSlicerAbstractModuleWidget.

◆ setNormalToAxisIS

void qSlicerReformatModuleWidget::setNormalToAxisIS ( )
slot

Set the normal to a z axis.

◆ setNormalToAxisLR

void qSlicerReformatModuleWidget::setNormalToAxisLR ( )
slot

Set the normal to a x axis.

◆ setNormalToAxisPA

void qSlicerReformatModuleWidget::setNormalToAxisPA ( )
slot

Set the normal to a y axis.

◆ setNormalToCamera

void qSlicerReformatModuleWidget::setNormalToCamera ( )
slot

Set slice normal to the camera.

◆ setSliceNormal [1/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.

◆ setSliceNormal() [2/2]

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

Utility function that sets the normal of the slice plane.

◆ 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 117 of file qSlicerReformatModuleWidget.h.


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