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

A post processing effect responsible for submitting and mirroring the eye views to the VR subsystem. More...

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

Public Member Functions

 DtVirtualRealityPostProcessor (makVrv::DtDe &de)
 CTOR.
virtual ~DtVirtualRealityPostProcessor ()
 DTOR.
virtual bool update (makVrv::DtChannel *channel)
 update called every frame for every channel this is enabled on
osg::Texture2D * inputTexture ()
 public access to the the image that is passed into this post processor
- Public Member Functions inherited from makVrv::DtPostProcessor
 DtPostProcessor (const std::string &postProcessType, bool handles2D)
 CTOR.
virtual ~DtPostProcessor ()
 DTOR.
virtual void setFragmentShaderSource (const char *source)
 Sets fragment shader source for this post-processor.
virtual void setVertexShaderSource (const char *source)
 Sets vertex shader source for this post-processor.
virtual void setFragmentShaderFile (const std::string &fileName)
 Sets fragment shader file for this post-processor.
virtual void setVertexShaderFile (const std::string &fileName)
 Sets vertex shader file for this post-processor.
virtual void setInputTexture (const DtChannel *channel, osg::Texture2D *texture)
 Sets the image that is postprocessed; this may be the 3D scene rendered to a texture, or the output texture of a chained post processor.
virtual osg::Texture2D * outputTexture ()
 Gets the output texture of this post processor, for use in chaining processors together.
virtual void setIsFinalEffect (const DtChannel *channel, bool final)
 Called by the DtPostProcessManager to indicate if this is the last post processor in the chain, and should render to the framebuffer.
virtual osg::Camera * cameraForChannel (const DtChannel *channel)
 Gets the Camera node associated with this effect and channel.
virtual void releaseGLObjects ()
virtual bool hasEffect (const std::string &effect)
 Does this post processor support this effect?
virtual bool effectEnabled (const std::string &effect)
 Is this effect (post processor sub-component) enabled?
virtual bool anyEffectEnabled ()
 Are any effects enabled?
virtual std::list< std::string > supportedEffects ()
 Get a list of supported effects for this post processor.
virtual bool handles2D () const
 Retrieves whether this post processor should be used in 2D orthographic views, as specified in its constructor.
virtual const std::string & type () const
 Gets the type of the post processor.
virtual bool postProcessorEnabled () const
 Is this post processor enabled?
virtual bool enableEffect (const std::string &effect)
 Enable a particular post processing technique For example, "wateroncamera" has techniques "rainsplash", "oceanspray", and "wavesplash".
virtual bool disableEffect (const std::string &effect)
virtual void enablePostProcessor ()
 Enable or disable the post processor.
virtual void disablePostProcessor ()

Protected Attributes

makVrv::DtDemyDe
osg::Texture2D * myMirrorTexture
- Protected Attributes inherited from makVrv::DtPostProcessor
osg::ref_ptr< osg::Texture2D > myOutputTexture
osg::ref_ptr< osg::Texture2D > myInputTexture
osg::ref_ptr< osg::Program > myProgram
osg::ref_ptr< osg::Shader > myFragmentShader
osg::ref_ptr< osg::Shader > myVertexShader
osg::ref_ptr< osg::Geode > myQuad
CameraMap myCameraMap
bool myHandles2DFlag
bool myEnabledFlag
std::string myType
EffectMap myEffects
CallbackMap myCullCallbackMap

Private Member Functions

 DtVirtualRealityPostProcessor ()
 private default constructor
 DtVirtualRealityPostProcessor (const DtVirtualRealityPostProcessor &)
 prevent copy-construction
DtVirtualRealityPostProcessoroperator= (const DtVirtualRealityPostProcessor &)
 prevent assignment

Additional Inherited Members

- Protected Types inherited from makVrv::DtPostProcessor
typedef boost::unordered_map
< std::string, bool
EffectMap
typedef std::map< const
DtChannel *, osg::ref_ptr
< osg::Camera > > 
CameraMap
typedef osg::ref_ptr
< DtPostProcessorCullVistorCallback
CallbackRefPtr
typedef std::map< const
DtChannel *, CallbackRefPtr
CallbackMap
- Protected Member Functions inherited from makVrv::DtPostProcessor
virtual bool effectItrEnabled (EffectMap::iterator &effect)
virtual void initialize ()
virtual void addEffect (std::string effect)
 When constructing a post processor, add the names of the sub-components (effects) that can be enabled and disabled.
virtual void setEnablePostProcessor (bool enabled)
 Set the post processor enabled state (true = enabled)

Detailed Description

A post processing effect responsible for submitting and mirroring the eye views to the VR subsystem.

This needs to be last in the post processing effects chain in order to capture HDR and sensor effects in the HMD view.

Constructor & Destructor Documentation

makVrv::DtVirtualRealityPostProcessor::DtVirtualRealityPostProcessor ( )
private

private default constructor

makVrv::DtVirtualRealityPostProcessor::DtVirtualRealityPostProcessor ( const DtVirtualRealityPostProcessor )
private

prevent copy-construction

makVrv::DtVirtualRealityPostProcessor::DtVirtualRealityPostProcessor ( makVrv::DtDe de)

CTOR.

virtual makVrv::DtVirtualRealityPostProcessor::~DtVirtualRealityPostProcessor ( )
virtual

DTOR.

Member Function Documentation

DtVirtualRealityPostProcessor& makVrv::DtVirtualRealityPostProcessor::operator= ( const DtVirtualRealityPostProcessor )
private

prevent assignment

virtual bool makVrv::DtVirtualRealityPostProcessor::update ( makVrv::DtChannel channel)
virtual

update called every frame for every channel this is enabled on

Implements makVrv::DtPostProcessor.

osg::Texture2D* makVrv::DtVirtualRealityPostProcessor::inputTexture ( )

public access to the the image that is passed into this post processor

Member Data Documentation

makVrv::DtDe& makVrv::DtVirtualRealityPostProcessor::myDe
protected
osg::Texture2D* makVrv::DtVirtualRealityPostProcessor::myMirrorTexture
protected

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

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)