21 #ifndef __qMRMLSliceControllerWidget_h 22 #define __qMRMLSliceControllerWidget_h 26 #include <vtkVersion.h> 30 class qMRMLSliceControllerWidgetPrivate;
32 class vtkAlgorithmOutput;
58 Q_PROPERTY(QString sliceViewName READ sliceViewName WRITE setSliceViewName)
59 Q_PROPERTY(QString sliceViewLabel READ sliceViewLabel WRITE setSliceViewLabel)
60 Q_PROPERTY(QColor sliceViewColor READ sliceViewColor WRITE setSliceViewColor)
61 Q_PROPERTY(
double sliceOffsetResolution READ sliceOffsetResolution WRITE setSliceOffsetResolution)
62 Q_PROPERTY(
bool moreButtonVisibility READ isMoreButtonVisible WRITE setMoreButtonVisible)
63 Q_PROPERTY(QString sliceOrientation READ sliceOrientation WRITE setSliceOrientation)
76 bool isCompareView()const;
80 QString sliceOrientation()const;
87 Q_INVOKABLE vtkAlgorithmOutput* imageDataConnection()const;
100 void setSliceViewName(const QString& newSliceViewName);
103 QString sliceViewName()const;
106 Q_INVOKABLE static QColor sliceViewColor(const QString& sliceViewName);
112 void setSliceViewLabel(const QString& newSliceViewLabel);
116 QString sliceViewLabel()const;
119 void setSliceViewColor(const QColor& newSliceViewColor);
122 QColor sliceViewColor()const;
125 Q_INVOKABLE
void setSliceOffsetRange(
double min,
double max);
128 void setSliceOffsetResolution(
double resolution);
131 double sliceOffsetResolution();
143 Q_INVOKABLE
void setControllerButtonGroup(QButtonGroup* group);
148 Q_INVOKABLE
void setSliceLogics(vtkCollection* logics);
154 Q_INVOKABLE QToolButton* fitToWindowToolButton();
164 void setImageDataConnection(vtkAlgorithmOutput* newImageDataConnection);
167 void setSliceViewSize(const QSize& newSize);
171 void fitSliceToBackground();
175 void setSliceOrientation(const QString& orientation);
178 void setSliceOffsetValue(
double offset);
181 void trackSliceOffsetValue(
double offset);
184 void setSliceVisible(
bool visible);
187 void setSliceLink(
bool linked);
192 void setHotLinked(
bool hot);
197 void setMoreButtonVisible(
bool visible);
200 bool isMoreButtonVisible() const;
204 void moveBackgroundComboBox(
bool move);
207 void updateSegmentationControlsVisibility();
210 void rotateSliceToBackground();
212 void setSegmentationHidden(
bool hide);
213 void setLabelMapHidden(
bool hide);
214 void setForegroundHidden(
bool hide);
215 void setBackgroundHidden(
bool hide);
218 void setSegmentationOpacity(
double opacity);
220 void setLabelMapOpacity(
double opacity);
221 void setForegroundOpacity(
double opacity);
222 void setBackgroundOpacity(
double opacity);
225 void toggleSegmentationOutlineFill();
227 void showLabelOutline(
bool show);
229 void showReformatWidget(
bool show);
230 void lockReformatWidgetToCamera(
bool lock);
232 void setCompositing(
int mode);
233 void setCompositingToAlphaBlend();
234 void setCompositingToReverseAlphaBlend();
235 void setCompositingToAdd();
236 void setCompositingToSubtract();
238 void setSliceSpacingMode(
bool automatic);
239 void setSliceSpacing(
double spacing);
240 void setSliceFOV(
double fov);
243 void setSliceModelMode(
int mode);
244 void setSliceModelModeVolumes();
245 void setSliceModelMode2D();
246 void setSliceModelMode2D_Volumes();
247 void setSliceModelModeVolumes_2D();
248 void setSliceModelModeCustom();
250 void setSliceModelFOV(
int index,
double fov);
251 void setSliceModelFOVX(
double fov);
252 void setSliceModelFOVY(
double fov);
254 void setSliceModelOrigin(
int index,
double fov);
255 void setSliceModelOriginX(
double fov);
256 void setSliceModelOriginY(
double fov);
258 void setSliceModelDimension(
int index,
int dim);
259 void setSliceModelDimensionX(
int dim);
260 void setSliceModelDimensionY(
int dim);
263 void setOrientationMarkerType(
int type);
264 void setOrientationMarkerSize(
int size);
267 void setRulerType(
int type);
270 void setLightbox(
int rows,
int columns);
271 void setLightboxTo1x1();
272 void setLightboxTo1x2();
273 void setLightboxTo1x3();
274 void setLightboxTo1x4();
275 void setLightboxTo1x6();
276 void setLightboxTo1x8();
277 void setLightboxTo2x2();
278 void setLightboxTo3x3();
279 void setLightboxTo6x6();
281 void setForegroundInterpolation(
bool nearestNeighbor);
282 void setBackgroundInterpolation(
bool nearestNeighbor);
286 void imageDataConnectionChanged(vtkAlgorithmOutput * imageDataConnection);
288 void renderRequested();
MRML node for storing a slice through RAS space.
MRML node for storing a slice through RAS space.
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.