![]() |
VR-Forces 5.0.2 Developer's Guide
|
This class provides an OSG-specific implementation of camera Horizontal Based Ambient Occlusion.

Public Member Functions | |
| DtHbaoPostProcessor (DtDe &de, const std::string &postProcessType, bool handles2D) | |
| virtual | ~DtHbaoPostProcessor () |
| DtHbaoPostProcessor ()=delete | |
| DtHbaoPostProcessor (const DtHbaoPostProcessor &)=delete | |
| DtHbaoPostProcessor & | operator= (const DtHbaoPostProcessor &)=delete |
| virtual void | slot_reloadShaders () |
| virtual bool | update (DtChannel *channel) override |
| virtual void | setInputTexture (const DtChannel *channel, osg::Texture *texture) override |
| virtual bool | needsOcclusionTexture () const override |
Public Member Functions inherited from makVrv::DtPostProcessor | |
| DtPostProcessor (DtDe &de, const std::string &postProcessType, bool handles2D) | |
| virtual | ~DtPostProcessor () |
| virtual void | setFragmentShaderSource (const char *source) |
| virtual void | setVertexShaderSource (const char *source) |
| virtual void | setFragmentShaderFile (const std::string &fileName) |
| virtual void | setVertexShaderFile (const std::string &fileName) |
| virtual osg::Texture * | outputTexture () |
| virtual void | setIsFinalEffect (const DtChannel *channel, bool final) |
| virtual osg::Camera * | cameraForChannel (const DtChannel *channel) |
| virtual void | slot_releaseResources () |
| virtual void | releaseGLObjects () |
| virtual bool | hasEffect (const std::string &effect) |
| virtual bool | effectEnabled (const std::string &effect) |
| virtual bool | anyEffectEnabled () |
| virtual std::list< std::string > | supportedEffects () |
| virtual bool | handles2D () const |
| virtual const std::string & | type () const |
| virtual bool | postProcessorEnabled () const |
| virtual bool | enableEffect (const std::string &effect) |
| virtual bool | disableEffect (const std::string &effect) |
| virtual void | enablePostProcessor () |
| virtual void | disablePostProcessor () |
Static Public Attributes | |
| static const std::string | theEffectName |
Protected Attributes | |
| osg::ref_ptr< DtHbaoDrawable > | myHbaoDrawable |
| DtSignalConnectionManager | myConnections |
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 |
| DtDe & | myDe |
| DtSignalConnectionManager | mySignals |
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 (const EffectMap::iterator &effect) |
| virtual void | initialize () |
| virtual void | addEffect (std::string effect) |
| virtual void | setEnablePostProcessor (bool enabled) |
| makVrv::DtHbaoPostProcessor::DtHbaoPostProcessor | ( | DtDe & | de, |
| const std::string & | postProcessType, | ||
| bool | handles2D | ||
| ) |
Constructor.
|
virtual |
Destructor.
|
delete |
private default constructor. not allowed.
|
delete |
prevent copy-construction
|
delete |
prevent assignment
|
virtual |
Called once per frame from the DtPostProcessManager.
Implements makVrv::DtPostProcessor.
|
overridevirtual |
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. Managed by the DtPostProcessManager, you shouldn't need to call this yourself.
Reimplemented from makVrv::DtPostProcessor.
|
overridevirtual |
Does this post processor need an occlusion texture generated by the osgChannel false by default but derrived classes can override this and let the manager know they need an occlusion texture.
Reimplemented from makVrv::DtPostProcessor.
|
static |
|
protected |
|
protected |