13 #ifndef QmitkMultiLabelInspector_h
14 #define QmitkMultiLabelInspector_h
22 #include <QItemSelectionModel>
25 class QStyledItemDelegate;
45 bool GetMultiSelectionMode()
const;
47 bool GetAllowVisibilityModification()
const;
48 bool GetAllowLockModification()
const;
49 bool GetAllowLabelModification()
const;
52 bool GetModelManipulationOngoing()
const;
82 IndexLevelType GetCurrentLevelType()
const;
90 LabelValueVectorType GetCurrentlyAffactedLabelInstances()
const;
96 LabelValueVectorType GetLabelInstancesOfSelectedFirstLabel()
const;
104 void CurrentSelectionChanged(LabelValueVectorType labels)
const;
113 void GoToLabel(LabelValueType label,
const mitk::Point3D& point)
const;
122 void LabelRenameRequested(
mitk::Label* label,
bool rename)
const;
125 void ModelUpdated()
const;
128 void SegmentationChanged()
const;
138 void SetSelectedLabels(
const LabelValueVectorType& selectedLabels);
170 void SetMultiSelectionMode(
bool multiMode);
172 void SetAllowVisibilityModification(
bool visiblityMod);
173 void SetAllowLockModification(
bool lockMod);
174 void SetAllowLabelModification(
bool labelMod);
176 void SetDefaultLabelNaming(
bool defaultLabelNaming);
204 void DeleteLabelInstance();
224 void SetVisibilityOfAffectedLabels(
bool visible)
const;
225 void SetLockOfAffectedLabels(
bool visible)
const;
230 void OnDataChanged(
const QModelIndex& topLeft,
const QModelIndex& bottomRight,
231 const QList<int>& roles = QList<int>());
269 void OnChangeModelSelection(
const QItemSelection& selected,
const QItemSelection& deselected);
271 void OnContextMenuRequested(
const QPoint&);
274 void OnAddLabelInstance();
275 void OnDeleteGroup();
276 void OnDeleteAffectedLabel();
277 void OnDeleteLabels(
bool);
278 void OnClearLabels(
bool);
279 void OnMergeLabels(
bool);
281 void OnRenameLabel(
bool);
282 void OnClearLabel(
bool);
284 void OnUnlockAffectedLabels();
285 void OnLockAffectedLabels();
287 void OnSetAffectedLabelsVisible();
288 void OnSetAffectedLabelsInvisible();
289 void OnSetOnlyActiveLabelVisible(
bool);
291 void OnItemDoubleClicked(
const QModelIndex& index);
293 void WaitCursorOn()
const;
294 void WaitCursorOff()
const;
295 void RestoreOverrideCursor()
const;
299 void OnEntered(
const QModelIndex& index);
302 QWidgetAction* CreateOpacityAction();
305 bool m_ShowVisibility =
true;
306 bool m_ShowLock =
true;
307 bool m_ShowOther =
false;
313 bool m_AllowVisibilityModification =
true;
317 bool m_AllowLockModification =
true;
321 bool m_AllowLabelModification =
false;
323 bool m_DefaultLabelNaming =
true;
325 bool m_ModelManipulationOngoing =
false;
327 bool m_AboutToShowContextMenu =
false;
329 unsigned long m_SegmentationNodeDataMTime;