Slicer  5.0
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Properties | Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
qSlicerMarkupsPlaceWidget Class Reference

#include <Modules/Loadable/Markups/Widgets/qSlicerMarkupsPlaceWidget.h>

Inheritance diagram for qSlicerMarkupsPlaceWidget:
Inheritance graph
[legend]
Collaboration diagram for qSlicerMarkupsPlaceWidget:
Collaboration graph
[legend]

Public Types

enum  PlaceMultipleMarkupsType { ShowPlaceMultipleMarkupsOption, HidePlaceMultipleMarkupsOption, ForcePlaceSingleMarkup, ForcePlaceMultipleMarkups }
 
typedef qSlicerWidget Superclass
 

Properties

bool buttonsVisible
 
bool currentNodeActive
 
QColor defaultNodeColor
 
bool deleteAllControlPointsOptionVisible
 
bool deleteAllMarkupsOptionVisible
 
QColor nodeColor
 
bool placeModeEnabled
 
bool placeModePersistency
 
PlaceMultipleMarkupsType placeMultipleMarkups
 
bool unsetAllControlPointsOptionVisible
 
bool unsetLastControlPointOptionVisible
 

Public Slots

void deleteAllPoints ()
 Delete all points from the markups node. More...
 
void deleteLastMarkup ()
 
void deleteLastPoint ()
 Delete last placed markup point. More...
 
void modifyLastPoint ()
 
void setButtonsVisible (bool visible)
 Show/hide all buttons. Useful for showing/hiding all buttons except specific ones. More...
 
void setCurrentNode (vtkMRMLNode *currentNode)
 Set the currently selected markups node. More...
 
void setCurrentNodeActive (bool active)
 Set the currently selected markups node to be the active markups node in the Slicer scene. Does not change place mode. More...
 
void setDefaultNodeColor (QColor color)
 
void setDeleteAllControlPointsOptionVisible (bool visible)
 Set visibility of Delete all markups option. More...
 
void setInteractionNode (vtkMRMLInteractionNode *interactionNode)
 
void setMRMLScene (vtkMRMLScene *scene) override
 
void setNodeColor (QColor color)
 
void setPlaceModeEnabled (bool enable)
 Enable/disable place mode. If place mode is enabled then current markups node is set active, too. More...
 
void setPlaceModePersistency (bool)
 Set place mode to persistent (remains active until deactivated). Does not enable or disable placement mode. More...
 
void setPlaceMultipleMarkups (PlaceMultipleMarkupsType option)
 Configures multiplicity of markups placement. More...
 
void setSelectionNode (vtkMRMLSelectionNode *selectionNode)
 
void setUnsetAllControlPointsOptionVisible (bool visible)
 Set visibility of Unset all control point option. More...
 
void setUnsetLastControlPointOptionVisible (bool visible)
 Set visibility of Unset last control point option. More...
 
void unsetAllPoints ()
 Unset the position of all points from the markups node. More...
 
void unsetLastDefinedPoint ()
 Unset the position status of the last placed markup point. More...
 
- Public Slots inherited from qSlicerWidget
void setMRMLScene (vtkMRMLScene *scene) override
 

Signals

void activeMarkupsFiducialPlaceModeChanged (bool enabled)
 
void activeMarkupsPlaceModeChanged (bool enabled)
 
- Signals inherited from qSlicerWidget
void mrmlSceneChanged (vtkMRMLScene *)
 

Public Member Functions

bool buttonsVisible () const
 Returns true if all buttons are visible. More...
 
bool currentMarkupPointPlacementValid ()
 
Q_INVOKABLE vtkMRMLMarkupsFiducialNodecurrentMarkupsFiducialNode () const
 
Q_INVOKABLE vtkMRMLMarkupsNodecurrentMarkupsNode () const
 
Q_INVOKABLE vtkMRMLNodecurrentNode () const
 Get the currently selected markups node. More...
 
bool currentNodeActive () const
 Returns true if the current markups node is the active markups node in the scene. More...
 
QColor defaultNodeColor () const
 Get the default node color that is shown when no node is selected. More...
 
