13 #ifndef mitkToolManager_h_Included 14 #define mitkToolManager_h_Included 22 #pragma GCC visibility push(default) 23 #include <itkEventObject.h> 24 #pragma GCC visibility pop 109 const ToolVectorTypeConst GetTools();
111 int GetToolID(
const Tool *tool);
117 Tool *GetToolById(
int id);
124 bool ActivateTool(
int id);
130 for (
auto iter = m_Tools.begin(); iter != m_Tools.end(); ++iter, ++id)
132 if (dynamic_cast<T *>(iter->GetPointer()))
143 int GetActiveToolID();
148 Tool *GetActiveTool();
153 void SetReferenceData(DataVectorType);
163 void SetWorkingData(DataVectorType);
173 void SetRoiData(DataVectorType);
183 DataVectorType GetReferenceData();
194 DataVectorType GetWorkingData();
200 DataNode *GetWorkingData(
unsigned int);
205 DataVectorType GetRoiData();
219 void RegisterClient();
225 void UnregisterClient();
228 void InitializeTools();
230 void OnOneOfTheReferenceDataDeletedConst(
const itk::Object *caller,
const itk::EventObject &e);
231 void OnOneOfTheReferenceDataDeleted(itk::Object *caller,
const itk::EventObject &e);
233 void OnOneOfTheWorkingDataDeletedConst(
const itk::Object *caller,
const itk::EventObject &e);
234 void OnOneOfTheWorkingDataDeleted(itk::Object *caller,
const itk::EventObject &e);
236 void OnOneOfTheRoiDataDeletedConst(
const itk::Object *caller,
const itk::EventObject &e);
237 void OnOneOfTheRoiDataDeleted(itk::Object *caller,
const itk::EventObject &e);
245 void OnToolErrorMessage(std::string s);
246 void OnGeneralToolMessage(std::string s);
Data management class that handles 'was created by' relations.
#define mitkNewMacro1Param(classname, type)
#define MITKSEGMENTATION_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacroItkParent(className, SuperClassName)
Event/message/notification class.
Class for nodes of the DataTree.