28 static bool alreadyDone =
false;
31 MITK_INFO <<
"TubeGraphObjectFactory c'tor" << std::endl;
32 CreateFileExtensionsMap();
44 if ((dynamic_cast<mitk::TubeGraph *>(node->
GetData()) != NULL))
47 newMapper->SetDataNode(node);
56 if ((dynamic_cast<mitk::TubeGraph *>(node->
GetData()) != NULL))
65 std::string fileExtension;
66 this->CreateFileExtensions(m_FileExtensionsMap, fileExtension);
67 return fileExtension.c_str();
72 return m_FileExtensionsMap;
77 std::string fileExtension;
78 this->CreateFileExtensions(m_SaveFileExtensionsMap, fileExtension);
79 return fileExtension.c_str();
84 return m_SaveFileExtensionsMap;
87 void mitk::TubeGraphObjectFactory::CreateFileExtensionsMap()
91 struct RegisterTubeGraphObjectFactory
93 RegisterTubeGraphObjectFactory() : m_Factory(
mitk::TubeGraphObjectFactory::
New())
static RegisterTubeGraphObjectFactory registerTubeGraphObjectFactory
virtual mitk::CoreObjectFactoryBase::MultimapType GetFileExtensionsMap() override
static Pointer GetInstance()
virtual mitk::CoreObjectFactoryBase::MultimapType GetSaveFileExtensionsMap() override
DataCollection - Class to facilitate loading/accessing structured data.
virtual const char * GetFileExtensions() override
BaseData * GetData() const
Get the data object (instance of BaseData, e.g., an Image) managed by this DataNode.
virtual Mapper::Pointer CreateMapper(mitk::DataNode *node, MapperSlotId slotId) override
virtual const char * GetSaveFileExtensions() override
virtual void SetDefaultProperties(mitk::DataNode *node) override
void SetProperty(const char *propertyKey, BaseProperty *property, const mitk::BaseRenderer *renderer=nullptr)
Set the property (instance of BaseProperty) with key propertyKey in the PropertyList of the renderer ...
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.
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.