bool deleteAllControlPointsOptionVisible () const
 Returns true if the Delete all option on the Delete button is visible. More...
 
void deleteAllMarkups ()
 
bool deleteAllMarkupsOptionVisible () const
 
Q_INVOKABLE QToolButton * deleteButton () const
 
Q_INVOKABLE vtkMRMLInteractionNodeinteractionNode () const
 
QColor nodeColor () const
 Get the selected color of the currently selected markups node. More...
 
Q_INVOKABLE QToolButton * placeButton () const
 
bool placeModeEnabled () const
 Returns true if place mode enabled and current node is active. More...
 
bool placeModePersistency () const
 Returns true if placement mode is persistent, regardless if place mode is enabled or not. More...
 
PlaceMultipleMarkupsType placeMultipleMarkups () const
 Returns markup placement multiplicity option. More...
 
 qSlicerMarkupsPlaceWidget (QWidget *parent=nullptr)
 
Q_INVOKABLE vtkMRMLSelectionNodeselectionNode () const
 
void setDeleteAllMarkupsOptionVisible (bool visible)
 
bool unsetAllControlPointsOptionVisible () const
 Returns true if the Unset all control points option on the Delete button is visible. More...
 
bool unsetLastControlPointOptionVisible () const
 Returns true if the Unset last control point option on the Delete button is visible. More...
 
 ~qSlicerMarkupsPlaceWidget () 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. More...
 
 qSlicerObject ()
 
virtual void setMRMLScene (vtkMRMLScene *)
 Set the current MRML scene to the widget. More...
 
virtual ~qSlicerObject ()
 

Protected Slots

void onColorButtonChanged (QColor)
 Update the currently selected markups node to have its selected color changed. More...
 
void onFixedNumberOfControlPointsButtonClicked ()
 Toggle whether the number of points in the current markups node is locked. More...
 
void onLockedButtonClicked ()
 Toggle whether the current markups node is locked. More...
 
void onPlacePersistentPoint (bool enable)
 
void onVisibilityButtonClicked ()
 Toggle the visibility of the markups in the viewers. More...
 
void updateDeleteButton ()
 Update the Delete Button to reflect the currently visible delete button options. More...
 
void updateWidget ()
 Update the GUI to reflect the currently selected markups node. More...
 

Protected Member Functions

virtual void setup ()
 

Protected Attributes

QScopedPointer< qSlicerMarkupsPlaceWidgetPrivate > d_ptr
 
- Protected Attributes inherited from qSlicerWidget
QScopedPointer< qSlicerWidgetPrivate > d_ptr
 
- Protected Attributes inherited from qSlicerObject
QScopedPointer< qSlicerObjectPrivate > d_ptr
 

Detailed Description

Definition at line 41 of file qSlicerMarkupsPlaceWidget.h.

Member Typedef Documentation

◆ Superclass

Definition at line 61 of file qSlicerMarkupsPlaceWidget.h.

Member Enumeration Documentation

◆ PlaceMultipleMarkupsType

Enumerator
ShowPlaceMultipleMarkupsOption 
HidePlaceMultipleMarkupsOption 
ForcePlaceSingleMarkup 
ForcePlaceMultipleMarkups 

Definition at line 65 of file qSlicerMarkupsPlaceWidget.h.

Property Documentation

◆ buttonsVisible

bool qSlicerMarkupsPlaceWidget::buttonsVisible
readwrite

Definition at line 46 of file qSlicerMarkupsPlaceWidget.h.

◆ currentNodeActive

bool qSlicerMarkupsPlaceWidget::currentNodeActive
readwrite

Definition at line 53 of file qSlicerMarkupsPlaceWidget.h.

◆ defaultNodeColor

QColor qSlicerMarkupsPlaceWidget::defaultNodeColor
readwrite

Definition at line 52 of file qSlicerMarkupsPlaceWidget.h.

◆ deleteAllControlPointsOptionVisible

bool qSlicerMarkupsPlaceWidget::deleteAllControlPointsOptionVisible
readwrite

Definition at line 47 of file qSlicerMarkupsPlaceWidget.h.

