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

This class provides the OSG-specific management of post-processing effects. More...

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

Public Member Functions

virtual ~DtPostProcessManager ()
virtual void update (DtChannel *inChannel)
 Called by the channel prior to rendering the channel Configures the post processors for this channel.
bool hasPostProcessor (DtChannel *channel, const std::string &processorType)
 Is a post processor of this type in this channel?
bool hasEffect (DtChannel *channel, const std::string &effect)
 Is there an effect with this name in this channel?
bool enablePostProcessor (DtChannel *channel, const std::string &processorType)
 Enable or disable a post processor by name for a particular channel.
bool disablePostProcessor (DtChannel *channel, const std::string &processorType)
bool enableEffect (DtChannel *channel, const std::string &effect)
 Enable or disable an effect by name for a particular channel.
bool disableEffect (DtChannel *channel, const std::string &effect)
bool enableEffects (DtChannel *channel, EffectNameList &effectPostList)
 Enable or disable a list of effects by name for a particular channel.
bool disableEffects (DtChannel *channel, EffectNameList &effectPostList)
 Disable post processors based on a list of effect names for this channel for this frame.
- Public Member Functions inherited from makVrv::DtPostProcessManagerInterface
virtual ~DtPostProcessManagerInterface ()
 DTOR.
void setPostProcessorsEnabled (bool enable)
 Enable/disable all vrv Post Processors (used when SensorFX or CameraFX are enabled)
bool postProcessorsEnabled () const
 Get the enable post processors state.
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor.
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor.

Protected Types

typedef std::map< std::string,
DtPostProcessor * > 
EffectToPostProcessorMap
typedef boost::unordered_map
< DtChannel
*, EffectToPostProcessorMap
ChannelEffectToPostMap
typedef std::map< std::string,
DtPostProcessor * > 
ProcessorTypeToPostProcessorMap
typedef boost::unordered_map
< DtChannel
*, ProcessorTypeToPostProcessorMap
ChannelTypeToPostMap

Protected Member Functions

virtual void slot_channelCreated (DtChannelManager *channelManager, DtChannel *channel)
 Create list of post processors.
virtual void slot_channelDestroyed (DtChannelManager *channelManager, DtChannel *channel)
 Function when a channel is destroyed so we can delete the post processors and data structures associated with this channel.
virtual void slot_observerSettingChanged (DtObserverObject *observer, int setting, bool value)
 Function for when an observerSettings is changed.
bool setPostProcessorEnable (DtChannel *channel, const std::string &processorType, bool enabled)
 Enable or disable a whole post processor by name for a particular channel.
bool setEffectEnable (DtChannel *channel, const std::string &effect, bool enabled)
 Enable or disable an effect by name for a particular channel.
DtPostProcessorpostProcessorFromType (DtChannel *channel, const std::string &type)
 Find the post processor with this type (ex. 'wateronscreen')
