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)
65 Q_INVOKABLE QTableWidget* tableWidget() const;
74 bool enterPlaceModeOnNodeChange() const;
78 bool jumpToSliceEnabled() const;
81 bool nodeSelectorVisible() const;
84 bool optionsVisible() const;
87 QColor nodeColor() const;
90 QColor defaultNodeColor() const;
94 void setViewGroup(
int newViewGroup);
107 void setNodeBaseName(QString newNodeBaseName);
114 void setEnterPlaceModeOnNodeChange(
bool);
117 void setJumpToSliceEnabled(
bool);
120 void setNodeSelectorVisible(
bool);
123 void setOptionsVisible(
bool);
126 void setNodeColor(QColor color);
129 void setDefaultNodeColor(QColor color);
132 void highlightNthControlPoint(
int n);
135 void highlightNthFiducial(
int n);
141 void placeActive(
bool place);
146 void onMarkupsNodeChanged();
150 void onMarkupsControlPointsTableContextMenu(const QPoint& position);
153 void onMarkupsControlPointEdited(
int row,
int column);
156 void onMarkupsControlPointSelected(
int row,
int column);
167 void markupsNodeChanged();
170 void markupsFiducialNodeChanged();
174 void currentMarkupsControlPointSelectionChanged(
int markupIndex);
177 void currentMarkupsFiducialSelectionChanged(
int markupIndex);
182 void activeMarkupsPlaceModeChanged(
bool enabled);
185 void activeMarkupsFiducialPlaceModeChanged(
bool enabled);
189 void updateFinished();
192 QScopedPointer<qSlicerSimpleMarkupsWidgetPrivate> d_ptr;
194 virtual
void setup();
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.