◆ deleteAllMarkupsOptionVisible

bool qSlicerMarkupsPlaceWidget::deleteAllMarkupsOptionVisible
readwrite
Deprecated:
Use deleteAllControlPointsOptionVisible instead.

Definition at line 58 of file qSlicerMarkupsPlaceWidget.h.

◆ nodeColor

QColor qSlicerMarkupsPlaceWidget::nodeColor
readwrite

Definition at line 51 of file qSlicerMarkupsPlaceWidget.h.

◆ placeModeEnabled

bool qSlicerMarkupsPlaceWidget::placeModeEnabled
readwrite

Definition at line 54 of file qSlicerMarkupsPlaceWidget.h.

◆ placeModePersistency

bool qSlicerMarkupsPlaceWidget::placeModePersistency
readwrite

Definition at line 55 of file qSlicerMarkupsPlaceWidget.h.

◆ placeMultipleMarkups

PlaceMultipleMarkupsType qSlicerMarkupsPlaceWidget::placeMultipleMarkups
readwrite

Definition at line 50 of file qSlicerMarkupsPlaceWidget.h.

◆ unsetAllControlPointsOptionVisible

bool qSlicerMarkupsPlaceWidget::unsetAllControlPointsOptionVisible
readwrite

Definition at line 49 of file qSlicerMarkupsPlaceWidget.h.

◆ unsetLastControlPointOptionVisible

bool qSlicerMarkupsPlaceWidget::unsetLastControlPointOptionVisible
readwrite

Definition at line 48 of file qSlicerMarkupsPlaceWidget.h.

Constructor & Destructor Documentation

◆ qSlicerMarkupsPlaceWidget()

qSlicerMarkupsPlaceWidget::qSlicerMarkupsPlaceWidget ( QWidget *  parent = nullptr)

◆ ~qSlicerMarkupsPlaceWidget()

qSlicerMarkupsPlaceWidget::~qSlicerMarkupsPlaceWidget ( )
override

Member Function Documentation

◆ activeMarkupsFiducialPlaceModeChanged

void qSlicerMarkupsPlaceWidget::activeMarkupsFiducialPlaceModeChanged ( bool  enabled)
signal
Deprecated:
Use activeMarkupsPlaceModeChanged instead.

◆ activeMarkupsPlaceModeChanged

void qSlicerMarkupsPlaceWidget::activeMarkupsPlaceModeChanged ( bool  enabled)
signal

This signal is emitted when place mode for the active markup is changed to enabled or disabled. The argument enabled is true if the currently selected markups node is active and in place mode. The argument enabled is false if the currently selected markups node is not active or not in place mode.

◆ buttonsVisible()

bool qSlicerMarkupsPlaceWidget::buttonsVisible ( ) const

Returns true if all buttons are visible.

◆ currentMarkupPointPlacementValid()

bool qSlicerMarkupsPlaceWidget::currentMarkupPointPlacementValid ( )

◆ currentMarkupsFiducialNode()

Q_INVOKABLE vtkMRMLMarkupsFiducialNode* qSlicerMarkupsPlaceWidget::currentMarkupsFiducialNode ( ) const

◆ currentMarkupsNode()

Q_INVOKABLE vtkMRMLMarkupsNode* qSlicerMarkupsPlaceWidget::currentMarkupsNode ( ) const

◆ currentNode()

Q_INVOKABLE vtkMRMLNode* qSlicerMarkupsPlaceWidget::currentNode ( ) const

Get the currently selected markups node.

◆ currentNodeActive()

bool qSlicerMarkupsPlaceWidget::currentNodeActive ( ) const

Returns true if the current markups node is the active markups node in the scene.

◆ defaultNodeColor()

QColor qSlicerMarkupsPlaceWidget::defaultNodeColor ( ) const

Get the default node color that is shown when no node is selected.

◆ deleteAllControlPointsOptionVisible()

bool qSlicerMarkupsPlaceWidget::deleteAllControlPointsOptionVisible ( ) const

Returns true if the Delete all option on the Delete button is visible.

