37 static bool alreadyDone =
false;
40 MITK_DEBUG <<
"ContourObjectFactory c'tor" << std::endl;
56 std::string classname(
"ContourModel");
57 if (dynamic_cast<mitk::ContourModel *>(node->
GetData()) != NULL)
60 newMapper->SetDataNode(node);
62 else if (dynamic_cast<mitk::ContourModelSet *>(node->
GetData()) != NULL)
65 newMapper->SetDataNode(node);
70 if (dynamic_cast<mitk::ContourModel *>(node->
GetData()) != NULL)
73 newMapper->SetDataNode(node);
75 else if (dynamic_cast<mitk::ContourModelSet *>(node->
GetData()) != NULL)
78 newMapper->SetDataNode(node);
94 if (dynamic_cast<mitk::ContourModel *>(node->
GetData()) != NULL)
99 else if (dynamic_cast<mitk::ContourModelSet *>(node->
GetData()) != NULL)
108 std::string fileExtension;
109 this->CreateFileExtensions(m_FileExtensionsMap, fileExtension);
110 return fileExtension.c_str();
115 return m_FileExtensionsMap;
120 return m_SaveFileExtensionsMap;
129 std::string fileExtension;
130 this->CreateFileExtensions(m_SaveFileExtensionsMap, fileExtension);
131 return fileExtension.c_str();
138 struct RegisterContourObjectFactory
static void SetDefaultProperties(mitk::DataNode *node, mitk::BaseRenderer *renderer=NULL, bool overwrite=false)
void RegisterIOFactories()
static Pointer GetInstance()
void CreateFileExtensionsMap()
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 Mapper::Pointer CreateMapper(mitk::DataNode *node, MapperSlotId slotId) override
static void SetDefaultProperties(mitk::DataNode *node, mitk::BaseRenderer *renderer=NULL, bool overwrite=false)
virtual mitk::CoreObjectFactoryBase::MultimapType GetFileExtensionsMap() override
virtual const char * GetSaveFileExtensions() override
static void SetDefaultProperties(mitk::DataNode *node, mitk::BaseRenderer *renderer=NULL, bool overwrite=false)
Set the default properties for general image rendering.
virtual mitk::CoreObjectFactoryBase::MultimapType GetSaveFileExtensionsMap() override
static RegisterContourObjectFactory registerContourObjectFactory
virtual void SetDefaultProperties(mitk::DataNode *node) override
static void SetDefaultProperties(mitk::DataNode *node, mitk::BaseRenderer *renderer=NULL, bool overwrite=false)
Set the default properties for general image rendering.
unsigned int MapperSlotId
std::multimap< std::string, std::string > MultimapType
virtual const char * GetFileExtensions() override
Class for nodes of the DataTree.
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.