H3D API  2.4.1
Public Member Functions | List of all members
H3D::H3DRenderStateObject Class Reference

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

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 &)
 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 &)
 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.


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