17 #ifndef mitkToolManager_h_Included
18 #define mitkToolManager_h_Included
26 #pragma GCC visibility push(default)
27 #include <itkEventObject.h>
28 #pragma GCC visibility pop
113 const ToolVectorTypeConst GetTools();
115 int GetToolID(
const Tool *tool);
121 Tool *GetToolById(
int id);
128 bool ActivateTool(
int id);
134 for (
auto iter = m_Tools.begin(); iter != m_Tools.end(); ++iter, ++id)
136 if (dynamic_cast<T *>(iter->GetPointer()))
147 int GetActiveToolID();
152 Tool *GetActiveTool();
157 void SetReferenceData(DataVectorType);
167 void SetWorkingData(DataVectorType);
177 void SetRoiData(DataVectorType);
187 DataVectorType GetReferenceData();
198 DataVectorType GetWorkingData();
209 DataVectorType GetRoiData();
223 void RegisterClient();
229 void UnregisterClient();
232 void InitializeTools();
234 void OnOneOfTheReferenceDataDeletedConst(
const itk::Object *caller,
const itk::EventObject &e);
235 void OnOneOfTheReferenceDataDeleted(itk::Object *caller,
const itk::EventObject &e);
237 void OnOneOfTheWorkingDataDeletedConst(
const itk::Object *caller,
const itk::EventObject &e);
238 void OnOneOfTheWorkingDataDeleted(itk::Object *caller,
const itk::EventObject &e);
240 void OnOneOfTheRoiDataDeletedConst(
const itk::Object *caller,
const itk::EventObject &e);
241 void OnOneOfTheRoiDataDeleted(itk::Object *caller,
const itk::EventObject &e);
249 void OnToolErrorMessage(std::string s);
250 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.
static mitk::DataStorage::Pointer GetDataStorage()
#define mitkClassMacroItkParent(className, SuperClassName)
Event/message/notification class.
Implements a weak reference to an object.
Class for nodes of the DataTree.