13 #ifndef mitkToolManager_h
14 #define mitkToolManager_h
22 #pragma GCC visibility push(default)
23 #include <itkEventObject.h>
24 #pragma GCC visibility pop
110 int GetToolID(
const Tool *tool);
116 Tool *GetToolById(
int id);
123 bool ActivateTool(
int id);
129 for (
auto iter = m_Tools.begin(); iter != m_Tools.end(); ++iter, ++
id)
131 if (
dynamic_cast<T *
>(iter->GetPointer()))
142 int GetActiveToolID();
147 Tool *GetActiveTool();
152 void SetReferenceData(DataVectorType);
162 void SetWorkingData(DataVectorType);
172 void SetRoiData(DataVectorType);
182 DataVectorType GetReferenceData();
193 DataVectorType GetWorkingData();
199 DataNode *GetWorkingData(
unsigned int);
204 DataVectorType GetRoiData();
222 void RegisterClient();
228 void UnregisterClient();
231 void InitializeTools();
233 void OnOneOfTheReferenceDataDeletedConst(
const itk::Object *caller,
const itk::EventObject &e);
234 void OnOneOfTheReferenceDataDeleted(itk::Object *caller,
const itk::EventObject &e);
236 void OnOneOfTheWorkingDataDeletedConst(
const itk::Object *caller,
const itk::EventObject &e);
237 void OnOneOfTheWorkingDataDeleted(itk::Object *caller,
const itk::EventObject &e);
239 void OnOneOfTheRoiDataDeletedConst(
const itk::Object *caller,
const itk::EventObject &e);
240 void OnOneOfTheRoiDataDeleted(itk::Object *caller,
const itk::EventObject &e);
248 void OnToolErrorMessage(std::string s);
249 void OnGeneralToolMessage(std::string s);
285 void OnTimeChangedConst(
const itk::Object* caller,
const itk::EventObject& e);
286 void OnTimeChanged(itk::Object* caller,
const itk::EventObject& e);
288 void EnsureTimeObservation();
289 void StopTimeObservation();
295 unsigned long m_TimePointObserverTag = 0;