18 #ifndef __qSlicerMarkupsModuleWidget_h 19 #define __qSlicerMarkupsModuleWidget_h 25 #include "qSlicerMarkupsModuleExport.h" 31 class QTableWidgetItem;
33 class qMRMLMarkupsOptionsWidget;
34 class qSlicerMarkupsModuleWidgetPrivate;
53 void enter()
override;
63 void updateWidgetFromMRML();
67 void updateWidgetFromDisplayNode();
73 void updateMaximumScaleFromVolumes();
75 void updateRow(
int m);
87 void updateLogicFromSettings();
91 bool sliceIntersectionsVisible();
94 void setCreateMarkupsButtonsColumns(
unsigned int columns);
100 QStringList& associatedMarkups();
111 void onNodeAddedEvent(vtkObject* scene, vtkObject* node);
115 void onNodeRemovedEvent(vtkObject* scene, vtkObject* node);
117 void onMRMLSceneEndImportEvent();
119 void onMRMLSceneEndRestoreEvent();
122 void onMRMLSceneEndBatchProcessEvent();
124 void onMRMLSceneEndCloseEvent();
126 void onPKeyActivated();
131 void checkForAnnotationFiducialConversion();
134 void convertAnnotationFiducialsToMarkups();
137 void onResetToDefaultDisplayPropertiesPushButtonClicked();
138 void onSaveToDefaultDisplayPropertiesPushButtonClicked();
141 void onVisibilityOnAllControlPointsInListPushButtonClicked();
142 void onVisibilityOffAllControlPointsInListPushButtonClicked();
143 void onVisibilityAllControlPointsInListToggled();
144 void onLockAllControlPointsInListPushButtonClicked();
145 void onUnlockAllControlPointsInListPushButtonClicked();
146 void onLockAllControlPointsInListToggled();
147 void onSelectAllControlPointsInListPushButtonClicked();
148 void onDeselectAllControlPointsInListPushButtonClicked();
149 void onSelectedAllControlPointsInListToggled();
150 void onAddControlPointPushButtonClicked();
151 void onMoveControlPointUpPushButtonClicked();
152 void onMoveControlPointDownPushButtonClicked();
153 void onRestoreControlPointPushButtonClicked();
154 void onResetControlPointPushButtonClicked();
155 void onUnsetControlPointPushButtonClicked();
156 void onMissingControlPointPushButtonClicked();
157 void onDeleteControlPointPushButtonClicked(
bool confirm=
true);
158 void onDeleteAllControlPointsInListPushButtonClicked();
161 void onActiveMarkupItemChanged(vtkIdType);
162 void onActiveMarkupMRMLNodeChanged(
vtkMRMLNode *markupsNode);
164 void onSelectionNodeActivePlaceNodeIDChanged();
168 void onActiveMarkupMRMLNodeAdded(
vtkMRMLNode *markupsNode);
171 void onCreateMarkupByClass(
const QString& className);
174 void onListVisibileInvisiblePushButtonClicked();
177 void onListLockedUnlockedPushButtonClicked();
180 void onFixedNumberOfControlPointsPushButtonClicked();
183 void onNameFormatLineEditTextEdited(
const QString text);
186 void onResetNameFormatToDefaultPushButtonClicked();
191 void onRenameAllWithCurrentNameFormatPushButtonClicked();
194 void onActiveMarkupTableCellChanged(
int row,
int column);
196 void onActiveMarkupTableCellClicked(QTableWidgetItem* item);
198 void onActiveMarkupTableCurrentCellChanged(
int currentRow,
int currentColumn,
199 int previousRow,
int previousColumn);
201 void onRightClickActiveMarkupTableWidget(QPoint pos);
203 void addSelectedCoordinatesToMenu(QMenu *menu);
205 void onJumpSlicesActionTriggered();
207 void onRefocusCamerasActionTriggered();
212 QStringList getOtherMarkupNames(
vtkMRMLNode *thisMarkup);
214 void cutSelectedToClipboard();
215 void copySelectedToClipboard();
216 void pasteSelectedFromClipboard();
219 void onActiveMarkupsNodeModifiedEvent();
221 void onActiveMarkupsNodePointModifiedEvent(vtkObject *caller,
void *callData);
223 void onActiveMarkupsNodePointAddedEvent();
225 void onActiveMarkupsNodePointRemovedEvent(vtkObject *caller,
void *callData);
227 void onActiveMarkupsNodeDisplayModifiedEvent();
229 void onActiveMarkupsNodeTransformModifiedEvent();
233 void onNewMarkupWithCurrentDisplayPropertiesTriggered();
238 void onSliceIntersectionsVisibilityToggled(
bool checked);
241 void onHideCoordinateColumnsToggled(
int index);
244 void onTransformedCoordinatesToggled(
bool checked);
247 void observeMeasurementsInCurrentMarkupsNode();
249 void updateMeasurementsDescriptionLabel();
251 void populateMeasurementSettingsTable();
253 void onMeasurementsCollectionModified();
255 void onMeasurementModified(vtkObject* caller);
257 void onMeasurementEnabledCheckboxToggled(
bool on);
260 void onCreateMarkupsPushButtons();
263 void onUpdateMarkupsOptionsWidgets();
266 void enableMarkupTableButtons(
bool enable);
268 void updateImportExportWidgets();
269 void onImportExportApply();
272 void onColorLegendCollapsibleGroupBoxToggled(
bool);
282 qWarning(
"qSlicerMarkupsModuleWidget::onVisibilityOnAllMarkupsInListPushButtonClicked method is deprecated, please use onVisibilityOnAllControlPointsInListPushButtonClicked instead");
283 this->onVisibilityOnAllControlPointsInListPushButtonClicked();
288 qWarning(
"qSlicerMarkupsModuleWidget::onVisibilityOffAllMarkupsInListPushButtonClicked method is deprecated, please use onVisibilityOffAllControlPointsInListPushButtonClicked instead");
289 this->onVisibilityOffAllControlPointsInListPushButtonClicked();
294 qWarning(
"qSlicerMarkupsModuleWidget::onVisibilityAllMarkupsInListToggled method is deprecated, please use onVisibilityAllControlPointsInListToggled instead");
295 this->onVisibilityAllControlPointsInListToggled();
300 qWarning(
"qSlicerMarkupsModuleWidget::onLockAllMarkupsInListPushButtonClicked method is deprecated, please use onLockAllControlPointsInListPushButtonClicked instead");
301 this->onLockAllControlPointsInListPushButtonClicked();
306 qWarning(
"qSlicerMarkupsModuleWidget::onUnlockAllMarkupsInListPushButtonClicked method is deprecated, please use onUnlockAllControlPointsInListPushButtonClicked instead");
307 this->onUnlockAllControlPointsInListPushButtonClicked();
312 qWarning(
"qSlicerMarkupsModuleWidget::onLockAllMarkupsInListToggled method is deprecated, please use onLockAllControlPointsInListToggled instead");
313 this->onLockAllControlPointsInListToggled();
318 qWarning(
"qSlicerMarkupsModuleWidget::onSelectAllMarkupsInListPushButtonClicked method is deprecated, please use onSelectAllControlPointsInListPushButtonClicked instead");
319 this->onSelectAllControlPointsInListPushButtonClicked();
324 qWarning(
"qSlicerMarkupsModuleWidget::onDeselectAllMarkupsInListPushButtonClicked method is deprecated, please use onDeselectAllControlPointsInListPushButtonClicked instead");
325 this->onDeselectAllControlPointsInListPushButtonClicked();
330 qWarning(
"qSlicerMarkupsModuleWidget::onSelectedAllMarkupsInListToggled method is deprecated, please use onSelectedAllControlPointsInListToggled instead");
331 this->onSelectedAllControlPointsInListToggled();
336 qWarning(
"qSlicerMarkupsModuleWidget::onAddMarkupPushButtonClicked method is deprecated, please use onAddControlPointPushButtonClicked instead");
337 this->onAddControlPointPushButtonClicked();
342 qWarning(
"qSlicerMarkupsModuleWidget::onMoveMarkupUpPushButtonClicked method is deprecated, please use onMoveControlPointUpPushButtonClicked instead");
343 this->onMoveControlPointUpPushButtonClicked();
348 qWarning(
"qSlicerMarkupsModuleWidget::onMoveMarkupDownPushButtonClicked method is deprecated, please use onMoveControlPointDownPushButtonClicked instead");
349 this->onMoveControlPointDownPushButtonClicked();
354 qWarning(
"qSlicerMarkupsModuleWidget::onRestoreMarkupPushButtonClicked method is deprecated, please use onRestoreControlPointPushButtonClicked instead");
355 this->onRestoreControlPointPushButtonClicked();
360 qWarning(
"qSlicerMarkupsModuleWidget::onResetMarkupPushButtonClicked method is deprecated, please use onResetControlPointPushButtonClicked instead");
361 this->onResetControlPointPushButtonClicked();
366 qWarning(
"qSlicerMarkupsModuleWidget::onUnsetMarkupPushButtonClicked method is deprecated, please use onUnsetControlPointPushButtonClicked instead");
367 this->onUnsetControlPointPushButtonClicked();
372 qWarning(
"qSlicerMarkupsModuleWidget::onMissingMarkupPushButtonClicked method is deprecated, please use onMissingControlPointPushButtonClicked instead");
373 this->onMissingControlPointPushButtonClicked();
378 qWarning(
"qSlicerMarkupsModuleWidget::onDeleteMarkupPushButtonClicked method is deprecated, please use onDeleteControlPointPushButtonClicked instead");
379 this->onDeleteControlPointPushButtonClicked(confirm);
384 qWarning(
"qSlicerMarkupsModuleWidget::onDeleteAllMarkupsInListPushButtonClicked method is deprecated, please use onDeleteAllControlPointsInListPushButtonClicked instead");
385 this->onDeleteAllControlPointsInListPushButtonClicked();
389 QScopedPointer<qSlicerMarkupsModuleWidgetPrivate>
d_ptr;
391 void setup()
override;
Abstract Superclass for all specific types of MRML nodes.