13 #ifndef QmitkMultiLabelInspector_h
14 #define QmitkMultiLabelInspector_h
20 #include <QItemSelectionModel>
24 class QStyledItemDelegate;
44 bool GetMultiSelectionMode()
const;
46 bool GetAllowVisibilityModification()
const;
47 bool GetAllowLockModification()
const;
48 bool GetAllowLabelModification()
const;
51 bool GetModelManipulationOngoing()
const;
81 IndexLevelType GetCurrentLevelType()
const;
89 LabelValueVectorType GetCurrentlyAffactedLabelInstances()
const;
95 LabelValueVectorType GetLabelInstancesOfSelectedFirstLabel()
const;
103 void CurrentSelectionChanged(LabelValueVectorType labels)
const;
112 void GoToLabel(LabelValueType label,
const mitk::Point3D& point)
const;
121 void LabelRenameRequested(
mitk::Label* label,
bool rename)
const;
124 void ModelUpdated()
const;
134 void SetSelectedLabels(
const LabelValueVectorType& selectedLabels);
147 void SetMultiSelectionMode(
bool multiMode);
149 void SetAllowVisibilityModification(
bool visiblityMod);
150 void SetAllowLockModification(
bool lockMod);
151 void SetAllowLabelModification(
bool labelMod);
153 void SetDefaultLabelNaming(
bool defaultLabelNaming);
181 void DeleteLabelInstance();
201 void SetVisibilityOfAffectedLabels(
bool visible)
const;
202 void SetLockOfAffectedLabels(
bool visible)
const;
244 void OnChangeModelSelection(
const QItemSelection& selected,
const QItemSelection& deselected);
246 void OnContextMenuRequested(
const QPoint&);
249 void OnAddLabelInstance();
250 void OnDeleteGroup();
251 void OnDeleteAffectedLabel();
252 void OnDeleteLabels(
bool);
253 void OnClearLabels(
bool);
254 void OnMergeLabels(
bool);
256 void OnRenameLabel(
bool);
257 void OnClearLabel(
bool);
259 void OnUnlockAffectedLabels();
260 void OnLockAffectedLabels();
262 void OnSetAffectedLabelsVisible();
263 void OnSetAffectedLabelsInvisible();
264 void OnSetOnlyActiveLabelVisible(
bool);
266 void OnItemDoubleClicked(
const QModelIndex& index);
268 void WaitCursorOn()
const;
269 void WaitCursorOff()
const;
270 void RestoreOverrideCursor()
const;
274 QWidgetAction* CreateOpacityAction();
277 bool m_ShowVisibility =
true;
278 bool m_ShowLock =
true;
279 bool m_ShowOther =
false;
285 bool m_AllowVisibilityModification =
true;
289 bool m_AllowLockModification =
true;
293 bool m_AllowLabelModification =
false;
295 bool m_DefaultLabelNaming =
true;
297 bool m_ModelManipulationOngoing =
false;