Inviwo 0.9.12-pre
Inviwo documentation
|
#include <representationfactory.h>
Public Member Functions | |
RepresentationFactory (BaseReprId defaultRepresentation) | |
virtual BaseReprId | getBaseReprId () const override |
std::unique_ptr< Representation > | createOrDefault (BaseReprId id, const typename Representation::ReprOwner *owner) |
Public Member Functions inherited from inviwo::BaseRepresentationFactory | |
Public Member Functions inherited from inviwo::StandardFactory< Representation, RepresentationFactoryObject< Representation >, std::type_index, const Representation::ReprOwner * > | |
virtual std::unique_ptr< Representation > | create (std::type_index key, Args... args) const override |
virtual bool | hasKey (std::type_index key) const override |
Public Member Functions inherited from inviwo::Factory< Representation, std::type_index, Args... > | |
Factory (const Factory &)=delete | |
Factory (Factory &&)=default | |
Factory & | operator= (const Factory &)=delete |
Factory & | operator= (Factory &&)=default |
virtual std::shared_ptr< Representation > | createShared (std::type_index key, Args... args) const |
Public Member Functions inherited from inviwo::FactoryRegister< RepresentationFactoryObject< Representation >, factoryKeyType< std::type_index >, std::type_index > | |
virtual bool | registerObject (RepresentationFactoryObject< Representation > *obj) |
virtual bool | unRegisterObject (RepresentationFactoryObject< Representation > *obj) |
bool | hasKey (std::type_index key) const |
std::vector< factoryKeyType< std::type_index > > | getKeys () const |
auto | getKeyView () const |
RepresentationFactoryObject< Representation > * | getFactoryObject (std::type_index key) const |
Public Member Functions inherited from inviwo::Observable< FactoryObserver< RepresentationFactoryObject< Representation > > > | |
Observable (const Observable< FactoryObserver< RepresentationFactoryObject< Representation > > > &other) | |
Observable (Observable< FactoryObserver< RepresentationFactoryObject< Representation > > > &&other) noexcept | |
Observable< FactoryObserver< RepresentationFactoryObject< Representation > > > & | operator= (const Observable< FactoryObserver< RepresentationFactoryObject< Representation > > > &other) |
Observable< FactoryObserver< RepresentationFactoryObject< Representation > > > & | operator= (Observable< FactoryObserver< RepresentationFactoryObject< Representation > > > &&other) noexcept |
void | addObserver (FactoryObserver< RepresentationFactoryObject< Representation > > *observer) |
void | removeObserver (FactoryObserver< RepresentationFactoryObject< Representation > > *observer) |
virtual void | startBlockingNotifications () override final |
virtual void | stopBlockingNotifications () override final |
Public Member Functions inherited from inviwo::ObservableInterface |
Additional Inherited Members | |
Public Types inherited from inviwo::BaseRepresentationFactory | |
using | BaseReprId = std::type_index |
Protected Member Functions inherited from inviwo::FactoryObservable< RepresentationFactoryObject< Representation > > | |
void | notifyObserversOnRegister (RepresentationFactoryObject< Representation > *p) |
void | notifyObserversOnUnRegister (RepresentationFactoryObject< Representation > *p) |
Protected Member Functions inherited from inviwo::Observable< FactoryObserver< RepresentationFactoryObject< Representation > > > | |
void | forEachObserver (C callback) |
Protected Member Functions inherited from inviwo::ObservableInterface | |
void | addObservationHelper (Observer *observer) |
void | removeObservationHelper (Observer *observer) |
Protected Attributes inherited from inviwo::FactoryRegister< RepresentationFactoryObject< Representation >, factoryKeyType< std::type_index >, std::type_index > | |
std::map< factoryKeyType< std::type_index >, RepresentationFactoryObject< Representation > *, std::less<> > | map_ |
Factory for representations of a specific base type (Volume Representation, Layer Representation, Buffer Representation, etc)
Representation | the base representation type for the factory. All registered representation has to derive from this base class (for example |
|
inline |
Create a RepresentationFactory
defaultRepresentation | Id of the default representation type to use in the factory |
|
inline |
Try to create a representation of the requested type, if that type was not found, return a representation of the default type.
|
inlineoverridevirtual |
Implements inviwo::BaseRepresentationFactory.