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(
bool confirm=
true);
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 cutSelectedToClipboard();
204 void copySelectedToClipboard();
205 void pasteSelectedFromClipboard();
208 void onActiveMarkupsNodeLockModifiedEvent();
210 void onActiveMarkupsNodeLabelFormatModifiedEvent();
213 void onActiveMarkupsNodePointModifiedEvent(vtkObject *caller, vtkObject *callData);
215 void onActiveMarkupsNodeMarkupAddedEvent(vtkObject *caller, vtkObject *callData);
217 void onActiveMarkupsNodeMarkupRemovedEvent();
219 void onActiveMarkupsNodeNthMarkupModifiedEvent(vtkObject *caller, vtkObject *callData);
221 void onActiveMarkupsNodeDisplayModifiedEvent();
223 void onActiveMarkupsNodeTransformModifiedEvent();
227 void onNewMarkupWithCurrentDisplayPropertiesTriggered();
232 void onSliceIntersectionsVisibilityToggled(
bool checked);
235 void onHideCoordinateColumnsToggled(
bool checked);
238 void onTransformedCoordinatesToggled(
bool checked);
241 QScopedPointer<qSlicerMarkupsModuleWidgetPrivate>
d_ptr;
243 virtual void setup();
254 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.