Slicer
5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
#include <Modules/Loadable/Markups/Widgets/qSlicerMarkupsPlaceWidget.h>
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 vtkMRMLMarkupsFiducialNode * | currentMarkupsFiducialNode () const |
Q_INVOKABLE vtkMRMLMarkupsNode * | currentMarkupsNode () const |
Q_INVOKABLE vtkMRMLNode * | currentNode () 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 vtkMRMLInteractionNode * | interactionNode () 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 vtkMRMLSelectionNode * | selectionNode () 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 | |
vtkSlicerApplicationLogic * | appLogic () const |
vtkMRMLAbstractLogic * | moduleLogic (const QString &moduleName) const |
qSlicerWidget (QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags()) | |
~qSlicerWidget () override | |
Public Member Functions inherited from qSlicerObject | |
vtkMRMLScene * | mrmlScene () 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 |
Definition at line 41 of file qSlicerMarkupsPlaceWidget.h.
Definition at line 61 of file qSlicerMarkupsPlaceWidget.h.
Enumerator | |
---|---|
ShowPlaceMultipleMarkupsOption | |
HidePlaceMultipleMarkupsOption | |
ForcePlaceSingleMarkup | |
ForcePlaceMultipleMarkups |
Definition at line 65 of file qSlicerMarkupsPlaceWidget.h.
|
readwrite |
Definition at line 46 of file qSlicerMarkupsPlaceWidget.h.
|
readwrite |
Definition at line 53 of file qSlicerMarkupsPlaceWidget.h.
|
readwrite |
Definition at line 52 of file qSlicerMarkupsPlaceWidget.h.
|
readwrite |
Definition at line 47 of file qSlicerMarkupsPlaceWidget.h.
|
readwrite |
Definition at line 58 of file qSlicerMarkupsPlaceWidget.h.
|
readwrite |
Definition at line 51 of file qSlicerMarkupsPlaceWidget.h.
|
readwrite |
Definition at line 54 of file qSlicerMarkupsPlaceWidget.h.
|
readwrite |
Definition at line 55 of file qSlicerMarkupsPlaceWidget.h.
|
readwrite |
Definition at line 50 of file qSlicerMarkupsPlaceWidget.h.
|
readwrite |
Definition at line 49 of file qSlicerMarkupsPlaceWidget.h.
|
readwrite |
Definition at line 48 of file qSlicerMarkupsPlaceWidget.h.
qSlicerMarkupsPlaceWidget::qSlicerMarkupsPlaceWidget | ( | QWidget * | parent = nullptr | ) |
|
override |
|
signal |
|
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.
bool qSlicerMarkupsPlaceWidget::buttonsVisible | ( | ) | const |
Returns true if all buttons are visible.
bool qSlicerMarkupsPlaceWidget::currentMarkupPointPlacementValid | ( | ) |
Q_INVOKABLE vtkMRMLMarkupsFiducialNode* qSlicerMarkupsPlaceWidget::currentMarkupsFiducialNode | ( | ) | const |
Q_INVOKABLE vtkMRMLMarkupsNode* qSlicerMarkupsPlaceWidget::currentMarkupsNode | ( | ) | const |
Q_INVOKABLE vtkMRMLNode* qSlicerMarkupsPlaceWidget::currentNode | ( | ) | const |
Get the currently selected markups node.
bool qSlicerMarkupsPlaceWidget::currentNodeActive | ( | ) | const |
Returns true if the current markups node is the active markups node in the scene.
QColor qSlicerMarkupsPlaceWidget::defaultNodeColor | ( | ) | const |
Get the default node color that is shown when no node is selected.
bool qSlicerMarkupsPlaceWidget::deleteAllControlPointsOptionVisible | ( | ) | const |
Returns true if the Delete all option on the Delete button is visible.
|
inline |
Definition at line 203 of file qSlicerMarkupsPlaceWidget.h.
|
inline |
Definition at line 127 of file qSlicerMarkupsPlaceWidget.h.
|
slot |
Delete all points from the markups node.
Q_INVOKABLE QToolButton* qSlicerMarkupsPlaceWidget::deleteButton | ( | ) | const |
|
inlineslot |
Definition at line 197 of file qSlicerMarkupsPlaceWidget.h.
|
slot |
Delete last placed markup point.
Q_INVOKABLE vtkMRMLInteractionNode* qSlicerMarkupsPlaceWidget::interactionNode | ( | ) | const |
Get interaction node.
|
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
QColor qSlicerMarkupsPlaceWidget::nodeColor | ( | ) | const |
Get the selected color of the currently selected markups node.
|
protectedslot |
Update the currently selected markups node to have its selected color changed.
|
protectedslot |
Toggle whether the number of points in the current markups node is locked.
|
protectedslot |
Toggle whether the current markups node is locked.
|
protectedslot |
|
protectedslot |
Toggle the visibility of the markups in the viewers.
Q_INVOKABLE QToolButton* qSlicerMarkupsPlaceWidget::placeButton | ( | ) | const |
bool qSlicerMarkupsPlaceWidget::placeModeEnabled | ( | ) | const |
Returns true if place mode enabled and current node is active.
bool qSlicerMarkupsPlaceWidget::placeModePersistency | ( | ) | const |
Returns true if placement mode is persistent, regardless if place mode is enabled or not.
PlaceMultipleMarkupsType qSlicerMarkupsPlaceWidget::placeMultipleMarkups | ( | ) | const |
Returns markup placement multiplicity option.
Q_INVOKABLE vtkMRMLSelectionNode* qSlicerMarkupsPlaceWidget::selectionNode | ( | ) | const |
|
slot |
Show/hide all buttons. Useful for showing/hiding all buttons except specific ones.
|
slot |
Set the currently selected markups node.
|
slot |
Set the currently selected markups node to be the active markups node in the Slicer scene. Does not change place mode.
|
slot |
|
slot |
Set visibility of Delete all markups option.
|
inline |
Definition at line 209 of file qSlicerMarkupsPlaceWidget.h.
|
slot |
Set interaction node used to update the widget.
|
overrideslot |
|
slot |
|
slot |
Enable/disable place mode. If place mode is enabled then current markups node is set active, too.
|
slot |
Set place mode to persistent (remains active until deactivated). Does not enable or disable placement mode.
|
slot |
Configures multiplicity of markups placement.
|
slot |
|
slot |
Set visibility of Unset all control point option.
|
slot |
Set visibility of Unset last control point option.
|
protectedvirtual |
bool qSlicerMarkupsPlaceWidget::unsetAllControlPointsOptionVisible | ( | ) | const |
Returns true if the Unset all control points option on the Delete button is visible.
|
slot |
Unset the position of all points from the markups node.
bool qSlicerMarkupsPlaceWidget::unsetLastControlPointOptionVisible | ( | ) | const |
Returns true if the Unset last control point option on the Delete button is visible.
|
slot |
Unset the position status of the last placed markup point.
|
protectedslot |
Update the Delete Button to reflect the currently visible delete button options.
|
protectedslot |
Update the GUI to reflect the currently selected markups node.
|
protected |
Definition at line 245 of file qSlicerMarkupsPlaceWidget.h.