34 static bool alreadyDone =
false;
37 MITK_DEBUG <<
"SegmentationObjectFactory c'tor" << std::endl;
52 std::string classname(
"ContourModel");
53 if (dynamic_cast<mitk::Contour *>(node->
GetData()) != NULL)
56 newMapper->SetDataNode(node);
58 else if (dynamic_cast<mitk::ContourSet *>(node->
GetData()) != NULL)
61 newMapper->SetDataNode(node);
66 if ((dynamic_cast<Contour *>(data) != NULL))
69 newMapper->SetDataNode(node);
71 else if ((dynamic_cast<ContourSet *>(data) != NULL))
74 newMapper->SetDataNode(node);
101 std::string fileExtension;
102 this->CreateFileExtensions(m_FileExtensionsMap, fileExtension);
103 return fileExtension.c_str();
108 return m_FileExtensionsMap;
113 return m_SaveFileExtensionsMap;
122 std::string fileExtension;
123 this->CreateFileExtensions(m_SaveFileExtensionsMap, fileExtension);
124 return fileExtension.c_str();
131 struct RegisterSegmentationObjectFactory
void RegisterIOFactories()
virtual mitk::CoreObjectFactoryBase::MultimapType GetFileExtensionsMap() override
Base of all data objects.
virtual const char * GetFileExtensions() override
static Pointer GetInstance()
SegmentationObjectFactory()
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 RegisterSegmentationObjectFactory registerSegmentationObjectFactory
void CreateFileExtensionsMap()
virtual Mapper::Pointer CreateMapper(mitk::DataNode *node, MapperSlotId slotId) override
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.