#include <representationfactory.h>
|
|
using | BaseReprId = std::type_index |
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: