32 static bool alreadyDone =
false;
35 MITK_INFO <<
"MAPRegistrationWrapperObjectFactory c'tor" << std::endl;
54 std::string classname(
"MAPRegistrationWrapper");
55 if(node->
GetData() && classname.compare(node->
GetData()->GetNameOfClass())==0)
58 newMapper->SetDataNode(node);
63 std::string classname(
"MAPRegistrationWrapper");
64 if(node->
GetData() && classname.compare(node->
GetData()->GetNameOfClass())==0)
67 newMapper->SetDataNode(node);
84 if( dynamic_cast<mitk::MAPRegistrationWrapper*>(node->
GetData())!=NULL )
92 std::string fileExtension;
93 this->CreateFileExtensions(m_FileExtensionsMap, fileExtension);
94 return fileExtension.c_str();
99 return m_FileExtensionsMap;
104 std::string fileExtension;
105 this->CreateFileExtensions(m_SaveFileExtensionsMap, fileExtension);
106 return fileExtension.c_str();
111 return m_SaveFileExtensionsMap;
114 struct RegisterMAPRegistrationWrapperObjectFactoryHelper{
115 RegisterMAPRegistrationWrapperObjectFactoryHelper()
121 ~RegisterMAPRegistrationWrapperObjectFactoryHelper()
std::multimap< std::string, std::string > MultimapType
virtual mitk::Mapper::Pointer CreateMapper(mitk::DataNode *node, MapperSlotId slotId)
static Pointer GetInstance()
static void SetDefaultProperties(DataNode *node, BaseRenderer *renderer=NULL, bool overwrite=false)
virtual mitk::CoreObjectFactoryBase::MultimapType GetFileExtensionsMap()
virtual mitk::CoreObjectFactoryBase::MultimapType GetSaveFileExtensionsMap()
DataCollection - Class to facilitate loading/accessing structured data.
virtual const char * GetSaveFileExtensions()
BaseData * GetData() const
Get the data object (instance of BaseData, e.g., an Image) managed by this DataNode.
static RegisterMAPRegistrationWrapperObjectFactoryHelper registerMITKRegistrationWrapperIOFactoryHelper
MAPRegistrationWrapperObjectFactory()
~MAPRegistrationWrapperObjectFactory()
virtual const char * GetFileExtensions()
virtual void SetDefaultProperties(mitk::DataNode *node)
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.