VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
makVrv::DtPostProcessorFactory Class Reference

Factory to create the specific DtPostProcessors registered when vrvOsg starts up. More...

Inheritance diagram for makVrv::DtPostProcessorFactory:
Inheritance graph
[legend]

Public Types

typedef std::list< std::string > PostProcessorNameList

Public Member Functions

virtual ~DtPostProcessorFactory ()
 DTOR.
virtual void addCreator (const std::string &postProcessorType, DtPostProcessorCreator *creator)
 Add a creator function for the specified post processor type.
virtual void postProcessorTypesSupported (std::list< std::string > &postProcessorTypes) const
 Get the list of the display names of post processor element types that can be created.
virtual DtPostProcessorcreatePostProcessor (const std::string &postProcessType) const
 Create a post processor - normally doesn't handle 2D views (like plan view)
void registerEffect (std::string postProcessor, std::string effectName, DtObserverSettingsManager::ObserverSetting obsSettingId)
 Associate an observer setting enum with an particular post processor effect name.
DtObserverSettingsManager::ObserverSetting observerSettingIdForEffect (std::string &effectName)
 Retrieve the observer setting id for an effect.
std::string effectForObserverSettingId (DtObserverSettingsManager::ObserverSetting observerSettingId)
 Retrieve the effect given a particular observer setting id.
bool setOrder (std::list< std::string > &postList)
bool hasPostProcessor (const std::string &processorType)
 Is this post process in the current post processor chain.
bool addPostProcessorAtEnd (const std::string &processorType)
 Create and append a post processor effect to all 3D views.
bool addPostProcessorBefore (const std::string &processorType, const std::string &beforeType)
 Create a post processor by name and insert it before another named post processor.
bool addPostProcessorAfter (const std::string &processorType, const std::string &afterType)
 Create a post processor by name and insert it after another named post processor.
bool addPostProcessorAtBeginning (const std::string &processorType)
 Create and prepend a post processor effect that runs before all previously post processors.
void moveDown (const std::string &processorType)
 Move a post processor down in the list.
void moveUp (const std::string &processorType)
 Move a post processor up in the list.
void removePostProcessor (const std::string &processorType)
 Remove this post processor from the list and delete the post processor.
void removeAllPostProcessors ()
 Removes all post processor effect.
void printAllPostProcessors ()
 Loop through all current post processors and print out their names (for debug)
PostProcessorNameListpostProcessorNames ()
 Copy of all the post processor names.
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor.
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor.

Static Public Member Functions

static DtPostProcessorFactoryinstance (DtDe &de)
 Get an instance to the DtPostProcessorFactory.

Protected Types

typedef boost::unordered_map
< std::string,
DtPostProcessorCreator * > 
PostProcessCreators
typedef boost::unordered_map
< std::string,
DtObserverSettingsManager::ObserverSetting
EffectNameToObserverSettingIdMap
typedef boost::unordered_map
< DtObserverSettingsManager::ObserverSetting,
std::string > 
ObserverSettingIdToEffectNameMap

Protected Member Functions

 DtPostProcessorFactory (DtDe &de)
 Protected CTOR, use the static instance to get a factory instance.
bool canCreatePostProcessor (std::string &processorType)
 Can we create this type of post processor?

Protected Attributes

PostProcessCreators myPostProcessCreators
PostProcessorNameList myPostProcessorNames
ObserverSettingIdToEffectNameMap myObserverSettingToEffectNameMap
EffectNameToObserverSettingIdMap myEffectNameToObserverSettingMap
DtDemyDe

Detailed Description

Factory to create the specific DtPostProcessors registered when vrvOsg starts up.

Member Typedef Documentation

typedef boost::unordered_map<std::string, DtPostProcessorCreator*> makVrv::DtPostProcessorFactory::PostProcessCreators
protected

Constructor & Destructor Documentation

virtual makVrv::DtPostProcessorFactory::~DtPostProcessorFactory ( )
virtual

DTOR.

