21 #ifndef __qSlicerMarkupsPlaceWidget_h 22 #define __qSlicerMarkupsPlaceWidget_h 30 #include "qSlicerMarkupsModuleWidgetsExport.h" 31 #include "ui_qSlicerMarkupsPlaceWidget.h" 34 class qSlicerMarkupsPlaceWidgetPrivate;
41 class Q_SLICER_MODULE_MARKUPS_WIDGETS_EXPORT
46 Q_PROPERTY(
bool buttonsVisible READ buttonsVisible WRITE setButtonsVisible)
47 Q_PROPERTY(
bool deleteAllControlPointsOptionVisible READ deleteAllControlPointsOptionVisible WRITE setDeleteAllControlPointsOptionVisible)
48 Q_PROPERTY(
bool unsetLastControlPointOptionVisible READ unsetLastControlPointOptionVisible WRITE setUnsetLastControlPointOptionVisible)
49 Q_PROPERTY(
bool unsetAllControlPointsOptionVisible READ unsetAllControlPointsOptionVisible WRITE setUnsetAllControlPointsOptionVisible)
51 Q_PROPERTY(QColor nodeColor READ nodeColor WRITE setNodeColor)
52 Q_PROPERTY(QColor defaultNodeColor READ defaultNodeColor WRITE setDefaultNodeColor)
53 Q_PROPERTY(
bool currentNodeActive READ currentNodeActive WRITE setCurrentNodeActive)
54 Q_PROPERTY(
bool placeModeEnabled READ placeModeEnabled WRITE setPlaceModeEnabled)
55 Q_PROPERTY(
bool placeModePersistency READ placeModePersistency WRITE setPlaceModePersistency)
58 Q_PROPERTY(
bool deleteAllMarkupsOptionVisible READ deleteAllMarkupsOptionVisible WRITE setDeleteAllMarkupsOptionVisible)
70 ForcePlaceMultipleMarkups
84 bool currentNodeActive()
const;
87 bool placeModeEnabled()
const;
90 bool placeModePersistency()
const;
93 PlaceMultipleMarkupsType placeMultipleMarkups()
const;
96 bool buttonsVisible()
const;
99 bool deleteAllControlPointsOptionVisible()
const;
102 bool unsetLastControlPointOptionVisible()
const;
105 bool unsetAllControlPointsOptionVisible()
const;
108 QColor nodeColor()
const;
111 QColor defaultNodeColor()
const;
114 bool currentMarkupPointPlacementValid();
116 Q_INVOKABLE QToolButton* placeButton()
const;
119 Q_INVOKABLE QToolButton* deleteButton()
const;
129 qWarning(
"qSlicerMarkupsPlaceWidget::deleteAllMarkupsOptionVisible method is deprecated, please use deleteAllControlPointsOptionVisible instead");
130 return this->deleteAllControlPointsOptionVisible();
142 void setCurrentNodeActive(
bool active);
149 void setDefaultNodeColor(QColor color);
151 void setNodeColor(QColor color);
154 void setPlaceModeEnabled(
bool enable);
157 void setPlaceMultipleMarkups(PlaceMultipleMarkupsType option);
160 void setButtonsVisible(
bool visible);
163 void setDeleteAllControlPointsOptionVisible(
bool visible);
166 void setUnsetLastControlPointOptionVisible(
bool visible);
169 void setUnsetAllControlPointsOptionVisible(
bool visible);
172 void setPlaceModePersistency(
bool);
177 void modifyLastPoint();
180 void deleteLastPoint();
183 void deleteAllPoints();
186 void unsetLastDefinedPoint();
189 void unsetAllPoints();
199 qWarning(
"qSlicerMarkupsPlaceWidget::deleteLastMarkup method is deprecated, please use deleteLastPoint instead");
200 this->deleteLastPoint();
205 qWarning(
"qSlicerMarkupsPlaceWidget::deleteAllMarkups method is deprecated, please use deleteAllPoints instead");
206 this->deleteAllPoints();
211 qWarning(
"qSlicerMarkupsPlaceWidget::setDeleteAllMarkupsOptionVisible method is deprecated, please use setDeleteAllControlPointsOptionVisible instead");
212 this->setDeleteAllControlPointsOptionVisible(visible);
221 void updateDeleteButton();
224 void onColorButtonChanged(QColor);
226 void onVisibilityButtonClicked();
228 void onLockedButtonClicked();
230 void onFixedNumberOfControlPointsButtonClicked();
232 void onPlacePersistentPoint(
bool enable);
239 void activeMarkupsPlaceModeChanged(
bool enabled);
242 void activeMarkupsFiducialPlaceModeChanged(
bool enabled);
245 QScopedPointer<qSlicerMarkupsPlaceWidgetPrivate>
d_ptr;
247 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.
MRML node for storing information about the active nodes in the scene.