OpenWalnut  1.4.0
Public Types | Public Member Functions
WGEPostprocessorGauss Class Reference

Gauss filtering of the input. More...

#include <WGEPostprocessorGauss.h>

+ Inheritance diagram for WGEPostprocessorGauss:

List of all members.

Public Types

typedef boost::shared_ptr
< WGEPostprocessorGauss
SPtr
 Convenience typedef for a boost::shared_ptr< WGEPostprocessorGauss >.
typedef boost::shared_ptr
< const WGEPostprocessorGauss
ConstSPtr
 Convenience typedef for a boost::shared_ptr< const WGEPostprocessorGauss >.

Public Member Functions

 WGEPostprocessorGauss ()
 Default constructor.
 WGEPostprocessorGauss (osg::ref_ptr< WGEOffscreenRenderNode > offscreen, osg::ref_ptr< osg::Texture2D > tex0, osg::ref_ptr< osg::Texture2D > tex1=osg::ref_ptr< osg::Texture2D >(), osg::ref_ptr< osg::Texture2D > tex2=osg::ref_ptr< osg::Texture2D >(), osg::ref_ptr< osg::Texture2D > tex3=osg::ref_ptr< osg::Texture2D >(), osg::ref_ptr< osg::Texture2D > tex4=osg::ref_ptr< osg::Texture2D >(), osg::ref_ptr< osg::Texture2D > tex5=osg::ref_ptr< osg::Texture2D >(), osg::ref_ptr< osg::Texture2D > tex6=osg::ref_ptr< osg::Texture2D >(), osg::ref_ptr< osg::Texture2D > tex7=osg::ref_ptr< osg::Texture2D >())
 Constructor.
virtual ~WGEPostprocessorGauss ()
 Destructor.
virtual WGEPostprocessor::SPtr create (osg::ref_ptr< WGEOffscreenRenderNode > offscreen, const PostprocessorInput &gbuffer) const
 Create instance.

Detailed Description

Gauss filtering of the input.

It does filter all the textures you bind on it and returns a gauss filtered version. If you want to define the exact list of textures to filter in one pass, use the alternative create call.

Definition at line 38 of file WGEPostprocessorGauss.h.


Member Typedef Documentation

typedef boost::shared_ptr< const WGEPostprocessorGauss > WGEPostprocessorGauss::ConstSPtr

Convenience typedef for a boost::shared_ptr< const WGEPostprocessorGauss >.

Reimplemented from WGEPostprocessor.

Definition at line 49 of file WGEPostprocessorGauss.h.

typedef boost::shared_ptr< WGEPostprocessorGauss > WGEPostprocessorGauss::SPtr

Convenience typedef for a boost::shared_ptr< WGEPostprocessorGauss >.

Reimplemented from WGEPostprocessor.

Definition at line 44 of file WGEPostprocessorGauss.h.


Constructor & Destructor Documentation

Default constructor.

Definition at line 32 of file WGEPostprocessorGauss.cpp.

Referenced by create().

WGEPostprocessorGauss::WGEPostprocessorGauss ( osg::ref_ptr< WGEOffscreenRenderNode offscreen,
osg::ref_ptr< osg::Texture2D >  tex0,
osg::ref_ptr< osg::Texture2D >  tex1 = osg::ref_ptr< osg::Texture2D >(),
osg::ref_ptr< osg::Texture2D >  tex2 = osg::ref_ptr< osg::Texture2D >(),
osg::ref_ptr< osg::Texture2D >  tex3 = osg::ref_ptr< osg::Texture2D >(),
osg::ref_ptr< osg::Texture2D >  tex4 = osg::ref_ptr< osg::Texture2D >(),
osg::ref_ptr< osg::Texture2D >  tex5 = osg::ref_ptr< osg::Texture2D >(),
osg::ref_ptr< osg::Texture2D >  tex6 = osg::ref_ptr< osg::Texture2D >(),
osg::ref_ptr< osg::Texture2D >  tex7 = osg::ref_ptr< osg::Texture2D >() 
)

Constructor.

We implement a public constructor which can take more textures as input

Parameters:
offscreenuse this offscreen node to add your texture pass'
tex0texture to filter
tex1texture to filter
tex2texture to filter
tex3texture to filter
tex4texture to filter
tex5texture to filter
tex6texture to filter
tex7texture to filter

Definition at line 38 of file WGEPostprocessorGauss.cpp.

References WGEPostprocessor::m_effectOnlyPreprocessor, and WGEPostprocessor::m_resultTextures.

Destructor.

Definition at line 118 of file WGEPostprocessorGauss.cpp.


Member Function Documentation

WGEPostprocessor::SPtr WGEPostprocessorGauss::create ( osg::ref_ptr< WGEOffscreenRenderNode offscreen,
const PostprocessorInput gbuffer 
) const [virtual]

Create instance.

Uses the protected constructor. Implement it if you derive from this class!

Parameters:
offscreenuse this offscreen node to add your texture pass'
gbufferthe input textures you should use
Returns:
shared pointer to the created instance

Implements WGEPostprocessor.

Definition at line 123 of file WGEPostprocessorGauss.cpp.

References WGEPostprocessor::PostprocessorInput::m_colorTexture, and WGEPostprocessorGauss().


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