26 static bool alreadyDone =
false;
29 MITK_DEBUG <<
"ConnectomicsObjectFactory c'tor" << std::endl;
46 std::string classname(
"ConnectomicsNetwork");
47 if (node->
GetData() && classname.compare(node->
GetData()->GetNameOfClass())==0)
50 newMapper->SetDataNode(node);
60 std::string classname(
"ConnectomicsNetwork");
61 if(node->
GetData() && classname.compare(node->
GetData()->GetNameOfClass())==0)
69 std::string fileExtension;
70 this->CreateFileExtensions(m_FileExtensionsMap, fileExtension);
71 return fileExtension.c_str();
76 return m_FileExtensionsMap;
81 std::string fileExtension;
82 this->CreateFileExtensions(m_SaveFileExtensionsMap, fileExtension);
83 return fileExtension.c_str();
88 return m_SaveFileExtensionsMap;
91 void mitk::ConnectomicsObjectFactory::CreateFileExtensionsMap()
95 struct RegisterConnectomicsObjectFactory{
96 RegisterConnectomicsObjectFactory()
102 ~RegisterConnectomicsObjectFactory()
~ConnectomicsObjectFactory()
virtual const char * GetFileExtensions() override
static RegisterConnectomicsObjectFactory registerDiffusionCoreObjectFactory
static Pointer GetInstance()
DataCollection - Class to facilitate loading/accessing structured data.
BaseData * GetData() const
Get the data object (instance of BaseData, e.g., an Image) managed by this DataNode.
virtual const char * GetSaveFileExtensions() override
virtual mitk::CoreObjectFactoryBase::MultimapType GetSaveFileExtensionsMap() override
virtual void SetDefaultProperties(mitk::DataNode *node) override
static void SetDefaultProperties(DataNode *node, BaseRenderer *renderer=nullptr, bool overwrite=false)
virtual mitk::CoreObjectFactoryBase::MultimapType GetFileExtensionsMap() override
virtual Mapper::Pointer CreateMapper(mitk::DataNode *node, MapperSlotId slotId) override
unsigned int MapperSlotId
std::multimap< std::string, std::string > MultimapType
ConnectomicsObjectFactory()
Class for nodes of the DataTree.
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.