32 static bool alreadyDone =
false;
35 MITK_DEBUG <<
"ContourObjectFactory c'tor" << std::endl;
51 std::string classname(
"ContourModel");
52 if (dynamic_cast<mitk::ContourModel *>(node->
GetData()) !=
nullptr)
55 newMapper->SetDataNode(node);
57 else if (dynamic_cast<mitk::ContourModelSet *>(node->
GetData()) !=
nullptr)
60 newMapper->SetDataNode(node);
65 if (dynamic_cast<mitk::ContourModel *>(node->
GetData()) !=
nullptr)
68 newMapper->SetDataNode(node);
70 else if (dynamic_cast<mitk::ContourModelSet *>(node->
GetData()) !=
nullptr)
73 newMapper->SetDataNode(node);
89 if (dynamic_cast<mitk::ContourModel *>(node->
GetData()) !=
nullptr)
94 else if (dynamic_cast<mitk::ContourModelSet *>(node->
GetData()) !=
nullptr)
103 std::string fileExtension;
105 return fileExtension.c_str();
124 std::string fileExtension;
126 return fileExtension.c_str();
133 struct RegisterContourObjectFactory
~ContourObjectFactory() override
static void SetDefaultProperties(mitk::DataNode *node, mitk::BaseRenderer *renderer=nullptr, bool overwrite=false)
void RegisterIOFactories()
static Pointer GetInstance()
void CreateFileExtensionsMap()
MultimapType m_SaveFileExtensionsMap
Mapper::Pointer CreateMapper(mitk::DataNode *node, MapperSlotId slotId) override
mitk::CoreObjectFactoryBase::MultimapType GetFileExtensionsMap() override
BaseData * GetData() const
Get the data object (instance of BaseData, e.g., an Image) managed by this DataNode.
static void CreateFileExtensions(MultimapType fileExtensionsMap, std::string &fileExtensions)
create a string from a map that contains the file extensions
const char * GetSaveFileExtensions() override
static void SetDefaultProperties(mitk::DataNode *node, mitk::BaseRenderer *renderer=nullptr, bool overwrite=false)
Set the default properties for general image rendering.
MultimapType m_FileExtensionsMap
mitk::CoreObjectFactoryBase::MultimapType GetSaveFileExtensionsMap() override
static RegisterContourObjectFactory registerContourObjectFactory
static void SetDefaultProperties(mitk::DataNode *node, mitk::BaseRenderer *renderer=nullptr, bool overwrite=false)
static void SetDefaultProperties(mitk::DataNode *node, mitk::BaseRenderer *renderer=nullptr, bool overwrite=false)
Set the default properties for general image rendering.
void SetDefaultProperties(mitk::DataNode *node) override
unsigned int MapperSlotId
std::multimap< std::string, std::string > MultimapType
const char * GetFileExtensions() override
Class for nodes of the DataTree.