34 m_PointSetNode->SetData(m_PointSet);
43 if (referenceData ==
nullptr)
46 auto *
image =
dynamic_cast<Image *
>(referenceData);
51 if (
image->GetDimension() < 3)
64 return "Region Growing 3D";
76 Superclass::Activated();
78 if (!GetDataStorage()->Exists(m_PointSetNode))
79 GetDataStorage()->Add(m_PointSetNode, GetWorkingData());
81 m_SeedPointInteractor->LoadStateMachine(
"PointSet.xml");
82 m_SeedPointInteractor->SetEventConfig(
"PointSetConfig.xml");
83 m_SeedPointInteractor->SetDataNode(m_PointSetNode);
89 GetDataStorage()->Remove(m_PointSetNode);
91 Superclass::Deactivated();
96 m_ToolManager->ActivateTool(-1);
101 return this->m_ToolManager->GetReferenceData(0);
106 return this->m_ToolManager->GetDataStorage();
111 return this->m_ToolManager->GetWorkingData(0);
116 return m_PointSetNode;
Data management class that handles 'was created by' relations.
Base of all data objects.
#define MITKSEGMENTATION_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
MITK_TOOL_MACRO(MITKSEGMENTATION_EXPORT, LiveWireTool2D, "LiveWire tool")
Module * GetModule() const
Image class for storing images.
ModuleResource GetResource(const std::string &path) const
mitk::Image::Pointer image
static ModuleContext * GetModuleContext()
Returns the module context of the calling module.
Class for nodes of the DataTree.