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

This abstract class is the base class for node types that want to change the rendering state temporarily while rendering sibling nodes in a X3DGroupingNode. More...

#include <H3D/H3DRenderStateObject.h>

Inheritance diagram for H3D::H3DRenderStateObject:

Inheritance graph

List of all members.

Public Member Functions

virtual ~H3DRenderStateObject ()
 Destructor.
virtual void enableGraphicsState ()
 Enable the states that you want to before all other nodes of a X3DGroupingNode's children field are rendered.
virtual void disableGraphicsState ()
 Disable the states that were enabled in the enableGraphicsState() function.
virtual void enableHapticsState (TraverseInfo &ti)
 Enable the states that you want to before all other nodes of a X3DGroupingNode's children field are traversed with traverseSG.
virtual void disableHapticsState (TraverseInfo &ti)
 Reset the states that were changed in the enableHapticsState() function.


Detailed Description

This abstract class is the base class for node types that want to change the rendering state temporarily while rendering sibling nodes in a X3DGroupingNode.

If put into the children field of a X3DGroupingNode the enable*() function of all H3DRenderStateObjects will be called first, then the render()/traverseSG() function for all the children and then lastly the disable*() function for all H3DRenderStateObjects.


Member Function Documentation

virtual void H3D::H3DRenderStateObject::disableGraphicsState (  )  [inline, virtual]

Disable the states that were enabled in the enableGraphicsState() function.

Reimplemented in H3D::ClipPlane, H3D::LocalFog, and H3D::X3DLightNode.

Referenced by H3D::X3DGroupingNode::render().

virtual void H3D::H3DRenderStateObject::enableGraphicsState (  )  [inline, virtual]

Enable the states that you want to before all other nodes of a X3DGroupingNode's children field are rendered.

Reimplemented in H3D::ClipPlane, H3D::DirectionalLight, H3D::LocalFog, H3D::PointLight, H3D::SpotLight, and H3D::X3DLightNode.

Referenced by H3D::X3DGroupingNode::render().

virtual void H3D::H3DRenderStateObject::enableHapticsState ( TraverseInfo ti  )  [inline, virtual]

Enable the states that you want to before all other nodes of a X3DGroupingNode's children field are traversed with traverseSG.

Reimplemented in H3D::ClipPlane.

Referenced by H3D::X3DGroupingNode::traverseSG().


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

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