Medical Imaging Interaction Toolkit  2018.4.99-65942676
Medical Imaging Interaction Toolkit
mitk::CoreObjectFactory Class Reference

#include <mitkCoreObjectFactory.h>

Inheritance diagram for mitk::CoreObjectFactory:
Collaboration diagram for mitk::CoreObjectFactory:

Public Types

typedef CoreObjectFactory Self
 
typedef CoreObjectFactoryBase Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
- Public Types inherited from mitk::CoreObjectFactoryBase
typedef std::list< mitk::FileWriterWithInformation::PointerFileWriterList
 
typedef std::multimap< std::string, std::string > MultimapType
 
typedef CoreObjectFactoryBase Self
 
typedef itk::Object Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 

Public Member Functions

virtual std::vector< std::string > GetClassHierarchy () const override
 
virtual const char * GetClassName () const
 
Mapper::Pointer CreateMapper (mitk::DataNode *node, MapperSlotId slotId) override
 
void SetDefaultProperties (mitk::DataNode *node) override
 
virtual void MapEvent (const mitk::Event *event, const int eventID)
 
virtual void RegisterExtraFactory (CoreObjectFactoryBase *factory)
 
virtual void UnRegisterExtraFactory (CoreObjectFactoryBase *factory)
 
 ~CoreObjectFactory () override
 
virtual std::string GetFileExtensions () override
 This method gets the supported (open) file extensions as string. More...
 
virtual MultimapType GetFileExtensionsMap () override
 get the defined (open) file extension map More...
 
virtual std::string GetSaveFileExtensions () override
 This method gets the supported (save) file extensions as string. More...
 
MultimapType GetSaveFileExtensionsMap () override
 get the defined (save) file extension map More...
 
virtual FileWriterList GetFileWriters ()
 
std::string GetDescriptionForExtension (const std::string &extension)
 
- Public Member Functions inherited from mitk::CoreObjectFactoryBase
virtual const char * GetITKSourceVersion () const
 
virtual const char * GetDescription () const
 
FileWriterList GetFileWriters ()
 

Static Public Member Functions

static const char * GetStaticNameOfClass ()
 
static Pointer New ()
 
static Pointer GetInstance ()
 
- Static Public Member Functions inherited from mitk::CoreObjectFactoryBase
static const char * GetStaticNameOfClass ()
 

Protected Types

typedef std::set< mitk::CoreObjectFactoryBase::PointerExtraFactoriesContainer
 

Protected Member Functions

 CoreObjectFactory ()
 
void MergeFileExtensions (MultimapType &fileExtensionsMap, MultimapType inputMap)
 Merge the input map into the fileExtensionsMap. Duplicate entries are removed. More...
 
void CreateFileExtensionsMap ()
 initialize the file extension entries for open and save More...
 
void CreateSaveFileExtensions ()
 

Protected Attributes

ExtraFactoriesContainer m_ExtraFactories
 
FileWriterList m_FileWriters
 
std::string m_FileExtensions
 
MultimapType m_FileExtensionsMap
 
std::string m_SaveFileExtensions
 
MultimapType m_SaveFileExtensionsMap
 
- Protected Attributes inherited from mitk::CoreObjectFactoryBase
FileWriterList m_FileWriters
 

Additional Inherited Members

- Static Protected Member Functions inherited from mitk::CoreObjectFactoryBase
static void CreateFileExtensions (MultimapType fileExtensionsMap, std::string &fileExtensions)
 create a string from a map that contains the file extensions More...
 

Detailed Description

Definition at line 28 of file mitkCoreObjectFactory.h.

Member Typedef Documentation

◆ ConstPointer

◆ ExtraFactoriesContainer

◆ Pointer

◆ Self

◆ Superclass

Constructor & Destructor Documentation

◆ ~CoreObjectFactory()

mitk::CoreObjectFactory::~CoreObjectFactory ( )
override

◆ CoreObjectFactory()

mitk::CoreObjectFactory::CoreObjectFactory ( )
protected

Member Function Documentation

◆ CreateFileExtensionsMap()

void mitk::CoreObjectFactory::CreateFileExtensionsMap ( )
protected

initialize the file extension entries for open and save

Deprecated:
(as of 2014_10)

◆ CreateMapper()

Mapper::Pointer mitk::CoreObjectFactory::CreateMapper ( mitk::DataNode node,
MapperSlotId  slotId 
)
overridevirtual

◆ CreateSaveFileExtensions()

void mitk::CoreObjectFactory::CreateSaveFileExtensions ( )
protected
Deprecated:
(as of 2014_10)

◆ GetClassHierarchy()

virtual std::vector<std::string> mitk::CoreObjectFactory::GetClassHierarchy ( ) const
inlineoverridevirtual

Reimplemented from mitk::CoreObjectFactoryBase.

Definition at line 31 of file mitkCoreObjectFactory.h.

◆ GetClassName()

