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 Member Functions | Protected Attributes | Private Member Functions
makVrv::DtDepthOfFieldDrawable Class Reference

class used to render dof during the post processor camera draw More...

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

Public Member Functions

virtual ~DtDepthOfFieldDrawable ()
 destructor More...
 
virtual void drawImplementation (osg::RenderInfo &renderInfo) const
 overridden More...
 
virtual void setDepthTexture (osg::Texture *texture)
 overridden currently unneeded because the postprocessor drawable is always deleted/recreated because of channel creation/destruction virtual void releaseGLObjects(osg::State* state = 0) const; //! More...
 
virtual void setParams (DtDofParams &params)
 set the various dof parameters More...
 
- Public Member Functions inherited from makVrv::DtPostProcessorDrawable
 DtPostProcessorDrawable (DtDe &de)
 
 DtPostProcessorDrawable (const DtPostProcessorDrawable &orig, const osg::CopyOp &op)
 
virtual ~DtPostProcessorDrawable ()
 
virtual void drawTexturedQuad (bool drawOnly=false) const
 prevent assignment More...
 
virtual void beginTexturedQuad () const
 vert pointes gl states etc More...
 
virtual void endTexturedQuad () const
 disable modes stup in begin More...
 
virtual std::string preprocessorDefinesString (void) const
 preprocessor string taking into account the current options (multiview, etc) More...
 
virtual unsigned int createProgram (const std::string &path, const std::string &prefixName, const std::string &preprocessor="") const
 create a program based on the name (name_ps.glsl and name_vs.glsl files are used) More...
 
virtual void destroyProgram (unsigned int program) const
 

Protected Member Functions

 DtDepthOfFieldDrawable (DtDe &de)
 constructor. private. only creator can create More...
 
virtual void createProgramIfNecessary (void) const
 create the program if needed More...
 
virtual void cleanupGpuMemory (void)
 
- Protected Member Functions inherited from makVrv::DtPostProcessorDrawable
void setupGeometry () const
 brief setup the vertex buffer object used in draw quad More...
 

Protected Attributes

friend DtDepthOfFieldDrawableCreator
 friended, to access constructor above More...
 
osg::ref_ptr< osg::Texture > myBaseTexture
 
osg::ref_ptr< osg::Texture > myDepthTexture
 
unsigned int myMutableDofProgram
 the program More...
 
DtDofParams myParams
 parameters More...
 
int myMutableVrvUseAutofocusLoc
 locations of various shader parameters More...
 
int myMutableVrvUseReverseZBufferLoc
 
int myMutableVrvFocalDepthLoc
 
int myMutableVrvFocalRangeLoc
 
int myMutableVrvzNearFarLoc
 
int myMutableVrvFilterTapsLoc
 
int myMutableVrvDepthTexLoc
 
Vector2_32 myVrvFilterTaps [12]
 
bool myMutableTapsDirty
 are the taps needed to be re-sent to the GPU More...
 
- Protected Attributes inherited from makVrv::DtPostProcessorDrawable
DtDemyDe
 
unsigned int myMutableVbo
 

Private Member Functions

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

Detailed Description

class used to render dof during the post processor camera draw

Constructor & Destructor Documentation

virtual makVrv::DtDepthOfFieldDrawable::~DtDepthOfFieldDrawable ( )
virtual

destructor

makVrv::DtDepthOfFieldDrawable::DtDepthOfFieldDrawable ( DtDe de)
protected

constructor. private. only creator can create

makVrv::DtDepthOfFieldDrawable::DtDepthOfFieldDrawable ( )
private

private default constructor. not allowed.

makVrv::DtDepthOfFieldDrawable::DtDepthOfFieldDrawable ( const DtDepthOfFieldDrawable )
private

prevent copy-construction

Member Function Documentation

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

prevent assignment

virtual void makVrv::DtDepthOfFieldDrawable::drawImplementation ( osg::RenderInfo &  renderInfo) const
virtual

overridden

virtual void makVrv::DtDepthOfFieldDrawable::setDepthTexture ( osg::Texture *  texture)
virtual

overridden currently unneeded because the postprocessor drawable is always deleted/recreated because of channel creation/destruction virtual void releaseGLObjects(osg::State* state = 0) const; //!

overridden currently unneeded because the postprocessor drawable is always deleted/recreated because of channel creation/destruction set the depth texture

virtual void makVrv::DtDepthOfFieldDrawable::setParams ( DtDofParams params)
virtual

set the various dof parameters

virtual void makVrv::DtDepthOfFieldDrawable::createProgramIfNecessary ( void  ) const
protectedvirtual

create the program if needed

virtual void makVrv::DtDepthOfFieldDrawable::cleanupGpuMemory ( void  )
protectedvirtual

Member Data Documentation

friend makVrv::DtDepthOfFieldDrawable::DtDepthOfFieldDrawableCreator
protected

friended, to access constructor above

osg::ref_ptr<osg::Texture> makVrv::DtDepthOfFieldDrawable::myBaseTexture
protected
osg::ref_ptr<osg::Texture> makVrv::DtDepthOfFieldDrawable::myDepthTexture
protected
unsigned int makVrv::DtDepthOfFieldDrawable::myMutableDofProgram
mutableprotected

the program

DtDofParams makVrv::DtDepthOfFieldDrawable::myParams
protected

parameters

int makVrv::DtDepthOfFieldDrawable::myMutableVrvUseAutofocusLoc
mutableprotected

locations of various shader parameters

int makVrv::DtDepthOfFieldDrawable::myMutableVrvUseReverseZBufferLoc
mutableprotected
int makVrv::DtDepthOfFieldDrawable::myMutableVrvFocalDepthLoc
mutableprotected
int makVrv::DtDepthOfFieldDrawable::myMutableVrvFocalRangeLoc
mutableprotected
int makVrv::DtDepthOfFieldDrawable::myMutableVrvzNearFarLoc
mutableprotected
int makVrv::DtDepthOfFieldDrawable::myMutableVrvFilterTapsLoc
mutableprotected
int makVrv::DtDepthOfFieldDrawable::myMutableVrvDepthTexLoc
mutableprotected
Vector2_32 makVrv::DtDepthOfFieldDrawable::myVrvFilterTaps[12]
protected
bool makVrv::DtDepthOfFieldDrawable::myMutableTapsDirty
mutableprotected

are the taps needed to be re-sent to the GPU


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)