VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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.

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

Public Types

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

Public Member Functions

virtual ~DtPostProcessorFactory ()
 
virtual void addCreator (const std::string &postProcessorType, DtPostProcessorCreator *creator)
 
virtual void postProcessorTypesSupported (std::list< std::string > &postProcessorTypes) const
 
virtual DtPostProcessorcreatePostProcessor (const std::string &postProcessType) const
 
void registerEffect (std::string postProcessor, const std::string &effectName, DtObserverSettingsManager::ObserverSetting obsSettingId)
 
DtObserverSettingsManager::ObserverSetting observerSettingIdForEffect (std::string &effectName)
 
std::string effectForObserverSettingId (DtObserverSettingsManager::ObserverSetting observerSettingId)
 
bool setOrder (std::list< std::string > &postList)
 
bool hasPostProcessor (const std::string &processorType)
 
bool addPostProcessorAtEnd (const std::string &processorType)
 
bool addPostProcessorBefore (const std::string &processorType, const std::string &beforeType)
 
bool addPostProcessorAfter (const std::string &processorType, const std::string &afterType)
 
bool addPostProcessorAtBeginning (const std::string &processorType)
 
void moveDown (const std::string &processorType)
 
void moveUp (const std::string &processorType)
 
void removePostProcessor (const std::string &processorType)
 
void removeAllPostProcessors ()
 
void printAllPostProcessors ()
 
PostProcessorNameListpostProcessorNames ()
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 
virtual ~DtVirtualBaseClass ()
 

Static Public Member Functions

static DtPostProcessorFactoryinstance (DtDe &de)
 

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)
 
bool canCreatePostProcessor (std::string &processorType)
 

Protected Attributes

PostProcessCreators myPostProcessCreators
 
PostProcessorNameList myPostProcessorNames
 
ObserverSettingIdToEffectNameMap myObserverSettingToEffectNameMap
 
EffectNameToObserverSettingIdMap myEffectNameToObserverSettingMap
 
DtDemyDe
 

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,
const 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 Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)