21 #ifndef __qMRMLSliceWidget_h 22 #define __qMRMLSliceWidget_h 26 #include <vtkVersion.h> 31 #include "qMRMLWidgetsExport.h" 34 class qMRMLSliceWidgetPrivate;
43 class vtkAlgorithmOutput;
45 class vtkInteractorObserver;
46 class vtkCornerAnnotation;
52 Q_PROPERTY(QString sliceOrientation READ sliceOrientation WRITE setSliceOrientation)
53 Q_PROPERTY(QString sliceViewName READ sliceViewName WRITE setSliceViewName)
54 Q_PROPERTY(QString sliceViewLabel READ sliceViewLabel WRITE setSliceViewLabel)
55 Q_PROPERTY(QColor sliceViewColor READ sliceViewColor WRITE setSliceViewColor)
77 Q_INVOKABLE QString sliceOrientation()const;
81 Q_INVOKABLE vtkAlgorithmOutput* imageDataConnection()const;
88 QString sliceViewName()const;
92 void setSliceViewName(const QString& newSliceViewName);
96 QString sliceViewLabel()const;
100 void setSliceViewLabel(const QString& newSliceViewLabel);
104 QColor sliceViewColor()const;
108 void setSliceViewColor(const QColor& newSliceViewColor);
114 Q_INVOKABLE vtkInteractorObserver* interactorStyle()const;
117 Q_INVOKABLE vtkCornerAnnotation* overlayCornerAnnotation()const;
120 Q_INVOKABLE
void setSliceLogics(vtkCollection* logics);
136 void setImageDataConnection(vtkAlgorithmOutput* newImageDataConnection);
140 void setSliceOrientation(const QString& orientation);
143 void fitSliceToBackground();
150 void showEvent(QShowEvent *) override;
152 QScopedPointer<qMRMLSliceWidgetPrivate> d_ptr;
MRML node for storing a slice through RAS space.
MRML node for storing a slice through RAS space.
2D view for slice nodes. For performance reasons, the view block refreshs when the scene is in batch ...
A set of MRML Nodes that supports serialization and undo/redo.
Abstract Superclass for all specific types of MRML nodes.
Slicer logic class for slice manipulation.