![]() |
Inviwo 0.9.12-pre
Inviwo documentation
|
#include <inviwo/core/datastructures/representationfactory.h>
Public Member Functions | |
| std::unique_ptr< Representation > | createOrDefault (BaseReprId id, const typename Representation::ReprOwner *owner) |
| virtual BaseReprId | getBaseReprId () const override |
| RepresentationFactory (BaseReprId defaultRepresentation) | |
| 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... > | |
| virtual std::shared_ptr< Representation > | createShared (std::type_index key, Args... args) const |
| Factory & | operator= (const Factory &)=delete |
| Public Member Functions inherited from inviwo::FactoryRegister< RepresentationFactoryObject< Representation >, factoryKeyType< std::type_index >, std::type_index > | |
| RepresentationFactoryObject< Representation > * | getFactoryObject (std::type_index key) const |
| std::vector< factoryKeyType< std::type_index > > | getKeys () const |
| auto | getKeyView () const |
| bool | hasKey (std::type_index key) const |
| virtual bool | registerObject (RepresentationFactoryObject< Representation > *obj) |
| virtual bool | unRegisterObject (RepresentationFactoryObject< Representation > *obj) |
| Public Member Functions inherited from inviwo::Observable< FactoryObserver< RepresentationFactoryObject< Representation > > > | |
| void | addObserver (FactoryObserver< RepresentationFactoryObject< Representation > > *observer) |
| bool | isObservedBy (FactoryObserver< RepresentationFactoryObject< Representation > > *observer) const |
| Observable< FactoryObserver< RepresentationFactoryObject< Representation > > > & | operator= (const Observable< FactoryObserver< RepresentationFactoryObject< Representation > > > &other) |
| void | removeObserver (FactoryObserver< RepresentationFactoryObject< Representation > > *observer) |
| virtual void | startBlockingNotifications () override final |
| virtual void | stopBlockingNotifications () override final |
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) |
| virtual void | addObserver (Observer *observer)=0 |
| void | removeObservationHelper (Observer *observer) |
| virtual void | removeObserver (Observer *observer)=0 |
| 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.