18 #ifndef __qSlicerMarkupsModuleWidget_h 19 #define __qSlicerMarkupsModuleWidget_h 24 #include "qSlicerMarkupsModuleExport.h" 28 class QTableWidgetItem;
30 class qSlicerMarkupsModuleWidgetPrivate;
54 void installShortcuts();
55 void removeShortcuts();
63 void updateWidgetFromMRML();
67 void updateWidgetFromDisplayNode();
73 void updateMaximumScaleFromVolumes();
76 void updateRow(
int m);
86 void updateLogicFromSettings();
90 bool sliceIntersectionsVisible();
99 void onNodeAddedEvent(vtkObject* scene, vtkObject* node);
103 void onNodeRemovedEvent(vtkObject* scene, vtkObject* node);
105 void onMRMLSceneEndImportEvent();
107 void onMRMLSceneEndRestoreEvent();
110 void onMRMLSceneEndBatchProcessEvent();
112 void onMRMLSceneEndCloseEvent();
114 void onPKeyActivated();
119 void checkForAnnotationFiducialConversion();
122 void convertAnnotationFiducialsToMarkups();
125 void onSelectedColorPickerButtonChanged(QColor qcolor);
126 void onUnselectedColorPickerButtonChanged(QColor qcolor);
127 void onGlyphTypeComboBoxChanged(QString value);
128 void onGlyphScaleSliderWidgetChanged(
double value);
129 void onTextScaleSliderWidgetChanged(
double value);
130 void onOpacitySliderWidgetChanged(
double value);
132 void onMarkupScaleSliderWidgetValueChanged(
double value);
135 void onResetToDefaultDisplayPropertiesPushButtonClicked();
136 void onSaveToDefaultDisplayPropertiesPushButtonClicked();
139 void onVisibilityOnAllMarkupsInListPushButtonClicked();
140 void onVisibilityOffAllMarkupsInListPushButtonClicked();
141 void onVisibilityAllMarkupsInListToggled();
142 void onLockAllMarkupsInListPushButtonClicked();
143 void onUnlockAllMarkupsInListPushButtonClicked();
144 void onLockAllMarkupsInListToggled();
145 void onSelectAllMarkupsInListPushButtonClicked();
146 void onDeselectAllMarkupsInListPushButtonClicked();
147 void onSelectedAllMarkupsInListToggled();
148 void onAddMarkupPushButtonClicked();
149 void onMoveMarkupUpPushButtonClicked();
150 void onMoveMarkupDownPushButtonClicked();
151 void onDeleteMarkupPushButtonClicked();
152 void onDeleteAllMarkupsInListPushButtonClicked();
155 void onActiveMarkupMRMLNodeChanged(
vtkMRMLNode *markupsNode);
157 void onSelectionNodeActivePlaceNodeIDChanged();
161 void onActiveMarkupMRMLNodeAdded(
vtkMRMLNode *markupsNode);
164 void onListVisibileInvisiblePushButtonClicked();
166 void updateListVisibileInvisiblePushButton(
int visibleFlag);
169 void onListLockedUnlockedPushButtonClicked();
172 void onNameFormatLineEditTextEdited(
const QString text);
175 void onResetNameFormatToDefaultPushButtonClicked();
180 void onRenameAllWithCurrentNameFormatPushButtonClicked();
183 void onActiveMarkupTableCellChanged(
int row,
int column);
185 void onActiveMarkupTableCellClicked(QTableWidgetItem* item);
187 void onActiveMarkupTableCurrentCellChanged(
int currentRow,
int currentColumn,
188 int previousRow,
int previousColumn);
190 void onRightClickActiveMarkupTableWidget(QPoint pos);
192 void addSelectedCoordinatesToMenu(QMenu *menu);
194 void onJumpSlicesActionTriggered();
196 void onRefocusCamerasActionTriggered();
201 QStringList getOtherMarkupNames(
vtkMRMLNode *thisMarkup);
203 void onCopyToOtherListActionTriggered();
205 void onMoveToOtherListActionTriggered();
207 void copySelectedToNamedList(QString listName);
211 void moveSelectedToNamedList(QString listName);
214 void onActiveMarkupsNodeLockModifiedEvent();
216 void onActiveMarkupsNodeLabelFormatModifiedEvent();
219 void onActiveMarkupsNodePointModifiedEvent(vtkObject *caller, vtkObject *callData);
221 void onActiveMarkupsNodeMarkupAddedEvent(vtkObject *caller, vtkObject *callData);
223 void onActiveMarkupsNodeMarkupRemovedEvent();
225 void onActiveMarkupsNodeNthMarkupModifiedEvent(vtkObject *caller, vtkObject *callData);
227 void onActiveMarkupsNodeDisplayModifiedEvent();
229 void onActiveMarkupsNodeTransformModifiedEvent();
233 void onNewMarkupWithCurrentDisplayPropertiesTriggered();
238 void onSliceIntersectionsVisibilityToggled(
bool checked);
241 void onHideCoordinateColumnsToggled(
bool checked);
244 void onTransformedCoordinatesToggled(
bool checked);
247 QScopedPointer<qSlicerMarkupsModuleWidgetPrivate>
d_ptr;
249 virtual void setup();
260 QShortcut *pToAddShortcut;
MRML node to represent a list of markups Markups nodes contains a list of markups that each contain a...
Abstract Superclass for all specific types of MRML nodes.