makVrv::DtPostProcessorFactory::DtPostProcessorFactory ( DtDe de)
protected

Protected CTOR, use the static instance to get a factory instance.

Member Function Documentation

static DtPostProcessorFactory& makVrv::DtPostProcessorFactory::instance ( DtDe de)
static

Get an instance to the DtPostProcessorFactory.

virtual void makVrv::DtPostProcessorFactory::addCreator ( const std::string &  postProcessorType,
DtPostProcessorCreator creator 
)
virtual

Add a creator function for the specified post processor type.

virtual void makVrv::DtPostProcessorFactory::postProcessorTypesSupported ( std::list< std::string > &  postProcessorTypes) const
virtual

Get the list of the display names of post processor element types that can be created.

virtual DtPostProcessor* makVrv::DtPostProcessorFactory::createPostProcessor ( const std::string &  postProcessType) const
virtual

Create a post processor - normally doesn't handle 2D views (like plan view)

void makVrv::DtPostProcessorFactory::registerEffect ( std::string  postProcessor,
std::string  effectName,
DtObserverSettingsManager::ObserverSetting  obsSettingId 
)

Associate an observer setting enum with an particular post processor effect name.

DtObserverSettingsManager::ObserverSetting makVrv::DtPostProcessorFactory::observerSettingIdForEffect ( std::string &  effectName)

Retrieve the observer setting id for an effect.

std::string makVrv::DtPostProcessorFactory::effectForObserverSettingId ( DtObserverSettingsManager::ObserverSetting  observerSettingId)

Retrieve the effect given a particular observer setting id.

bool makVrv::DtPostProcessorFactory::setOrder ( std::list< std::string > &  postList)
bool makVrv::DtPostProcessorFactory::hasPostProcessor ( const std::string &  processorType)

Is this post process in the current post processor chain.

bool makVrv::DtPostProcessorFactory::addPostProcessorAtEnd ( const std::string &  processorType)

Create and append a post processor effect to all 3D views.

The manager will new and delete.

bool makVrv::DtPostProcessorFactory::addPostProcessorBefore ( const std::string &  processorType,
const std::string &  beforeType 
)

Create a post processor by name and insert it before another named post processor.

bool makVrv::DtPostProcessorFactory::addPostProcessorAfter ( const std::string &  processorType,
const std::string &  afterType 
)

Create a post processor by name and insert it after another named post processor.

bool makVrv::DtPostProcessorFactory::addPostProcessorAtBeginning ( const std::string &  processorType)

Create and prepend a post processor effect that runs before all previously post processors.

The manager will new and delete.

void makVrv::DtPostProcessorFactory::moveDown ( const std::string &  processorType)

Move a post processor down in the list.

void makVrv::DtPostProcessorFactory::moveUp ( const std::string &  processorType)

Move a post processor up in the list.

void makVrv::DtPostProcessorFactory::removePostProcessor ( const std::string &  processorType)

Remove this post processor from the list and delete the post processor.

void makVrv::DtPostProcessorFactory::removeAllPostProcessors ( )

Removes all post processor effect.

void makVrv::DtPostProcessorFactory::printAllPostProcessors ( )

Loop through all current post processors and print out their names (for debug)

PostProcessorNameList& makVrv::DtPostProcessorFactory::postProcessorNames ( )

Copy of all the post processor names.

bool makVrv::DtPostProcessorFactory::canCreatePostProcessor ( std::string &  processorType)
protected

Can we create this type of post processor?

Member Data Documentation

PostProcessCreators makVrv::DtPostProcessorFactory::myPostProcessCreators
protected
PostProcessorNameList makVrv::DtPostProcessorFactory::myPostProcessorNames
protected
ObserverSettingIdToEffectNameMap makVrv::DtPostProcessorFactory::myObserverSettingToEffectNameMap
protected
EffectNameToObserverSettingIdMap makVrv::DtPostProcessorFactory::myEffectNameToObserverSettingMap
protected
DtDe& makVrv::DtPostProcessorFactory::myDe
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)