31 static bool alreadyDone =
false;
34 itk::ObjectFactoryBase::RegisterFactory(m_PlanarFigureIOFactory);
35 itk::ObjectFactoryBase::RegisterFactory(m_PlanarFigureWriterFactory);
47 itk::ObjectFactoryBase::UnRegisterFactory(m_PlanarFigureWriterFactory);
48 itk::ObjectFactoryBase::UnRegisterFactory(m_PlanarFigureIOFactory);
56 if (dynamic_cast<PlanarFigure *>(data) !=
nullptr)
61 newMapper->SetDataNode(node);
66 newMapper->SetDataNode(node);
105 std::string fileExtension;
107 return fileExtension.c_str();
117 m_FileExtensionsMap.insert(std::pair<std::string, std::string>(
"*.pf",
"Planar Figure Files"));
125 struct RegisterPlanarFigureObjectFactory
Base of all data objects.
static Pointer GetInstance()
FileWriterList m_FileWriters
BaseData * GetData() const
Get the data object (instance of BaseData, e.g., an Image) managed by this DataNode.
void AddProperty(const char *propertyKey, BaseProperty *property, const mitk::BaseRenderer *renderer=nullptr, bool overwrite=false)
Add the property (instance of BaseProperty) if it does not exist (or always ifoverwrite istrue) with ...
static void CreateFileExtensions(MultimapType fileExtensionsMap, std::string &fileExtensions)
create a string from a map that contains the file extensions
unsigned int MapperSlotId
std::multimap< std::string, std::string > MultimapType
Class for nodes of the DataTree.