VR-Forces 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 Attributes | Private Member Functions | Friends
makVrv::DtHdrDrawable Class Reference

class used to render hdr during the post processor camera draw

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

Public Member Functions

 DtHdrDrawable (DtDe &de, DtHdrOptions options, osg::Texture *lensFlareTexture, bool isFirstChannel)
 
virtual ~DtHdrDrawable ()
 
virtual void drawImplementation (osg::RenderInfo &renderInfo) const override
 
virtual void setInputTexture (osg::Texture *inputTex)
 
virtual void setEnabled (bool enabled)
 
virtual bool enabled ()
 
virtual DtHdrOptionsoptions ()
 
virtual void setLumOverride (bool lumOverride)
 
virtual bool lumOverride (void) const
 
virtual void setHdrPassthrough (bool enable)
 
virtual bool hdrPassthrough () const
 
virtual void cleanupGpuMemory ()
 
virtual float localHdrOutputScale ()
 
- 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
 
virtual void releaseGLObjects (osg::State *state=0) const override
 

Protected Attributes

bool myEnabled
 
DtHdrOptions myOptions
 
bool myLumOverride
 
bool myEnableHdrPassthrough
 
DtHdrDrawableRenderDatamyRenderData = nullptr
 
const bool myIsFirstChannel = false
 
- Protected Attributes inherited from makVrv::DtPostProcessorDrawable
DtDemyDe
 
DtGlBuffermyMutableVbo = nullptr
 
DtCoreGlBufferCreatormyDtCoreGlBufferCreator
 
DtGlDeleteObjectManagermyGlDeleteObjectManager
 

Private Member Functions

 DtHdrDrawable ()=delete
 
 DtHdrDrawable (const DtHdrDrawable &)=delete
 
DtHdrDrawableoperator= (const DtHdrDrawable &)=delete
 

Friends

class DtHdrDrawableRenderData
 

Additional Inherited Members

- Protected Member Functions inherited from makVrv::DtPostProcessorDrawable
void setupGeometry () const
 

Constructor & Destructor Documentation

makVrv::DtHdrDrawable::DtHdrDrawable ( DtDe de,
DtHdrOptions  options,
osg::Texture *  lensFlareTexture,
bool  isFirstChannel 
)

constructor that passes in the options needed for setting up HDR

virtual makVrv::DtHdrDrawable::~DtHdrDrawable ( )
virtual

Destructor.

makVrv::DtHdrDrawable::DtHdrDrawable ( )
privatedelete

private default constructor. not allowed.

makVrv::DtHdrDrawable::DtHdrDrawable ( const DtHdrDrawable )
privatedelete

prevent copy-construction

Member Function Documentation

DtHdrDrawable& makVrv::DtHdrDrawable::operator= ( const DtHdrDrawable )
privatedelete

prevent assignment

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

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 overridden

virtual void makVrv::DtHdrDrawable::setInputTexture ( osg::Texture *  inputTex)
virtual

setter for the input texture from the previous post processor or main rendering

virtual void makVrv::DtHdrDrawable::setEnabled ( bool  enabled)
virtual

setter/getter for whether or not this effect is enabled.

virtual bool makVrv::DtHdrDrawable::enabled ( )
virtual
virtual DtHdrOptions& makVrv::DtHdrDrawable::options ( )
virtual

getter for the hdr options. returns a reference so modifications will effect this drawable.

virtual void makVrv::DtHdrDrawable::setLumOverride ( bool  lumOverride)
virtual

setter for whether or not the luminance override should be turned on for this drawable the luminance override is used to render modes that have the sky turned of when HDR is turned on.

virtual bool makVrv::DtHdrDrawable::lumOverride ( void  ) const
virtual
virtual void makVrv::DtHdrDrawable::setHdrPassthrough ( bool  enable)
virtual

getter/setter for the whether the HDR post processor

virtual bool makVrv::DtHdrDrawable::hdrPassthrough ( ) const
virtual
virtual void makVrv::DtHdrDrawable::cleanupGpuMemory ( )
virtual

cleanup the Gpu memory. this should be called in the render thread before throwing away a ref_ptr to the drawable.

virtual float makVrv::DtHdrDrawable::localHdrOutputScale ( )
virtual

hdr output scale this drawable calculated or used last frame

Friends And Related Function Documentation

friend class DtHdrDrawableRenderData
friend

This class encapsulates all the (lazily) created OpenGL objects that are required for doing hdr. It also executes the various hdr passes and the final tone mapping pass..

Member Data Documentation

bool makVrv::DtHdrDrawable::myEnabled
protected
DtHdrOptions makVrv::DtHdrDrawable::myOptions
protected
bool makVrv::DtHdrDrawable::myLumOverride
protected
bool makVrv::DtHdrDrawable::myEnableHdrPassthrough
protected
DtHdrDrawableRenderData* makVrv::DtHdrDrawable::myRenderData = nullptr
protected
const bool makVrv::DtHdrDrawable::myIsFirstChannel = false
protected

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

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)