35 static bool alreadyDone =
false;
38 MITK_DEBUG <<
"DiffusionCoreObjectFactory c'tor" << std::endl;
58 std::string classname(
"QBallImage");
59 if(node->
GetData() && classname.compare(node->
GetData()->GetNameOfClass())==0)
62 newMapper->SetDataNode(node);
65 classname =
"TensorImage";
66 if(node->
GetData() && classname.compare(node->
GetData()->GetNameOfClass())==0)
69 newMapper->SetDataNode(node);
76 std::string classname(
"QBallImage");
77 if(node->
GetData() && classname.compare(node->
GetData()->GetNameOfClass())==0)
80 newMapper->SetDataNode(node);
82 classname =
"TensorImage";
83 if(node->
GetData() && classname.compare(node->
GetData()->GetNameOfClass())==0)
86 newMapper->SetDataNode(node);
95 std::string classname =
"QBallImage";
96 if(node->
GetData() && classname.compare(node->
GetData()->GetNameOfClass())==0)
102 classname =
"TensorImage";
103 if(node->
GetData() && classname.compare(node->
GetData()->GetNameOfClass())==0)
113 std::string fileExtension;
114 this->CreateFileExtensions(m_FileExtensionsMap, fileExtension);
115 return fileExtension.c_str();
120 return m_FileExtensionsMap;
125 std::string fileExtension;
126 this->CreateFileExtensions(m_SaveFileExtensionsMap, fileExtension);
127 return fileExtension.c_str();
132 return m_SaveFileExtensionsMap;
140 struct RegisterDiffusionCoreObjectFactory{
141 RegisterDiffusionCoreObjectFactory()
147 ~RegisterDiffusionCoreObjectFactory()
std::multimap< std::string, std::string > MultimapType
static void SetDefaultProperties(DataNode *node, BaseRenderer *renderer=NULL, bool overwrite=false)
virtual void SetMapper(MapperSlotId id, mitk::Mapper *mapper)
static Pointer GetInstance()
virtual const char * GetFileExtensions() override
virtual Mapper::Pointer CreateMapper(mitk::DataNode *node, MapperSlotId slotId) override
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.
Composite pattern for combination of different mappers.
DiffusionCoreObjectFactory()
void CreateFileExtensionsMap()
virtual void SetDefaultProperties(mitk::DataNode *node) override
virtual mitk::CoreObjectFactoryBase::MultimapType GetFileExtensionsMap() override
~DiffusionCoreObjectFactory()
virtual const char * GetSaveFileExtensions() override
virtual mitk::CoreObjectFactoryBase::MultimapType GetSaveFileExtensionsMap() override
static void SetDefaultProperties(mitk::DataNode *node, mitk::BaseRenderer *renderer=NULL, bool overwrite=false)
static RegisterDiffusionCoreObjectFactory registerDiffusionCoreObjectFactory
unsigned int MapperSlotId
std::multimap< std::string, std::string > MultimapType
Class for nodes of the DataTree.
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.