30 static bool alreadyDone =
false;
33 MITK_DEBUG <<
"SegmentationObjectFactory c'tor" << std::endl;
48 std::string classname(
"ContourModel");
49 if (dynamic_cast<mitk::Contour *>(node->
GetData()) !=
nullptr)
52 newMapper->SetDataNode(node);
54 else if (dynamic_cast<mitk::ContourSet *>(node->
GetData()) !=
nullptr)
57 newMapper->SetDataNode(node);
62 if ((dynamic_cast<Contour *>(data) !=
nullptr))
65 newMapper->SetDataNode(node);
67 else if ((dynamic_cast<ContourSet *>(data) !=
nullptr))
70 newMapper->SetDataNode(node);
97 std::string fileExtension;
99 return fileExtension.c_str();
118 std::string fileExtension;
120 return fileExtension.c_str();
127 struct RegisterSegmentationObjectFactory
void RegisterIOFactories()
mitk::CoreObjectFactoryBase::MultimapType GetFileExtensionsMap() override
Base of all data objects.
const char * GetFileExtensions() override
static Pointer GetInstance()
SegmentationObjectFactory()
MultimapType m_FileExtensionsMap
BaseData * GetData() const
Get the data object (instance of BaseData, e.g., an Image) managed by this DataNode.
MultimapType m_SaveFileExtensionsMap
const char * GetSaveFileExtensions() override
mitk::CoreObjectFactoryBase::MultimapType GetSaveFileExtensionsMap() override
void SetDefaultProperties(mitk::DataNode *node) override
static void CreateFileExtensions(MultimapType fileExtensionsMap, std::string &fileExtensions)
create a string from a map that contains the file extensions
static RegisterSegmentationObjectFactory registerSegmentationObjectFactory
void CreateFileExtensionsMap()
Mapper::Pointer CreateMapper(mitk::DataNode *node, MapperSlotId slotId) override
unsigned int MapperSlotId
std::multimap< std::string, std::string > MultimapType
Class for nodes of the DataTree.