Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::RepresentationFactory< Representation > Class Template Reference

#include <representationfactory.h>

Inheritance diagram for inviwo::RepresentationFactory< Representation >:

Public Member Functions

 RepresentationFactory (BaseReprId defaultRepresentation)
virtual BaseReprId getBaseReprId () const override
std::unique_ptr< Representation > createOrDefault (BaseReprId id, const typename Representation::ReprOwner *owner)

Additional Inherited Members

Public Types inherited from inviwo::BaseRepresentationFactory
using BaseReprId = std::type_index

Detailed Description

template<typename Representation>
class inviwo::RepresentationFactory< Representation >

Factory for representations of a specific base type (Volume Representation, Layer Representation, Buffer Representation, etc)

Template Parameters
Representationthe 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()

Constructor & Destructor Documentation

◆ RepresentationFactory()

template<typename Representation>
inviwo::RepresentationFactory< Representation >::RepresentationFactory ( BaseReprId defaultRepresentation)
inline

Create a RepresentationFactory

Parameters
defaultRepresentationId of the default representation type to use in the factory

Member Function Documentation

◆ 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>
virtual BaseReprId inviwo::RepresentationFactory< Representation >::getBaseReprId ( ) const
inlineoverridevirtual

The documentation for this class was generated from the following file:
  • representationfactory.h