21 #ifndef __qSlicerMarkupsPlaceWidget_h 22 #define __qSlicerMarkupsPlaceWidget_h 30 #include "qSlicerMarkupsModuleWidgetsExport.h" 31 #include "ui_qSlicerMarkupsPlaceWidget.h" 34 class qSlicerMarkupsPlaceWidgetPrivate;
40 class Q_SLICER_MODULE_MARKUPS_WIDGETS_EXPORT
45 Q_PROPERTY(
bool buttonsVisible READ buttonsVisible WRITE setButtonsVisible)
46 Q_PROPERTY(
bool deleteAllMarkupsOptionVisible READ deleteAllMarkupsOptionVisible WRITE setDeleteAllMarkupsOptionVisible)
48 Q_PROPERTY(QColor nodeColor READ nodeColor WRITE setNodeColor)
49 Q_PROPERTY(QColor defaultNodeColor READ defaultNodeColor WRITE setDefaultNodeColor)
50 Q_PROPERTY(
bool currentNodeActive READ currentNodeActive WRITE setCurrentNodeActive)
51 Q_PROPERTY(
bool placeModeEnabled READ placeModeEnabled WRITE setPlaceModeEnabled)
52 Q_PROPERTY(
bool placeModePersistency READ placeModePersistency WRITE setPlaceModePersistency)
64 ForcePlaceMultipleMarkups
77 bool currentNodeActive()
const;
80 bool placeModeEnabled()
const;
83 bool placeModePersistency()
const;
86 PlaceMultipleMarkupsType placeMultipleMarkups()
const;
89 bool buttonsVisible()
const;
92 bool deleteAllMarkupsOptionVisible()
const;
95 QColor nodeColor()
const;
98 QColor defaultNodeColor()
const;
100 Q_INVOKABLE QToolButton* placeButton()
const;
102 Q_INVOKABLE QToolButton* deleteButton()
const;
112 void setCurrentNodeActive(
bool active);
118 void setDefaultNodeColor(QColor color);
120 void setNodeColor(QColor color);
123 void setPlaceModeEnabled(
bool enable);
126 void setPlaceMultipleMarkups(PlaceMultipleMarkupsType option);
129 void setButtonsVisible(
bool visible);
132 void setDeleteAllMarkupsOptionVisible(
bool visible);
135 void setPlaceModePersistency(
bool);
138 void deleteLastPoint();
141 void deleteAllPoints();
144 void deleteLastMarkup();
147 void deleteAllMarkups();
155 void onColorButtonChanged(QColor);
157 void onVisibilityButtonClicked();
159 void onLockedButtonClicked();
161 void onPlacePersistent(
bool enable);
168 void activeMarkupsPlaceModeChanged(
bool enabled);
171 void activeMarkupsFiducialPlaceModeChanged(
bool enabled);
174 QScopedPointer<qSlicerMarkupsPlaceWidgetPrivate>
d_ptr;
176 virtual void setup();
MRML node to represent a fiducial markup Fiducial Markups nodes contain a list of control points...
A set of MRML Nodes that supports serialization and undo/redo.
Abstract Superclass for all specific types of MRML nodes.