◆ deleteAllMarkups()

void qSlicerMarkupsPlaceWidget::deleteAllMarkups ( )
inline
Deprecated:
Use deleteAllPoints instead.

Definition at line 203 of file qSlicerMarkupsPlaceWidget.h.

◆ deleteAllMarkupsOptionVisible()

bool qSlicerMarkupsPlaceWidget::deleteAllMarkupsOptionVisible ( ) const
inline
Deprecated:
Use deleteAllControlPointsOptionVisible instead.

Definition at line 127 of file qSlicerMarkupsPlaceWidget.h.

◆ deleteAllPoints

void qSlicerMarkupsPlaceWidget::deleteAllPoints ( )
slot

Delete all points from the markups node.

◆ deleteButton()

Q_INVOKABLE QToolButton* qSlicerMarkupsPlaceWidget::deleteButton ( ) const

◆ deleteLastMarkup

void qSlicerMarkupsPlaceWidget::deleteLastMarkup ( )
inlineslot
Deprecated:
Use deleteLastPoint instead.

Definition at line 197 of file qSlicerMarkupsPlaceWidget.h.

◆ deleteLastPoint

void qSlicerMarkupsPlaceWidget::deleteLastPoint ( )
slot

Delete last placed markup point.

◆ interactionNode()

Q_INVOKABLE vtkMRMLInteractionNode* qSlicerMarkupsPlaceWidget::interactionNode ( ) const

Get interaction node.

See also
setInteractionNode()

◆ modifyLastPoint

void qSlicerMarkupsPlaceWidget::modifyLastPoint ( )
slot

Delete or unset position of the last placed markup point. If the number of points is locked, the last point will be unset, otherwise it will be deleted

◆ nodeColor()

QColor qSlicerMarkupsPlaceWidget::nodeColor ( ) const

Get the selected color of the currently selected markups node.

◆ onColorButtonChanged

void qSlicerMarkupsPlaceWidget::onColorButtonChanged ( QColor  )
protectedslot

Update the currently selected markups node to have its selected color changed.

◆ onFixedNumberOfControlPointsButtonClicked

void qSlicerMarkupsPlaceWidget::onFixedNumberOfControlPointsButtonClicked ( )
protectedslot

Toggle whether the number of points in the current markups node is locked.

◆ onLockedButtonClicked

void qSlicerMarkupsPlaceWidget::onLockedButtonClicked ( )
protectedslot

Toggle whether the current markups node is locked.

◆ onPlacePersistentPoint

void qSlicerMarkupsPlaceWidget::onPlacePersistentPoint ( bool  enable)
protectedslot

◆ onVisibilityButtonClicked

void qSlicerMarkupsPlaceWidget::onVisibilityButtonClicked ( )
protectedslot

Toggle the visibility of the markups in the viewers.

◆ placeButton()

Q_INVOKABLE QToolButton* qSlicerMarkupsPlaceWidget::placeButton ( ) const

◆ placeModeEnabled()

bool qSlicerMarkupsPlaceWidget::placeModeEnabled ( ) const

Returns true if place mode enabled and current node is active.

◆ placeModePersistency()

bool qSlicerMarkupsPlaceWidget::placeModePersistency ( ) const

Returns true if placement mode is persistent, regardless if place mode is enabled or not.

◆ placeMultipleMarkups()

PlaceMultipleMarkupsType qSlicerMarkupsPlaceWidget::placeMultipleMarkups ( ) const

Returns markup placement multiplicity option.

◆ selectionNode()

Q_INVOKABLE vtkMRMLSelectionNode* qSlicerMarkupsPlaceWidget::selectionNode ( ) const

◆ setButtonsVisible

void qSlicerMarkupsPlaceWidget::setButtonsVisible ( bool  visible)
slot

Show/hide all buttons. Useful for showing/hiding all buttons except specific ones.

◆ setCurrentNode

void qSlicerMarkupsPlaceWidget::setCurrentNode ( vtkMRMLNode currentNode)
slot

Set the currently selected markups node.

◆ setCurrentNodeActive

