Slicer
4.8
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 |
QString | sliceViewLabel |
QString | sliceViewName |
Public Slots | |
void | fitSliceToBackground () |
bool | isMoreButtonVisible () const |
void | lockReformatWidgetToCamera (bool lock) |
void | moveBackgroundComboBox (bool move) |
void | rotateSliceToBackground () |
Rotate to volume plane. 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) |
virtual void | setMRMLScene (vtkMRMLScene *newScene) |
void | setMRMLSliceNode (vtkMRMLSliceNode *newSliceNode) |
Set a new SliceNode. More... | |
void | setOrientationMarkerSize (int size) |
void | setOrientationMarkerType (int type) |
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 () |
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 | |
vtkAlgorithmOutput * | imageDataConnection () const |
bool | isCompareView () const |
Is the view a compare view. More... | |
bool | isLinked () const |
Are the slices linked to each other. More... | |
vtkMRMLSliceCompositeNode * | mrmlSliceCompositeNode () const |
vtkMRMLSliceNode * | mrmlSliceNode () const |
qMRMLSliceControllerWidget (QWidget *parent=0) | |
Constructors. More... | |
void | setControllerButtonGroup (QButtonGroup *group) |
void | setSliceLogic (vtkMRMLSliceLogic *newSliceLogic) |
void | setSliceLogics (vtkCollection *logics) |
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) |
vtkMRMLSliceLogic * | sliceLogic () const |
Get SliceLogic. More... | |
QString | sliceOrientation () const |
QColor | sliceViewColor () const |
Get the color for the slice view (as a string) More... | |
QString | sliceViewLabel () const |
QString | sliceViewName () const |
Get slice view name. More... | |
virtual | ~qMRMLSliceControllerWidget () |
Public Member Functions inherited from qMRMLViewControllerBar | |
QLayout * | barLayout () |
QWidget * | barWidget () |
qMRMLViewControllerBar (QWidget *parent=0) | |
Constructors. More... | |
void | setLayoutBehavior (LayoutBehavior behavior) |
virtual | ~qMRMLViewControllerBar () |
Public Member Functions inherited from qMRMLWidget | |
Q_INVOKABLE vtkMRMLScene * | mrmlScene () const |
Return a pointer on the current MRML scene. More... | |
qMRMLWidget (QWidget *parent=0, Qt::WindowFlags f=0) | |
virtual | ~qMRMLWidget () |
Static Public Member Functions | |
static Q_INVOKABLE QColor | sliceViewColor (const QString &sliceViewName) |
Return the color associated to the slice view. More... | |
Protected Member Functions | |
qMRMLSliceControllerWidget (qMRMLSliceControllerWidgetPrivate *obj, QWidget *parent) | |
Protected Member Functions inherited from qMRMLViewControllerBar | |
qMRMLViewControllerBar (qMRMLViewControllerBarPrivate *pimpl, QWidget *parent=0) | |
Additional Inherited Members | |
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 52 of file qMRMLSliceControllerWidget.h.
Superclass typedef.
Definition at line 61 of file qMRMLSliceControllerWidget.h.
|
readwrite |
Definition at line 58 of file qMRMLSliceControllerWidget.h.
|
readwrite |
Definition at line 57 of file qMRMLSliceControllerWidget.h.
|
readwrite |
Definition at line 56 of file qMRMLSliceControllerWidget.h.
|
explicit |
Constructors.
|
virtual |
|
protected |
Constructor allowing derived class to specify a specialized pimpl.
|
slot |
Fit slices to background. A No-op if no SliceView has been set.
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
vtkMRMLSliceCompositeNode* qMRMLSliceControllerWidget::mrmlSliceCompositeNode | ( | ) | const |
Get sliceCompositeNode
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.
|
slot |
|
slot |
|
slot |
|
slot |
Compositing.
|
slot |
|
slot |
|
slot |
|
slot |
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.
|
virtualslot |
|
slot |
Set a new SliceNode.
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
Segmentation opacity.
|
slot |
|
slot |
Link/Unlink the slice controls across all slice viewer.
void qMRMLSliceControllerWidget::setSliceLogic | ( | vtkMRMLSliceLogic * | newSliceLogic | ) |
Set newSliceLogic Use if two instances of the controller need to observe the same logic.
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 |
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.
vtkMRMLSliceLogic* qMRMLSliceControllerWidget::sliceLogic | ( | ) | const |
Get SliceLogic.
QString qMRMLSliceControllerWidget::sliceOrientation | ( | ) | const |
Get slice orientation
|
static |
Return the color associated to the slice view.
QColor qMRMLSliceControllerWidget::sliceViewColor | ( | ) | const |
Get the color for the slice view (as a string)
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