VR-Forces 5.0.1 Developer's Guide
 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

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

Public Member Functions

virtual ~DtDepthOfFieldDrawable ()
 
virtual void drawImplementation (osg::RenderInfo &renderInfo) const
 
virtual void setDepthTexture (osg::Texture *texture)
 
virtual void setParams (DtDofParams &params)
 
- 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
 
virtual void beginTexturedQuad () const
 
virtual void endTexturedQuad () const
 
virtual std::string preprocessorDefinesString (void) const
 
virtual DtGlProgramcreateProgram (const std::string &path, const std::string &prefixName, const std::string &preprocessor="") const
 

Protected Member Functions

 DtDepthOfFieldDrawable (DtDe &de)
 
virtual void createProgramIfNecessary (void) const
 
virtual void cleanupGpuMemory (void)
 
- Protected Member Functions inherited from makVrv::DtPostProcessorDrawable
void setupGeometry () const
 

Protected Attributes

friend DtDepthOfFieldDrawableCreator
 
osg::ref_ptr< osg::Texture > myBaseTexture
 
osg::ref_ptr< osg::Texture > myDepthTexture
 
DtGlProgrammyMutableDofProgram
 
DtDofParams myParams
 
int myMutableVrvUseAutofocusLoc
 
int myMutableVrvUseReverseZBufferLoc
 
int myMutableVrvFocalDepthLoc
 
int myMutableVrvFocalRangeLoc
 
int myMutableVrvzNearFarLoc
 
int myMutableVrvFilterTapsLoc
 
int myMutableVrvDepthTexLoc
 
Vector2_32 myVrvFilterTaps [12]
 
bool myMutableTapsDirty
 
- Protected Attributes inherited from makVrv::DtPostProcessorDrawable
DtDemyDe
 
unsigned int myMutableVbo
 

Private Member Functions

 DtDepthOfFieldDrawable ()
 
 DtDepthOfFieldDrawable (const DtDepthOfFieldDrawable &)
 
DtDepthOfFieldDrawableoperator= (const DtDepthOfFieldDrawable &)
 

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
DtGlProgram* 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 Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)