Medical Imaging Interaction Toolkit  2016.11.0
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
 
virtual Mapper::Pointer CreateMapper (mitk::DataNode *node, MapperSlotId slotId) override
 
virtual 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 ()
 
virtual const char * 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 const char * GetSaveFileExtensions () override
 This method gets the supported (save) file extensions as string. More...
 
virtual 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 32 of file mitkCoreObjectFactory.h.

Member Typedef Documentation

Constructor & Destructor Documentation

mitk::CoreObjectFactory::~CoreObjectFactory ( )

Definition at line 91 of file mitkCoreObjectFactory.cpp.

References mitk::ImageMappingHelper::map().

mitk::CoreObjectFactory::CoreObjectFactory ( )
protected

Definition at line 154 of file mitkCoreObjectFactory.cpp.

Member Function Documentation

void mitk::CoreObjectFactory::CreateFileExtensionsMap ( )
protected

initialize the file extension entries for open and save

Deprecated:
(as of 2014_10)

Definition at line 275 of file mitkCoreObjectFactory.cpp.

void mitk::CoreObjectFactory::CreateSaveFileExtensions ( )
protected
Deprecated:
(as of 2014_10)
virtual std::vector<std::string> mitk::CoreObjectFactory::GetClassHierarchy ( ) const
inlineoverridevirtual

Reimplemented from mitk::CoreObjectFactoryBase.

Definition at line 35 of file mitkCoreObjectFactory.h.

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

Reimplemented from mitk::CoreObjectFactoryBase.

std::string mitk::CoreObjectFactory::GetDescriptionForExtension ( const std::string &  extension)
Deprecated:
(as of 2014_10) See mitk::FileWriterRegistry and QmitkIOUtil

Definition at line 336 of file mitkCoreObjectFactory.cpp.

const char * 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.

Definition at line 233 of file mitkCoreObjectFactory.cpp.

mitk::CoreObjectFactoryBase::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.

Definition at line 270 of file mitkCoreObjectFactory.cpp.

mitk::CoreObjectFactory::FileWriterList mitk::CoreObjectFactory::GetFileWriters ( )
virtual
Deprecated:
(as of 2014_10) See mitk::FileWriterRegistry

Definition at line 307 of file mitkCoreObjectFactory.cpp.

const char * 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.

Definition at line 290 of file mitkCoreObjectFactory.cpp.

mitk::CoreObjectFactoryBase::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.

Definition at line 302 of file mitkCoreObjectFactory.cpp.

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

Definition at line 35 of file mitkCoreObjectFactory.h.

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

Definition at line 332 of file mitkCoreObjectFactory.cpp.

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)

Definition at line 245 of file mitkCoreObjectFactory.cpp.

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

Referenced by GetInstance().

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

Definition at line 57 of file mitkCoreObjectFactory.cpp.

References m_ExtraFactories, and MITK_DEBUG.

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

Definition at line 66 of file mitkCoreObjectFactory.cpp.

References MITK_DEBUG, and MITK_ERROR.

Member Data Documentation

ExtraFactoriesContainer mitk::CoreObjectFactory::m_ExtraFactories
protected

Definition at line 123 of file mitkCoreObjectFactory.h.

Referenced by RegisterExtraFactory().

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

Definition at line 125 of file mitkCoreObjectFactory.h.

MultimapType mitk::CoreObjectFactory::m_FileExtensionsMap
protected

Definition at line 126 of file mitkCoreObjectFactory.h.

FileWriterList mitk::CoreObjectFactory::m_FileWriters
protected

Definition at line 124 of file mitkCoreObjectFactory.h.

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

Definition at line 127 of file mitkCoreObjectFactory.h.

MultimapType mitk::CoreObjectFactory::m_SaveFileExtensionsMap
protected

Definition at line 128 of file mitkCoreObjectFactory.h.


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