void qSlicerMarkupsPlaceWidget::setCurrentNodeActive ( bool  active)
slot

Set the currently selected markups node to be the active markups node in the Slicer scene. Does not change place mode.

◆ setDefaultNodeColor

void qSlicerMarkupsPlaceWidget::setDefaultNodeColor ( QColor  color)
slot

◆ setDeleteAllControlPointsOptionVisible

void qSlicerMarkupsPlaceWidget::setDeleteAllControlPointsOptionVisible ( bool  visible)
slot

Set visibility of Delete all markups option.

◆ setDeleteAllMarkupsOptionVisible()

void qSlicerMarkupsPlaceWidget::setDeleteAllMarkupsOptionVisible ( bool  visible)
inline
Deprecated:
Use setDeleteAllControlPointsOptionVisible instead.

Definition at line 209 of file qSlicerMarkupsPlaceWidget.h.

◆ setInteractionNode

void qSlicerMarkupsPlaceWidget::setInteractionNode ( vtkMRMLInteractionNode interactionNode)
slot

Set interaction node used to update the widget.

See also
interactionNode()

◆ setMRMLScene

void qSlicerMarkupsPlaceWidget::setMRMLScene ( vtkMRMLScene scene)
overrideslot

◆ setNodeColor

void qSlicerMarkupsPlaceWidget::setNodeColor ( QColor  color)
slot

◆ setPlaceModeEnabled

void qSlicerMarkupsPlaceWidget::setPlaceModeEnabled ( bool  enable)
slot

Enable/disable place mode. If place mode is enabled then current markups node is set active, too.

◆ setPlaceModePersistency

void qSlicerMarkupsPlaceWidget::setPlaceModePersistency ( bool  )
slot

Set place mode to persistent (remains active until deactivated). Does not enable or disable placement mode.

◆ setPlaceMultipleMarkups

void qSlicerMarkupsPlaceWidget::setPlaceMultipleMarkups ( PlaceMultipleMarkupsType  option)
slot

Configures multiplicity of markups placement.

◆ setSelectionNode

void qSlicerMarkupsPlaceWidget::setSelectionNode ( vtkMRMLSelectionNode selectionNode)
slot

◆ setUnsetAllControlPointsOptionVisible

void qSlicerMarkupsPlaceWidget::setUnsetAllControlPointsOptionVisible ( bool  visible)
slot

Set visibility of Unset all control point option.

◆ setUnsetLastControlPointOptionVisible

void qSlicerMarkupsPlaceWidget::setUnsetLastControlPointOptionVisible ( bool  visible)
slot

Set visibility of Unset last control point option.

◆ setup()

virtual void qSlicerMarkupsPlaceWidget::setup ( )
protectedvirtual

◆ unsetAllControlPointsOptionVisible()

bool qSlicerMarkupsPlaceWidget::unsetAllControlPointsOptionVisible ( ) const

Returns true if the Unset all control points option on the Delete button is visible.

◆ unsetAllPoints

void qSlicerMarkupsPlaceWidget::unsetAllPoints ( )
slot

Unset the position of all points from the markups node.

◆ unsetLastControlPointOptionVisible()

bool qSlicerMarkupsPlaceWidget::unsetLastControlPointOptionVisible ( ) const

Returns true if the Unset last control point option on the Delete button is visible.

◆ unsetLastDefinedPoint

void qSlicerMarkupsPlaceWidget::unsetLastDefinedPoint ( )
slot

Unset the position status of the last placed markup point.

◆ updateDeleteButton

void qSlicerMarkupsPlaceWidget::updateDeleteButton ( )
protectedslot

Update the Delete Button to reflect the currently visible delete button options.

◆ updateWidget

void qSlicerMarkupsPlaceWidget::updateWidget ( )
protectedslot

Update the GUI to reflect the currently selected markups node.

Member Data Documentation

◆ d_ptr

QScopedPointer<qSlicerMarkupsPlaceWidgetPrivate> qSlicerMarkupsPlaceWidget::d_ptr
protected

Definition at line 245 of file qSlicerMarkupsPlaceWidget.h.


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