21 #ifndef __qSlicerMarkupsPlaceWidget_h 22 #define __qSlicerMarkupsPlaceWidget_h 30 #include "qSlicerMarkupsModuleWidgetsExport.h" 31 #include "ui_qSlicerMarkupsPlaceWidget.h" 34 class qSlicerMarkupsPlaceWidgetPrivate;
38 class Q_SLICER_MODULE_MARKUPS_WIDGETS_EXPORT
43 Q_PROPERTY(
bool buttonsVisible READ buttonsVisible WRITE setButtonsVisible)
44 Q_PROPERTY(
bool deleteAllMarkupsOptionVisible READ deleteAllMarkupsOptionVisible WRITE setDeleteAllMarkupsOptionVisible)
46 Q_PROPERTY(QColor nodeColor READ nodeColor WRITE setNodeColor)
47 Q_PROPERTY(QColor defaultNodeColor READ defaultNodeColor WRITE setDefaultNodeColor)
48 Q_PROPERTY(
bool currentNodeActive READ currentNodeActive WRITE setCurrentNodeActive)
49 Q_PROPERTY(
bool placeModeEnabled READ placeModeEnabled WRITE setPlaceModeEnabled)
50 Q_PROPERTY(
bool placeModePersistency READ placeModePersistency WRITE setPlaceModePersistency)
63 ForcePlaceMultipleMarkups
72 bool currentNodeActive()
const;
75 bool placeModeEnabled()
const;
78 bool placeModePersistency()
const;
84 bool buttonsVisible()
const;
87 bool deleteAllMarkupsOptionVisible()
const;
90 QColor nodeColor()
const;
93 QColor defaultNodeColor()
const;
95 Q_INVOKABLE QToolButton* placeButton()
const;
97 Q_INVOKABLE QToolButton* deleteButton()
const;
107 void setCurrentNodeActive(
bool active);
109 void setDefaultNodeColor(QColor color);
111 void setNodeColor(QColor color);
114 void setPlaceModeEnabled(
bool enable);
120 void setButtonsVisible(
bool visible);
123 void setDeleteAllMarkupsOptionVisible(
bool visible);
126 void setPlaceModePersistency(
bool);
129 void deleteLastMarkup();
132 void deleteAllMarkups();
140 void onColorButtonChanged(QColor);
142 void onVisibilityButtonClicked();
144 void onLockedButtonClicked();
146 void onPlacePersistent(
bool enable);
153 void activeMarkupsFiducialPlaceModeChanged(
bool enabled);
156 QScopedPointer<qSlicerMarkupsPlaceWidgetPrivate>
d_ptr;
158 virtual void setup();
MRML node to represent a fiducial markup Fiducial Markups nodes contain a list of fiducial points...
A set of MRML Nodes that supports serialization and undo/redo.
Abstract Superclass for all specific types of MRML nodes.