Slicer
5.3
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
#include <Libs/MRML/Widgets/qMRMLSliceControllerWidget.h>
Public Types | |
typedef qMRMLViewControllerBar | Superclass |
Superclass typedef. More... | |
Public Types inherited from qMRMLViewControllerBar | |
enum | LayoutBehavior { Popup =0, Panel } |
typedef qMRMLWidget | Superclass |
Superclass typedef. More... | |
Public Types inherited from qMRMLWidget | |
typedef QWidget | Superclass |
Properties | |
bool | moreButtonVisibility |
double | sliceOffsetResolution |
QString | sliceOrientation |
QColor | sliceViewColor |
QString | sliceViewLabel |
QString | sliceViewName |
Properties inherited from qMRMLViewControllerBar | |
bool | showMaximizeViewButton |
Public Slots | |
void | fitSliceToBackground () |
bool | isMoreButtonVisible () const |
void | lockReformatWidgetToCamera (bool lock) |
void | moveBackgroundComboBox (bool move) |
void | rotateSliceToLowestVolumeAxes () |
Rotate to volume plane (first of background, foreground, or label) More... | |
void | setBackgroundHidden (bool hide) |
void | setBackgroundInterpolation (bool nearestNeighbor) |
void | setBackgroundOpacity (double opacity) |
void | setCompositing (int mode) |
Compositing. More... | |
void | setCompositingToAdd () |
void | setCompositingToAlphaBlend () |
void | setCompositingToReverseAlphaBlend () |
void | setCompositingToSubtract () |
void | setForegroundHidden (bool hide) |
void | setForegroundInterpolation (bool nearestNeighbor) |
void | setForegroundOpacity (double opacity) |
void | setHotLinked (bool hot) |
void | setImageDataConnection (vtkAlgorithmOutput *newImageDataConnection) |
Set a new imageData. More... | |
void | setLabelMapHidden (bool hide) |
void | setLabelMapOpacity (double opacity) |
Label opacity. More... | |
void | setLightbox (int rows, int columns) |
void | setLightboxTo1x1 () |
void | setLightboxTo1x2 () |
void | setLightboxTo1x3 () |
void | setLightboxTo1x4 () |
void | setLightboxTo1x6 () |
void | setLightboxTo1x8 () |
void | setLightboxTo2x2 () |
void | setLightboxTo3x3 () |
void | setLightboxTo6x6 () |
void | setMoreButtonVisible (bool visible) |
void | setMRMLScene (vtkMRMLScene *newScene) override |
void | setMRMLSliceNode (vtkMRMLSliceNode *newSliceNode) |
Set a new SliceNode. More... | |
void | setOrientationMarkerSize (int size) |
void | setOrientationMarkerType (int type) |
void | setRulerColor (int color) |
void | setRulerType (int type) |
void | setSegmentationHidden (bool hide) |
void | setSegmentationOpacity (double opacity) |
Segmentation opacity. More... | |
void | setSliceFOV (double fov) |
void | setSliceLink (bool linked) |
Link/Unlink the slice controls across all slice viewer. More... | |
void | setSliceModelDimension (int index, int dim) |
void | setSliceModelDimensionX (int dim) |
void | setSliceModelDimensionY (int dim) |
void | setSliceModelFOV (int index, double fov) |
void | setSliceModelFOVX (double fov) |
void | setSliceModelFOVY (double fov) |
void | setSliceModelMode (int mode) |
Slice Model. More... | |
void | setSliceModelMode2D () |
void | setSliceModelMode2D_Volumes () |
void | setSliceModelModeCustom () |
void | setSliceModelModeVolumes () |
void | setSliceModelModeVolumes_2D () |
void | setSliceModelOrigin (int index, double fov) |
void | setSliceModelOriginX (double fov) |
void | setSliceModelOriginY (double fov) |
void | setSliceOffsetValue (double offset) |
Set slice offset. Used to set a single value. More... | |
void | setSliceOrientation (const QString &orientation) |
void | setSliceSpacing (double spacing) |
void | setSliceSpacingMode (bool automatic) |
Slice spacing. More... | |
void | setSliceViewSize (const QSize &newSize) |
void | setSliceVisible (bool visible) |
Set slice visible. More... | |
void | showLabelOutline (bool show) |
Label outline. More... | |
void | showReformatWidget (bool show) |
Reformat widget. More... | |
void | toggleSegmentationOutlineFill () |
Segmentation outline/fill. More... | |
void | trackSliceOffsetValue (double offset) |
Set slice offset. Used when events will come is rapid succession. More... | |
void | updateSegmentationControlsVisibility () |
void | updateWidgetFromMRMLView () override |
Public Slots inherited from qMRMLViewControllerBar | |
void | maximizeView () |
void | setShowMaximizeViewButton (bool show) |
Public Slots inherited from qMRMLWidget | |
virtual void | setMRMLScene (vtkMRMLScene *newScene) |
Set the MRML scene associated with the widget. More... | |
Signals | |
void | imageDataConnectionChanged (vtkAlgorithmOutput *imageDataConnection) |
This signal is emitted when the given imageData is modified. More... | |
void | nodeAboutToBeEdited (vtkMRMLNode *node) |
Signal emitted when editing of a node is requested from within the controller. More... | |
void | renderRequested () |
Signals inherited from qMRMLWidget | |
void | mrmlSceneChanged (vtkMRMLScene *) |
Public Member Functions | |
Q_INVOKABLE QToolButton * | fitToWindowToolButton () |
Get the fit to window button (shown in the controller bar). More... | |
Q_INVOKABLE vtkAlgorithmOutput * | imageDataConnection () const |
bool | isCompareView () const |
Is the view a compare view. More... | |
bool | isLinked () const |
Are the slices linked to each other. More... | |
Q_INVOKABLE vtkMRMLSliceCompositeNode * | mrmlSliceCompositeNode () const |
Q_INVOKABLE vtkMRMLSliceNode * | mrmlSliceNode () const |
qMRMLSliceControllerWidget (QWidget *parent=nullptr) | |
Constructors. More... | |
Q_INVOKABLE void | setControllerButtonGroup (QButtonGroup *group) |
Q_INVOKABLE void | setSliceLogic (vtkMRMLSliceLogic *newSliceLogic) |
Q_INVOKABLE void | setSliceLogics (vtkCollection *logics) |
Q_INVOKABLE void | setSliceOffsetRange (double min, double max) |
Set slice offset range. More... | |
void | setSliceOffsetResolution (double resolution) |
Set slice offset resolution (increment) More... | |
void | setSliceViewColor (const QColor &newSliceViewColor) |
Set the color for the slice view. More... | |
void | setSliceViewLabel (const QString &newSliceViewLabel) |
void | setSliceViewName (const QString &newSliceViewName) |
Q_INVOKABLE vtkMRMLSliceLogic * | sliceLogic () const |
Get SliceLogic. More... | |
double | sliceOffsetResolution () |
Get slice offset resolution (increment) More... | |
Q_INVOKABLE qMRMLSliderWidget * | sliceOffsetSlider () |
Get the slice slider widget (shown in the controller bar). More... | |
QString | sliceOrientation () const |
QColor | sliceViewColor () const |
Get the color for the slice view. More... | |
QString | sliceViewLabel () const |
QString | sliceViewName () const |
Get slice view name. More... | |
~qMRMLSliceControllerWidget () override | |
Public Member Functions inherited from qMRMLViewControllerBar | |
Q_INVOKABLE QLayout * | barLayout () |
Q_INVOKABLE QWidget * | barWidget () |
Q_INVOKABLE QToolButton * | pinButton () |
Push-pin icon that shows additional options when clicked. More... | |
qMRMLViewControllerBar (QWidget *parent=nullptr) | |
Constructors. More... | |
Q_INVOKABLE void | setLayoutBehavior (LayoutBehavior behavior) |
bool | showMaximizeViewButton () const |
Q_INVOKABLE QLabel * | viewLabel () |
Label that displays the view's name. More... | |
~qMRMLViewControllerBar () override | |
Public Member Functions inherited from qMRMLWidget | |
Q_INVOKABLE vtkMRMLScene * | mrmlScene () const |
Return a pointer on the current MRML scene. More... | |
qMRMLWidget (QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags()) | |
~qMRMLWidget () override | |
Protected Member Functions | |
qMRMLSliceControllerWidget (qMRMLSliceControllerWidgetPrivate *obj, QWidget *parent) | |
Protected Member Functions inherited from qMRMLViewControllerBar | |
virtual vtkMRMLAbstractViewNode * | mrmlViewNode () const |
qMRMLViewControllerBar (qMRMLViewControllerBarPrivate *pimpl, QWidget *parent=nullptr) | |
virtual void | setMRMLViewNode (vtkMRMLAbstractViewNode *viewNode) |
Additional Inherited Members | |
Static Public Member Functions inherited from qMRMLWidget | |
static Q_INVOKABLE QPixmap | pixmapFromIcon (const QIcon &icon) |
static Q_INVOKABLE void | postInitializeApplication () |
Initialization that needs to be performed after application object is created. More... | |
static Q_INVOKABLE void | preInitializeApplication () |
Protected Slots inherited from qMRMLViewControllerBar | |
virtual void | updateWidgetFromMRMLView () |
Protected Attributes inherited from qMRMLViewControllerBar | |
QScopedPointer< qMRMLViewControllerBarPrivate > | d_ptr |
Protected Attributes inherited from qMRMLWidget | |
QScopedPointer< qMRMLWidgetPrivate > | d_ptr |
qMRMLSliceControllerWidget offers controls to a slice view (vtkMRMLSliceNode and vtkMRMLSliceCompositeNode). It internally creates a slice logic that can be changed.
To be valid, it needs at least a MRML scene and a MRML slice node:
Definition at line 54 of file qMRMLSliceControllerWidget.h.
Superclass typedef.
Definition at line 66 of file qMRMLSliceControllerWidget.h.
|
readwrite |
Definition at line 62 of file qMRMLSliceControllerWidget.h.
|
readwrite |
Definition at line 61 of file qMRMLSliceControllerWidget.h.
|
readwrite |
Definition at line 63 of file qMRMLSliceControllerWidget.h.
|
readwrite |
Definition at line 60 of file qMRMLSliceControllerWidget.h.
|
readwrite |
Definition at line 59 of file qMRMLSliceControllerWidget.h.
|
readwrite |
Definition at line 58 of file qMRMLSliceControllerWidget.h.
|
explicit |
Constructors.
|
override |
|
protected |
Constructor allowing derived class to specify a specialized pimpl.
|
slot |
Fit slices to background. A No-op if no SliceView has been set.
Q_INVOKABLE QToolButton* qMRMLSliceControllerWidget::fitToWindowToolButton | ( | ) |
Get the fit to window button (shown in the controller bar).
Q_INVOKABLE vtkAlgorithmOutput* qMRMLSliceControllerWidget::imageDataConnection | ( | ) | const |
Get imageData from the slice logic. Returns 0 if there is no volume assigned to Background, Foreground or LabelMap. Or if the only volume assigned doesn't have have a display node or its display node image data is 0.
|
signal |
This signal is emitted when the given imageData is modified.
bool qMRMLSliceControllerWidget::isCompareView | ( | ) | const |
Is the view a compare view.
bool qMRMLSliceControllerWidget::isLinked | ( | ) | const |
Are the slices linked to each other.
|
slot |
Get the visibility of the MoreButton which allows to show the advanced controls.
|
slot |
|
slot |
Place background volume combobox in the popup or the bar depending on the state of the More button
Q_INVOKABLE vtkMRMLSliceCompositeNode* qMRMLSliceControllerWidget::mrmlSliceCompositeNode | ( | ) | const |
Get sliceCompositeNode
Q_INVOKABLE vtkMRMLSliceNode* qMRMLSliceControllerWidget::mrmlSliceNode | ( | ) | const |
Get sliceNode
|
signal |
Signal emitted when editing of a node is requested from within the controller.
|
signal |
|
slot |
Rotate to volume plane (first of background, foreground, or label)
|
slot |
|
slot |
|
slot |
|
slot |
Compositing.
|
slot |
|
slot |
|
slot |
|
slot |
Q_INVOKABLE void qMRMLSliceControllerWidget::setControllerButtonGroup | ( | QButtonGroup * | group | ) |
Set controller widget group All controllers of a same group will be set visible or hidden if at least one of the sliceCollapsibleButton of the group is clicked.
|
slot |
|
slot |
|
slot |
|
slot |
Set the link mode to hot linked. When on, slice interactions affect other slices immediately. When off, slice interactions affect other slices after the interaction completes.
|
slot |
Set a new imageData.
|
slot |
|
slot |
Label opacity.
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
Set the visibility of the MoreButton which allows to show the advanced controls.
|
overrideslot |
|
slot |
Set a new SliceNode.
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
Segmentation opacity.
|
slot |
|
slot |
Link/Unlink the slice controls across all slice viewer.
Q_INVOKABLE void qMRMLSliceControllerWidget::setSliceLogic | ( | vtkMRMLSliceLogic * | newSliceLogic | ) |
Set newSliceLogic Use if two instances of the controller need to observe the same logic.
Q_INVOKABLE void qMRMLSliceControllerWidget::setSliceLogics | ( | vtkCollection * | logics | ) |
TODO: Ideally the slice logics should be retrieved by the sliceLogic until then, we manually set them.
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
Slice Model.
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
Q_INVOKABLE void qMRMLSliceControllerWidget::setSliceOffsetRange | ( | double | min, |
double | max | ||
) |
Set slice offset range.
void qMRMLSliceControllerWidget::setSliceOffsetResolution | ( | double | resolution | ) |
Set slice offset resolution (increment)
|
slot |
Set slice offset. Used to set a single value.
|
slot |
Set slice orientation.
|
slot |
|
slot |
Slice spacing.
void qMRMLSliceControllerWidget::setSliceViewColor | ( | const QColor & | newSliceViewColor | ) |
Set the color for the slice view.
void qMRMLSliceControllerWidget::setSliceViewLabel | ( | const QString & | newSliceViewLabel | ) |
Convenience function to set the abbreviated name for the slice view. This is equivalent to call vtkMRMLSliceNode::SetLayoutLabel() If no SliceNode is set, this is a no-op.
void qMRMLSliceControllerWidget::setSliceViewName | ( | const QString & | newSliceViewName | ) |
Set slice view name
|
slot |
|
slot |
Set slice visible.
|
slot |
Label outline.
|
slot |
Reformat widget.
Q_INVOKABLE vtkMRMLSliceLogic* qMRMLSliceControllerWidget::sliceLogic | ( | ) | const |
Get SliceLogic.
double qMRMLSliceControllerWidget::sliceOffsetResolution | ( | ) |
Get slice offset resolution (increment)
Q_INVOKABLE qMRMLSliderWidget* qMRMLSliceControllerWidget::sliceOffsetSlider | ( | ) |
Get the slice slider widget (shown in the controller bar).
QString qMRMLSliceControllerWidget::sliceOrientation | ( | ) | const |
Get slice orientation
QColor qMRMLSliceControllerWidget::sliceViewColor | ( | ) | const |
Get the color for the slice view.
QString qMRMLSliceControllerWidget::sliceViewLabel | ( | ) | const |
Get the abbreviated slice view name.
QString qMRMLSliceControllerWidget::sliceViewName | ( | ) | const |
Get slice view name.
|
slot |
Segmentation outline/fill.
|
slot |
Set slice offset. Used when events will come is rapid succession.
|
slot |
Show/hide segmentation controls based on More button state and whether there is a segmentation node in the scene
|
overrideslot |