13 #ifndef mitkToolManager_h
14 #define mitkToolManager_h
22 #pragma GCC visibility push(default)
23 #include <itkEventObject.h>
24 #pragma GCC visibility pop
108 int GetToolID(
const Tool *tool);
114 Tool *GetToolById(
int id);
121 bool ActivateTool(
int id);
127 for (
auto iter = m_Tools.begin(); iter != m_Tools.end(); ++iter, ++
id)
129 if (
dynamic_cast<T *
>(iter->GetPointer()))
140 int GetActiveToolID();
145 Tool *GetActiveTool();
150 void SetReferenceData(DataVectorType);
160 void SetWorkingData(DataVectorType);
170 void SetRoiData(DataVectorType);
180 DataVectorType GetReferenceData();
191 DataVectorType GetWorkingData();
197 DataNode *GetWorkingData(
unsigned int);
202 DataVectorType GetRoiData();
220 void RegisterClient();
226 void UnregisterClient();
229 void InitializeTools();
231 void OnOneOfTheReferenceDataDeletedConst(
const itk::Object *caller,
const itk::EventObject &e);
232 void OnOneOfTheReferenceDataDeleted(itk::Object *caller,
const itk::EventObject &e);
234 void OnOneOfTheWorkingDataDeletedConst(
const itk::Object *caller,
const itk::EventObject &e);
235 void OnOneOfTheWorkingDataDeleted(itk::Object *caller,
const itk::EventObject &e);
237 void OnOneOfTheRoiDataDeletedConst(
const itk::Object *caller,
const itk::EventObject &e);
238 void OnOneOfTheRoiDataDeleted(itk::Object *caller,
const itk::EventObject &e);
246 void OnToolErrorMessage(std::string s);
247 void OnGeneralToolMessage(std::string s);
283 void OnTimeChangedConst(
const itk::Object* caller,
const itk::EventObject& e);
284 void OnTimeChanged(itk::Object* caller,
const itk::EventObject& e);
286 void EnsureTimeObservation();
287 void StopTimeObservation();
293 unsigned long m_TimePointObserverTag = 0;