OpenWalnut  1.3.1
Public Types | Public Member Functions | Protected Member Functions | List of all members
WGEPostprocessorEdgeEnhance Class Reference

Edge enhancing postprocessor. More...

#include <WGEPostprocessorEdgeEnhance.h>

+ Inheritance diagram for WGEPostprocessorEdgeEnhance:

Public Types

typedef boost::shared_ptr
< WGEPostprocessorEdgeEnhance
SPtr
 Convenience typedef for a boost::shared_ptr< WGEPostprocessorEdgeEnhance >. More...
 
typedef boost::shared_ptr
< const
WGEPostprocessorEdgeEnhance
ConstSPtr
 Convenience typedef for a boost::shared_ptr< const WGEPostprocessorEdgeEnhance >. More...
 
- Public Types inherited from WGEPostprocessor
typedef boost::shared_ptr
< WGEPostprocessor
SPtr
 Convenience typedef for an osg::ref_ptr< WGEPostprocessor >. More...
 
typedef boost::shared_ptr
< const WGEPostprocessor
ConstSPtr
 Convenience typedef for an osg::ref_ptr< const WGEPostprocessor >. More...
 
typedef std::vector
< WGEPostprocessor::SPtr
ProcessorList
 Type used for returning lists of postprocessor prototypes. More...
 

Public Member Functions

 WGEPostprocessorEdgeEnhance ()
 Default constructor. More...
 
virtual ~WGEPostprocessorEdgeEnhance ()
 Destructor. More...
 
virtual WGEPostprocessor::SPtr create (osg::ref_ptr< WGEOffscreenRenderNode > offscreen, const PostprocessorInput &gbuffer) const
 Create instance. More...
 
- Public Member Functions inherited from WGEPostprocessor
 WGEPostprocessor (std::string name, std::string description)
 Create named prototype. More...
 
virtual ~WGEPostprocessor ()
 Destructor. More...
 
virtual WPropGroup getProperties () const
 Returns the set of properties controlling the post-processing node. More...
 
virtual osg::ref_ptr
< osg::Texture2D > 
getOutput (size_t idx=0) const
 Returns the result texture. More...
 
const std::vector
< osg::ref_ptr< osg::Texture2D > > & 
getOutputList () const
 This processor can produce multiple outputs. More...
 
virtual osg::ref_ptr
< osg::Texture2D > 
getDepth () const
 Returns the new depth texture. More...
 
virtual const std::string getName () const
 Gets the name of this postprocessor. More...
 
virtual const std::string getDescription () const
 Gets the description for this postprocessor. More...
 
- Public Member Functions inherited from WPrototyped
 WPrototyped ()
 Default constructor. More...
 
virtual ~WPrototyped ()
 Destructor. More...
 
template<typename T >
bool isA ()
 Checks whether the actual prototype has the specified runtime type. More...
 

Protected Member Functions

 WGEPostprocessorEdgeEnhance (osg::ref_ptr< WGEOffscreenRenderNode > offscreen, const PostprocessorInput &gbuffer)
 Constructor. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from WGEPostprocessor
static ProcessorList getPostprocessors ()
 Returns a list of all known postprocessor prototypes. More...
 
- Protected Attributes inherited from WGEPostprocessor
std::vector< osg::ref_ptr
< osg::Texture2D > > 
m_resultTextures
 The textures contain the result. More...
 
osg::ref_ptr< osg::Texture2D > m_depthTexture
 The texture contains the new depth. More...
 
WPropGroup m_properties
 All the properties of the post-processor. More...
 
WPropBool m_effectOnly
 A flag denoting whether the effect should be combined with color or not. More...
 
WGEShaderPreprocessor::SPtr m_effectOnlyPreprocessor
 For convenience, this is a shader preprocessor controlled by m_effectOnly property. More...
 

Detailed Description

Edge enhancing postprocessor.

Definition at line 35 of file WGEPostprocessorEdgeEnhance.h.

Member Typedef Documentation

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

Definition at line 46 of file WGEPostprocessorEdgeEnhance.h.

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

Definition at line 41 of file WGEPostprocessorEdgeEnhance.h.

Constructor & Destructor Documentation

WGEPostprocessorEdgeEnhance::WGEPostprocessorEdgeEnhance ( )

Default constructor.

Definition at line 32 of file WGEPostprocessorEdgeEnhance.cpp.

Referenced by create().

WGEPostprocessorEdgeEnhance::~WGEPostprocessorEdgeEnhance ( )
virtual

Destructor.

Definition at line 74 of file WGEPostprocessorEdgeEnhance.cpp.

WGEPostprocessorEdgeEnhance::WGEPostprocessorEdgeEnhance ( osg::ref_ptr< WGEOffscreenRenderNode offscreen,
const PostprocessorInput gbuffer 
)
protected

Constructor.

Implement this constructor and build your processing pipeline in here

Parameters
offscreenuse this offscreen node to add your texture pass'
gbufferthe input textures you should use

Definition at line 38 of file WGEPostprocessorEdgeEnhance.cpp.

References WGEPostprocessor::PostprocessorInput::bind(), WGEPostprocessor::m_effectOnlyPreprocessor, WGEPostprocessor::m_properties, and WGEPostprocessor::m_resultTextures.

Member Function Documentation

WGEPostprocessor::SPtr WGEPostprocessorEdgeEnhance::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 insteance

Implements WGEPostprocessor.

Definition at line 79 of file WGEPostprocessorEdgeEnhance.cpp.

References WGEPostprocessorEdgeEnhance().


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