21 #ifndef __qSlicerSimpleMarkupsWidget_h 22 #define __qSlicerSimpleMarkupsWidget_h 30 #include "qSlicerMarkupsModuleWidgetsExport.h" 31 #include "ui_qSlicerSimpleMarkupsWidget.h" 34 class qSlicerSimpleMarkupsWidgetPrivate;
37 class Q_SLICER_MODULE_MARKUPS_WIDGETS_EXPORT
41 Q_PROPERTY(
bool enterPlaceModeOnNodeChange READ enterPlaceModeOnNodeChange WRITE setEnterPlaceModeOnNodeChange)
42 Q_PROPERTY(
bool jumpToSliceEnabled READ jumpToSliceEnabled WRITE setJumpToSliceEnabled)
43 Q_PROPERTY(
bool nodeSelectorVisible READ nodeSelectorVisible WRITE setNodeSelectorVisible)
44 Q_PROPERTY(
bool optionsVisible READ optionsVisible WRITE setOptionsVisible)
45 Q_PROPERTY(QColor nodeColor READ nodeColor WRITE setNodeColor)
46 Q_PROPERTY(QColor defaultNodeColor READ defaultNodeColor WRITE setDefaultNodeColor)
47 Q_PROPERTY(
int viewGroup READ viewGroup WRITE setViewGroup)
61 Q_INVOKABLE QTableWidget* tableWidget() const;
70 bool enterPlaceModeOnNodeChange() const;
74 bool jumpToSliceEnabled() const;
77 bool nodeSelectorVisible() const;
80 bool optionsVisible() const;
83 QColor nodeColor() const;
86 QColor defaultNodeColor() const;
90 void setViewGroup(
int newViewGroup);
103 void setNodeBaseName(QString newNodeBaseName);
106 void setEnterPlaceModeOnNodeChange(
bool);
109 void setJumpToSliceEnabled(
bool);
112 void setNodeSelectorVisible(
bool);
115 void setOptionsVisible(
bool);
118 void setNodeColor(QColor color);
121 void setDefaultNodeColor(QColor color);
124 void highlightNthFiducial(
int n);
130 void placeActive(
bool place);
135 void onMarkupsFiducialNodeChanged();
139 void onMarkupsFiducialTableContextMenu(const QPoint& position);
142 void onMarkupsFiducialEdited(
int row,
int column);
145 void onMarkupsFiducialSelected(
int row,
int column);
153 void markupsFiducialNodeChanged();
157 void currentMarkupsFiducialSelectionChanged(
int markupIndex);
162 void activeMarkupsFiducialPlaceModeChanged(
bool enabled);
166 void updateFinished();
169 QScopedPointer<qSlicerSimpleMarkupsWidgetPrivate> d_ptr;
171 virtual
void setup();
174 Q_DECLARE_PRIVATE(qSlicerSimpleMarkupsWidget);
175 Q_DISABLE_COPY(qSlicerSimpleMarkupsWidget);
A set of MRML Nodes that supports serialization and undo/redo.
Combobox that automatically displays all the nodes of the scene that match filtering criteria...
Abstract Superclass for all specific types of MRML nodes.