DtPostProcessorpostProcessorFromEffect (DtChannel *channel, const std::string &effect)
 Find the post processor with this effect (ex.
void deletePostProcessorMaps (DtChannel *channel)
 delete the post processors associated with this channel and clear any related data structures
 DtPostProcessManager (DtDe &de)
- Protected Member Functions inherited from makVrv::DtPostProcessManagerInterface
 DtPostProcessManagerInterface ()
 Unimplemented.
 DtPostProcessManagerInterface (DtDe &de)
 CTOR.

Protected Attributes

ChannelEffectToPostMap myEffectToPostProcessorMap
ChannelTypeToPostMap myPostProcessorTypeToPostProcessorMap
- Protected Attributes inherited from makVrv::DtPostProcessManagerInterface
DtSignalConnectionManager myConnections
DtDemyDe
bool myEnablePostProcessors

Friends

class DtPostProcessManagerCreator

Additional Inherited Members

- Public Types inherited from makVrv::DtPostProcessManagerInterface
typedef std::list< std::string > EffectNameList
 List of effect names.
- Static Public Member Functions inherited from makVrv::DtPostProcessManagerInterface
static
DtPostProcessManagerInterface
instance (DtDe &de)
 Get/create instance of sky object manager.
static std::string theClassName ()
 Get the name this class is registered by.

Detailed Description

This class provides the OSG-specific management of post-processing effects.

Member Typedef Documentation

Constructor & Destructor Documentation

virtual makVrv::DtPostProcessManager::~DtPostProcessManager ( )
virtual
makVrv::DtPostProcessManager::DtPostProcessManager ( DtDe de)
protected

Member Function Documentation

virtual void makVrv::DtPostProcessManager::update ( DtChannel inChannel)
virtual

Called by the channel prior to rendering the channel Configures the post processors for this channel.

Implements makVrv::DtPostProcessManagerInterface.

bool makVrv::DtPostProcessManager::hasPostProcessor ( DtChannel channel,
const std::string &  processorType 
)

Is a post processor of this type in this channel?

bool makVrv::DtPostProcessManager::enablePostProcessor ( DtChannel channel,
const std::string &  processorType 
)

Enable or disable a post processor by name for a particular channel.

bool makVrv::DtPostProcessManager::disablePostProcessor ( DtChannel channel,
const std::string &  processorType 
)
bool makVrv::DtPostProcessManager::hasEffect ( DtChannel channel,
const std::string &  effect 
)

Is there an effect with this name in this channel?

bool makVrv::DtPostProcessManager::enableEffect ( DtChannel channel,
const std::string &  effect 
)

Enable or disable an effect by name for a particular channel.

bool makVrv::DtPostProcessManager::disableEffect ( DtChannel channel,
const std::string &  effect 
)
bool makVrv::DtPostProcessManager::enableEffects ( DtChannel channel,
EffectNameList effectPostList 
)
virtual

Enable or disable a list of effects by name for a particular channel.

Implements makVrv::DtPostProcessManagerInterface.

bool makVrv::DtPostProcessManager::disableEffects ( DtChannel channel,
EffectNameList effectPostList 
)
virtual

Disable post processors based on a list of effect names for this channel for this frame.

Implements makVrv::DtPostProcessManagerInterface.

virtual void makVrv::DtPostProcessManager::slot_channelCreated ( DtChannelManager channelManager,
DtChannel channel 
)
protectedvirtual

Create list of post processors.

Implements makVrv::DtPostProcessManagerInterface.

virtual void makVrv::DtPostProcessManager::slot_channelDestroyed ( DtChannelManager channelManager,
DtChannel channel 
)
protectedvirtual

Function when a channel is destroyed so we can delete the post processors and data structures associated with this channel.

Implements makVrv::DtPostProcessManagerInterface.

virtual void makVrv::DtPostProcessManager::slot_observerSettingChanged ( DtObserverObject observer,
int  setting,
bool  value 
)
protectedvirtual

Function for when an observerSettings is changed.

bool makVrv::DtPostProcessManager::setPostProcessorEnable ( DtChannel channel,
const std::string &  processorType,
bool  enabled 
)
protected

Enable or disable a whole post processor by name for a particular channel.

bool makVrv::DtPostProcessManager::setEffectEnable ( DtChannel channel,
const std::string &  effect,
bool  enabled 
)
protected

Enable or disable an effect by name for a particular channel.

DtPostProcessor* makVrv::DtPostProcessManager::postProcessorFromType ( DtChannel channel,
const std::string &  type 
)
protected

Find the post processor with this type (ex. 'wateronscreen')

DtPostProcessor* makVrv::DtPostProcessManager::postProcessorFromEffect ( DtChannel channel,
const std::string &  effect 
)
protected

Find the post processor with this effect (ex.

'oceanspray') Our channel shouldn't have two effects with the same name

void makVrv::DtPostProcessManager::deletePostProcessorMaps ( DtChannel channel)
protected

delete the post processors associated with this channel and clear any related data structures

Friends And Related Function Documentation

friend class DtPostProcessManagerCreator
friend

Member Data Documentation

ChannelEffectToPostMap makVrv::DtPostProcessManager::myEffectToPostProcessorMap
protected
ChannelTypeToPostMap makVrv::DtPostProcessManager::myPostProcessorTypeToPostProcessorMap
protected

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

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)