30 static bool alreadyDone =
false;
33 MITK_DEBUG <<
"MultilabelObjectFactory c'tor" << std::endl;
52 if ((dynamic_cast<mitk::LabelSetImage *>(data) != NULL))
55 newMapper->SetDataNode(node);
69 if (dynamic_cast<LabelSetImage *>(node->
GetData()) !=
nullptr)
75 if (propertyFilters !=
nullptr)
84 propertyFilters->AddFilter(labelSetImageFilter,
"LabelSetImage");
91 std::string fileExtension;
92 this->CreateFileExtensions(m_FileExtensionsMap, fileExtension);
93 return fileExtension.c_str();
98 return m_FileExtensionsMap;
103 return m_SaveFileExtensionsMap;
112 std::string fileExtension;
113 this->CreateFileExtensions(m_SaveFileExtensionsMap, fileExtension);
114 return fileExtension.c_str();
117 struct RegisterMultilabelObjectFactory
Base of all data objects.
void AddEntry(const std::string &propertyName, List list)
Add a filter entry for a specific property.
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.
static RegisterMultilabelObjectFactory registerMultilabelObjectFactory
virtual const char * GetFileExtensions() override
~MultilabelObjectFactory()
virtual void SetDefaultProperties(mitk::DataNode *node) override
virtual mitk::CoreObjectFactoryBase::MultimapType GetFileExtensionsMap() override
MultilabelObjectFactory()
static void SetDefaultProperties(mitk::DataNode *node, mitk::BaseRenderer *renderer=NULL, bool overwrite=false)
Set the default properties for general image rendering.
virtual Mapper::Pointer CreateMapper(mitk::DataNode *node, MapperSlotId slotId) override
virtual const char * GetSaveFileExtensions() override
static IPropertyFilters * GetPropertyFilters(us::ModuleContext *context=us::GetModuleContext())
Get an IPropertyFilters instance.
unsigned int MapperSlotId
std::multimap< std::string, std::string > MultimapType
void CreateFileExtensionsMap()
Class for nodes of the DataTree.
virtual mitk::CoreObjectFactoryBase::MultimapType GetSaveFileExtensionsMap() override
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.
Consists of blacklist and whitelist entries.