24 static bool alreadyDone =
false;
27 MITK_INFO <<
"TubeGraphObjectFactory c'tor" << std::endl;
28 CreateFileExtensionsMap();
40 if ((dynamic_cast<mitk::TubeGraph *>(node->
GetData()) !=
nullptr))
43 newMapper->SetDataNode(node);
52 if ((dynamic_cast<mitk::TubeGraph *>(node->
GetData()) !=
nullptr))
61 std::string fileExtension;
63 return fileExtension.c_str();
68 return m_FileExtensionsMap;
73 std::string fileExtension;
75 return fileExtension.c_str();
80 return m_SaveFileExtensionsMap;
83 void mitk::TubeGraphObjectFactory::CreateFileExtensionsMap()
87 struct RegisterTubeGraphObjectFactory
static RegisterTubeGraphObjectFactory registerTubeGraphObjectFactory
mitk::CoreObjectFactoryBase::MultimapType GetFileExtensionsMap() override
static Pointer GetInstance()
mitk::CoreObjectFactoryBase::MultimapType GetSaveFileExtensionsMap() override
const char * GetFileExtensions() override
Mapper::Pointer CreateMapper(mitk::DataNode *node, MapperSlotId slotId) override
void SetProperty(const std::string &propertyKey, BaseProperty *property, const std::string &contextName="", bool fallBackOnDefaultContext=false) override
Add new or change existent property.
BaseData * GetData() const
Get the data object (instance of BaseData, e.g., an Image) managed by this DataNode.
const char * GetSaveFileExtensions() override
static void CreateFileExtensions(MultimapType fileExtensionsMap, std::string &fileExtensions)
create a string from a map that contains the file extensions
void SetDefaultProperties(mitk::DataNode *node) override
unsigned int MapperSlotId
std::multimap< std::string, std::string > MultimapType
Class for nodes of the DataTree.
static void SetDefaultProperties(DataNode *node, BaseRenderer *renderer=nullptr, bool overwrite=false)
Set default values of properties used by this mapper to node.