18 #ifndef __qSlicerMarkupsModuleWidget_h 19 #define __qSlicerMarkupsModuleWidget_h 24 #include "qSlicerMarkupsModuleExport.h" 29 class QTableWidgetItem;
31 class qSlicerMarkupsModuleWidgetPrivate;
50 void enter()
override;
60 void updateWidgetFromMRML();
64 void updateWidgetFromDisplayNode();
70 void updateMaximumScaleFromVolumes();
73 void updateRow(
int m);
80 void updateLogicFromSettings();
84 bool sliceIntersectionsVisible();
93 void onNodeAddedEvent(vtkObject* scene, vtkObject* node);
97 void onNodeRemovedEvent(vtkObject* scene, vtkObject* node);
99 void onMRMLSceneEndImportEvent();
101 void onMRMLSceneEndRestoreEvent();
104 void onMRMLSceneEndBatchProcessEvent();
106 void onMRMLSceneEndCloseEvent();
108 void onPKeyActivated();
113 void checkForAnnotationFiducialConversion();
116 void convertAnnotationFiducialsToMarkups();
119 void onResetToDefaultDisplayPropertiesPushButtonClicked();
120 void onSaveToDefaultDisplayPropertiesPushButtonClicked();
123 void onApplyCurveResamplingPushButtonClicked();
126 void onAngleMeasurementModeChanged();
128 void onRotationAxisChanged();
131 void onVisibilityOnAllMarkupsInListPushButtonClicked();
132 void onVisibilityOffAllMarkupsInListPushButtonClicked();
133 void onVisibilityAllMarkupsInListToggled();
134 void onLockAllMarkupsInListPushButtonClicked();
135 void onUnlockAllMarkupsInListPushButtonClicked();
136 void onLockAllMarkupsInListToggled();
137 void onSelectAllMarkupsInListPushButtonClicked();
138 void onDeselectAllMarkupsInListPushButtonClicked();
139 void onSelectedAllMarkupsInListToggled();
140 void onAddMarkupPushButtonClicked();
141 void onMoveMarkupUpPushButtonClicked();
142 void onMoveMarkupDownPushButtonClicked();
143 void onDeleteMarkupPushButtonClicked(
bool confirm=
true);
144 void onDeleteAllMarkupsInListPushButtonClicked();
147 void onActiveMarkupItemChanged(vtkIdType);
148 void onActiveMarkupMRMLNodeChanged(
vtkMRMLNode *markupsNode);
150 void onSelectionNodeActivePlaceNodeIDChanged();
154 void onActiveMarkupMRMLNodeAdded(
vtkMRMLNode *markupsNode);
156 void onCreateMarkupsFiducial();
157 void onCreateMarkupsLine();
158 void onCreateMarkupsAngle();
159 void onCreateMarkupsOpenCurve();
160 void onCreateMarkupsClosedCurve();
161 void onCreateMarkupsPlane();
162 void onCreateMarkupsROI();
165 void onListVisibileInvisiblePushButtonClicked();
168 void onListLockedUnlockedPushButtonClicked();
171 void onNameFormatLineEditTextEdited(
const QString text);
174 void onResetNameFormatToDefaultPushButtonClicked();
179 void onRenameAllWithCurrentNameFormatPushButtonClicked();
182 void onActiveMarkupTableCellChanged(
int row,
int column);
184 void onActiveMarkupTableCellClicked(QTableWidgetItem* item);
186 void onActiveMarkupTableCurrentCellChanged(
int currentRow,
int currentColumn,
187 int previousRow,
int previousColumn);
189 void onRightClickActiveMarkupTableWidget(QPoint pos);
191 void addSelectedCoordinatesToMenu(QMenu *menu);
193 void onJumpSlicesActionTriggered();
195 void onRefocusCamerasActionTriggered();
200 QStringList getOtherMarkupNames(
vtkMRMLNode *thisMarkup);
202 void cutSelectedToClipboard();
203 void copySelectedToClipboard();
204 void pasteSelectedFromClipboard();
207 void onActiveMarkupsNodeModifiedEvent();
209 void onActiveMarkupsNodePointModifiedEvent(vtkObject *caller,
void *callData);
211 void onActiveMarkupsNodePointAddedEvent();
213 void onActiveMarkupsNodePointRemovedEvent(vtkObject *caller,
void *callData);
215 void onActiveMarkupsNodeDisplayModifiedEvent();
217 void onActiveMarkupsNodeTransformModifiedEvent();
221 void onNewMarkupWithCurrentDisplayPropertiesTriggered();
226 void onSliceIntersectionsVisibilityToggled(
bool checked);
229 void onHideCoordinateColumnsToggled(
bool checked);
232 void onTransformedCoordinatesToggled(
bool checked);
235 void onCurveTypeParameterChanged();
238 void onROITypeParameterChanged();
241 void observeMeasurementsInCurrentMarkupsNode();
243 void updateMeasurementsDescriptionLabel();
245 void populateMeasurementSettingsTable();
247 void onMeasurementsCollectionModified();
249 void onMeasurementModified(vtkObject* caller);
251 void onMeasurementEnabledCheckboxToggled(
bool on);
254 QScopedPointer<qSlicerMarkupsModuleWidgetPrivate>
d_ptr;
256 void setup()
override;
Abstract Superclass for all specific types of MRML nodes.