H3D::H3DMultiPassRenderObject Class Reference
[Abstract interface classes.]

This abstract interface is inherited by all nodes that needs to render the scene an extra time(or more) to perform its task, e.g. More...

#include <H3D/H3DMultiPassRenderObject.h>

Inheritance diagram for H3D::H3DMultiPassRenderObject:

Inheritance graph

List of all members.

Public Member Functions

 H3DMultiPassRenderObject ()
 Constructor.
virtual ~H3DMultiPassRenderObject ()
 Destructor.
virtual void renderPreViewpoint (X3DChildNode *scene_root, X3DViewpointNode *vp)
 This function will be called before any viewpoint calls has been made when rendering the scene and before the scene is rendered.
virtual void renderPostViewpoint (X3DChildNode *scene_root, X3DViewpointNode *vp)
 This function will be called after the viewpoint has been set up for the scene to be rendered and before the scene is rendered.
virtual void renderPostScene (X3DChildNode *scene_root, X3DViewpointNode *vp)
 This function will be called after the scene has been rendered.
virtual void traverseSG (TraverseInfo &ti)
 Traverse the scenegraph.
void resetCounter ()
 Reset the counter.

Static Public Member Functions

static void renderPreViewpointAll (X3DChildNode *n, X3DViewpointNode *vp)
 Run renderPreViewpoint on all instances of H3DMultiPassRenderObject.
static void renderPostViewpointAll (X3DChildNode *n, X3DViewpointNode *vp)
 Run renderPostViewpoint on all instances of H3DMultiPassRenderObject.
static void renderPostSceneAll (X3DChildNode *n, X3DViewpointNode *vp)
 Run renderPostScene on all instances of H3DMultiPassRenderObject.
static void resetCounters ()
 Run resetCounter on all instances of H3DMultiPassRenderObject.


Detailed Description

This abstract interface is inherited by all nodes that needs to render the scene an extra time(or more) to perform its task, e.g.

mirrors and similar effects.


Member Function Documentation

virtual void H3D::H3DMultiPassRenderObject::renderPostScene ( X3DChildNode scene_root,
X3DViewpointNode vp 
) [inline, virtual]

This function will be called after the scene has been rendered.

The In stereo mode it will be called once for each eye.

virtual void H3D::H3DMultiPassRenderObject::renderPostViewpoint ( X3DChildNode scene_root,
X3DViewpointNode vp 
) [inline, virtual]

This function will be called after the viewpoint has been set up for the scene to be rendered and before the scene is rendered.

In stereo mode it will be called once for each eye.

Reimplemented in H3D::PlanarReflector.

virtual void H3D::H3DMultiPassRenderObject::renderPreViewpoint ( X3DChildNode scene_root,
X3DViewpointNode vp 
) [inline, virtual]

This function will be called before any viewpoint calls has been made when rendering the scene and before the scene is rendered.

Observe that the function is just called once even when stereo is enabled. It is not called once per eye. Use renderPostViewpoint() for this.


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

Generated on Fri Nov 7 10:30:17 2008 for H3D API by  doxygen 1.5.7