21 #ifndef __qSlicerMarkupsPlaceWidget_h 22 #define __qSlicerMarkupsPlaceWidget_h 30 #include "qSlicerMarkupsModuleWidgetsExport.h" 31 #include "ui_qSlicerMarkupsPlaceWidget.h" 34 class qSlicerMarkupsPlaceWidgetPrivate;
39 class Q_SLICER_MODULE_MARKUPS_WIDGETS_EXPORT
44 Q_PROPERTY(
bool buttonsVisible READ buttonsVisible WRITE setButtonsVisible)
45 Q_PROPERTY(
bool deleteAllMarkupsOptionVisible READ deleteAllMarkupsOptionVisible WRITE setDeleteAllMarkupsOptionVisible)
47 Q_PROPERTY(QColor nodeColor READ nodeColor WRITE setNodeColor)
48 Q_PROPERTY(QColor defaultNodeColor READ defaultNodeColor WRITE setDefaultNodeColor)
49 Q_PROPERTY(
bool currentNodeActive READ currentNodeActive WRITE setCurrentNodeActive)
50 Q_PROPERTY(
bool placeModeEnabled READ placeModeEnabled WRITE setPlaceModeEnabled)
51 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 deleteLastMarkup();
141 void deleteAllMarkups();
149 void onColorButtonChanged(QColor);
151 void onVisibilityButtonClicked();
153 void onLockedButtonClicked();
155 void onPlacePersistent(
bool enable);
162 void activeMarkupsFiducialPlaceModeChanged(
bool enabled);
165 QScopedPointer<qSlicerMarkupsPlaceWidgetPrivate>
d_ptr;
167 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.