virtual const char* mitk::CoreObjectFactory::GetClassName ( ) const
virtual

Reimplemented from mitk::CoreObjectFactoryBase.

◆ GetDescriptionForExtension()

std::string mitk::CoreObjectFactory::GetDescriptionForExtension ( const std::string &  extension)

◆ GetFileExtensions()

virtual std::string mitk::CoreObjectFactory::GetFileExtensions ( )
overridevirtual

This method gets the supported (open) file extensions as string.

This string can then used by the Qt QFileDialog widget.

Returns
The c-string that contains the file extensions
Deprecated:
(as of 2014_10) See mitk::FileReaderRegistry and QmitkIOUtil

Implements mitk::CoreObjectFactoryBase.

◆ GetFileExtensionsMap()

virtual MultimapType mitk::CoreObjectFactory::GetFileExtensionsMap ( )
overridevirtual

get the defined (open) file extension map

Returns
the defined (open) file extension map
Deprecated:
(as of 2014_10) See mitk::FileReaderRegistry and QmitkIOUtil

Implements mitk::CoreObjectFactoryBase.

◆ GetFileWriters()

virtual FileWriterList mitk::CoreObjectFactory::GetFileWriters ( )
virtual

◆ GetInstance()

static Pointer mitk::CoreObjectFactory::GetInstance ( )
static

◆ GetSaveFileExtensions()

virtual std::string mitk::CoreObjectFactory::GetSaveFileExtensions ( )
overridevirtual

This method gets the supported (save) file extensions as string.

This string can then used by the Qt QFileDialog widget.

Returns
The c-string that contains the (save) file extensions
Deprecated:
(as of 2014_10) See mitk::FileWriterRegistry and QmitkIOUtil

Implements mitk::CoreObjectFactoryBase.

◆ GetSaveFileExtensionsMap()

MultimapType mitk::CoreObjectFactory::GetSaveFileExtensionsMap ( )
overridevirtual

get the defined (save) file extension map

Returns
the defined (save) file extension map
Deprecated:
(as of 2014_10) See mitk::FileWriterRegistry and QmitkIOUtil

Implements mitk::CoreObjectFactoryBase.

◆ GetStaticNameOfClass()

static const char* mitk::CoreObjectFactory::GetStaticNameOfClass ( )
inlinestatic

Definition at line 31 of file mitkCoreObjectFactory.h.

◆ MapEvent()

virtual void mitk::CoreObjectFactory::MapEvent ( const mitk::Event *  event,
const int  eventID 
)
virtual

◆ MergeFileExtensions()

void mitk::CoreObjectFactory::MergeFileExtensions ( MultimapType fileExtensionsMap,
MultimapType  inputMap 
)
protected

Merge the input map into the fileExtensionsMap. Duplicate entries are removed.

Parameters
fileExtensionsMapthe existing map, it contains value pairs like ("*.dcm", "DICOM files"),("*.dc3", "DICOM files"). This map is extented/merged with the values from the input map.
inputMapthe input map, it contains value pairs like ("*.dcm", "DICOM files"),("*.dc3", "DICOM files") returned by the extra factories.
Deprecated:
(as of 2014_10)

◆ New()

static Pointer mitk::CoreObjectFactory::New ( )
static

◆ RegisterExtraFactory()

virtual void mitk::CoreObjectFactory::RegisterExtraFactory ( CoreObjectFactoryBase factory)
virtual

◆ SetDefaultProperties()

void mitk::CoreObjectFactory::SetDefaultProperties ( mitk::DataNode node)
overridevirtual

◆ UnRegisterExtraFactory()

virtual void mitk::CoreObjectFactory::UnRegisterExtraFactory ( CoreObjectFactoryBase factory)
virtual

Member Data Documentation

◆ m_ExtraFactories

ExtraFactoriesContainer mitk::CoreObjectFactory::m_ExtraFactories
protected

Definition at line 120 of file mitkCoreObjectFactory.h.

◆ m_FileExtensions

std::string mitk::CoreObjectFactory::m_FileExtensions
protected

Definition at line 122 of file mitkCoreObjectFactory.h.

◆ m_FileExtensionsMap

MultimapType mitk::CoreObjectFactory::m_FileExtensionsMap
protected

Definition at line 123 of file mitkCoreObjectFactory.h.

◆ m_FileWriters

FileWriterList mitk::CoreObjectFactory::m_FileWriters
protected

Definition at line 121 of file mitkCoreObjectFactory.h.

◆ m_SaveFileExtensions

std::string mitk::CoreObjectFactory::m_SaveFileExtensions
protected

Definition at line 124 of file mitkCoreObjectFactory.h.

◆ m_SaveFileExtensionsMap

MultimapType mitk::CoreObjectFactory::m_SaveFileExtensionsMap
protected

Definition at line 125 of file mitkCoreObjectFactory.h.


The documentation for this class was generated from the following file: