VR-Forces 4.8 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::DtVideoStreamPostProcessor Class Reference

create a post processor that will provide us with it's input texture id used by the video stream process to get full dynamic range images from the GPU has a passthrough shader so the scene will still show up in the VRV Gui More...

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

Public Member Functions

 DtVideoStreamPostProcessor (DtDe &de, const std::string &postProcessorType)
 constructor which sets up the myDe object More...
 
virtual ~DtVideoStreamPostProcessor ()
 destructor More...
 
virtual bool update (DtChannel *channel)
 Called once per frame, per channel. More...
 
virtual void slot_reloadShaders ()
 slot for handling when the shaders are reloaded which recreates the Drawable More...
 
virtual GLuint inputTexId ()
 get the opengl texture id for the input texture for this post processor More...
 
- Public Member Functions inherited from makVrv::DtPostProcessor
 DtPostProcessor (const std::string &postProcessType, bool handles2D)
 CTOR. More...
 
virtual ~DtPostProcessor ()
 DTOR. More...
 
virtual void setFragmentShaderSource (const char *source)
 Sets fragment shader source for this post-processor. More...
 
virtual void setVertexShaderSource (const char *source)
 Sets vertex shader source for this post-processor. More...
 
virtual void setFragmentShaderFile (const std::string &fileName)
 Sets fragment shader file for this post-processor. More...
 
virtual void setVertexShaderFile (const std::string &fileName)
 Sets vertex shader file for this post-processor. More...
 
virtual void setInputTexture (const DtChannel *channel, osg::Texture *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. More...
 
virtual osg::Texture * outputTexture ()
 Gets the output texture of this post processor, for use in chaining processors together. More...
 
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. More...
 
virtual osg::Camera * cameraForChannel (const DtChannel *channel)
 Gets the Camera node associated with this effect and channel. More...
 
virtual void releaseGLObjects ()
 
virtual bool hasEffect (const std::string &effect)
 Does this post processor support this effect? More...
 
virtual bool effectEnabled (const std::string &effect)
 Is this effect (post processor sub-component) enabled? More...
 
virtual bool anyEffectEnabled ()
 Are any effects enabled? More...
 
virtual std::list< std::string > supportedEffects ()
 Get a list of supported effects for this post processor. More...
 
virtual bool handles2D () const
 Retrieves whether this post processor should be used in 2D orthographic views, as specified in its constructor. More...
 
virtual const std::string & type () const
 Gets the type of the post processor. More...
 
virtual bool postProcessorEnabled () const
 Is this post processor enabled? More...
 
virtual bool enableEffect (const std::string &effect)
 Enable a particular post processing technique For example, "wateroncamera" has techniques "rainsplash", "oceanspray", and "wavesplash". More...
 
virtual bool disableEffect (const std::string &effect)
 
virtual void enablePostProcessor ()
 Enable or disable the post processor. More...
 
virtual void disablePostProcessor ()
 

Protected Attributes

DtDemyDe
 
DtSignalConnectionManager myConnections
 
DtVideoStreamPostProcessorDrawablemyPostProcessorDrawable
 
- Protected Attributes inherited from makVrv::DtPostProcessor
osg::ref_ptr< osg::Texture > myOutputTexture
 
osg::ref_ptr< osg::Texture > 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

 DtVideoStreamPostProcessor ()
 private default constructor. not allowed. More...
 
 DtVideoStreamPostProcessor (const DtVideoStreamPostProcessor &)
 prevent copy-construction More...
 
DtVideoStreamPostProcessoroperator= (const DtVideoStreamPostProcessor &)
 prevent assignment More...
 

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. More...
 
virtual void setEnablePostProcessor (bool enabled)
 Set the post processor enabled state (true = enabled) More...
 

Detailed Description

create a post processor that will provide us with it's input texture id used by the video stream process to get full dynamic range images from the GPU has a passthrough shader so the scene will still show up in the VRV Gui

Constructor & Destructor Documentation

makVrv::DtVideoStreamPostProcessor::DtVideoStreamPostProcessor ( DtDe de,
const std::string &  postProcessorType 
)

constructor which sets up the myDe object

virtual makVrv::DtVideoStreamPostProcessor::~DtVideoStreamPostProcessor ( )
virtual

destructor

makVrv::DtVideoStreamPostProcessor::DtVideoStreamPostProcessor ( )
private

private default constructor. not allowed.

makVrv::DtVideoStreamPostProcessor::DtVideoStreamPostProcessor ( const DtVideoStreamPostProcessor )
private

prevent copy-construction

Member Function Documentation

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

prevent assignment

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

Called once per frame, per channel.

Implements makVrv::DtPostProcessor.

virtual void makVrv::DtVideoStreamPostProcessor::slot_reloadShaders ( )
virtual

slot for handling when the shaders are reloaded which recreates the Drawable

virtual GLuint makVrv::DtVideoStreamPostProcessor::inputTexId ( )
virtual

get the opengl texture id for the input texture for this post processor

Member Data Documentation

DtDe& makVrv::DtVideoStreamPostProcessor::myDe
protected
DtSignalConnectionManager makVrv::DtVideoStreamPostProcessor::myConnections
protected
DtVideoStreamPostProcessorDrawable* makVrv::DtVideoStreamPostProcessor::myPostProcessorDrawable
protected

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

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)