#include <inviwo/core/datastructures/representationfactory.h>
|
|
using | BaseReprId = std::type_index |
| |
|
void | notifyObserversOnRegister (FactoryObject *p) |
| |
|
void | notifyObserversOnUnRegister (FactoryObject *p) |
| |
|
template<typename C > |
| void | forEachObserver (C callback) |
| |
|
void | addObservationHelper (Observer *observer) |
| |
|
void | removeObservationHelper (Observer *observer) |
| |
|
std::map< Key, FactoryObject *, std::less<> > | map_ |
| |
template<typename Representation>
class inviwo::RepresentationFactory< Representation >
Factory for representations of a specific base type (Volume Representation, Layer Representation, Buffer Representation, etc)
- Template Parameters
-
| Representation | the base representation type for the factory. All registered representation has to derive from this base class (for example |
- See also
- VolumeRepresentation)
-
Data
-
DataRepresentation
-
RepresentationFactoryObject
-
RepresentationMetaFactory
-
InviwoApplication::getRepresentationFactory()
-
InviwoModule::registerRepresentationFactoryObject()
-
InviwoModule::registerRepresentationFactory()
◆ RepresentationFactory()
template<typename Representation >
Create a RepresentationFactory
- Parameters
-
| defaultRepresentation | Id of the default representation type to use in the factory |
◆ createOrDefault()
template<typename Representation >
| std::unique_ptr< Representation > inviwo::RepresentationFactory< Representation >::createOrDefault |
( |
BaseReprId | id, |
|
|
const typename Representation::ReprOwner * | owner ) |
|
inline |
Try to create a representation of the requested type, if that type was not found, return a representation of the default type.
◆ getBaseReprId()
template<typename Representation >
The documentation for this class was generated from the following file:
- include/inviwo/core/datastructures/representationfactory.h