Inviwo 0.9.12-pre
Inviwo documentation
|
#include <representationfactorymanager.h>
Public Member Functions | |
RepresentationMetaFactory * | getRepresentationMetaFactory () |
RepresentationConverterMetaFactory * | getRepresentationConverterMetaFactory () |
template<typename BaseRepr > | |
void | registerRepresentationFactoryObject (std::unique_ptr< RepresentationFactoryObject< BaseRepr > > representation) |
void | registerRepresentationFactory (std::unique_ptr< BaseRepresentationFactory > representationFactory) |
template<typename BaseRepr > | |
void | registerRepresentationConverter (std::unique_ptr< RepresentationConverter< BaseRepr > > converter) |
void | registerRepresentationConverterFactory (std::unique_ptr< BaseRepresentationConverterFactory > converterFactory) |
Static Public Member Functions | |
template<typename BaseRepr > | |
static RepresentationFactory< BaseRepr > * | getRepresentationFactory () |
template<typename BaseRepr > | |
static RepresentationConverterFactory< BaseRepr > * | getRepresentationConverterFactory () |
The RepresentationFactoryManager is a indirection layer between Data and the Representation/RepresentationConverter Factories. The RepresentationFactoryManager is responsible for providing the factories to Data, by default it will redirect the request to the InviwoApplication. But in the case where when we are not running the InviwoApplication, like in some unit tests, a instance of the RepresentationFactoryManager can be constructed and the relevant factories initialized directly, without having to initialize all of InviwoApplication. We use this in the base module unit tests for example.
|
inlinestatic |
Get a Representation converter factory for a specific kind of representation (Volume Representation, Layer Representation, Buffer Representation, etc) This function will use the local representation factory if available, otherwise it will forward to the InviwoApplication
Get a Representation converter factory for a specific kind of representation (Volume Representation, Layer Representation, Buffer Representation, etc)
|
inline |
Get the local RepresentationConverterMetaFactory
|
inlinestatic |
Get a Representation factory for a specific kind of representation (Volume Representation, Layer Representation, Buffer Representation, etc) This function will use the local representation converter factory if available, otherwise it will forward to the InviwoApplication
Get a Representation factory for a specific kind of representation (Volume Representation, Layer Representation, Buffer Representation, etc)
|
inline |
Get the local RepresentationMetaFactory
void inviwo::RepresentationFactoryManager::registerRepresentationConverter | ( | std::unique_ptr< RepresentationConverter< BaseRepr > > | converter | ) |
Register a representation converter with the respective representation converter factory. The template type BaseRepr is used to select representation converter factory. A representation converter should implement RepresentationConverterType
void inviwo::RepresentationFactoryManager::registerRepresentationConverterFactory | ( | std::unique_ptr< BaseRepresentationConverterFactory > | converterFactory | ) |
Register a factory for representation converters. Each base representation (Volume Representation, Layer Representation, Buffer Representation, etc) has its own representation converter factory. A converter factory should implement RepresentationConverterFactory
void inviwo::RepresentationFactoryManager::registerRepresentationFactory | ( | std::unique_ptr< BaseRepresentationFactory > | representationFactory | ) |
Register a factory for representations. Each base representation (Volume Representation, Layer Representation, Buffer Representation, etc) has its own representation factory. A representation factory should implement RepresentationFactory
void inviwo::RepresentationFactoryManager::registerRepresentationFactoryObject | ( | std::unique_ptr< RepresentationFactoryObject< BaseRepr > > | representation | ) |
Register a representation factory object for creating representations with the respective representation factory. The template type BaseRepr is used to select representation factory. A representation factory object should implement RepresentationFactoryObject