H3D::X3DAppearanceNode Class Reference
[Abstract nodes.]

This is the base node type for all Appearance nodes. More...

#include <X3DAppearanceNode.h>

Inheritance diagram for H3D::X3DAppearanceNode:

Inheritance graph
List of all members.

Public Member Functions

 X3DAppearanceNode (Inst< DisplayList > _displayList=0, Inst< SFNode > _metadata=0)
 Constructor.
virtual void preRender ()
 This function will be called by the X3DShapeNode before any rendering of geometry and before the call to the render function.
virtual void postRender ()
 This function will be called by the X3DShapeNode after the geometry has been rendered to restore the states to what it was before the call to preRender().
virtual bool isTransparent ()
 This function checks the transparency field to determine if the material requires that the geometry is rendered with transparency.
virtual string defaultXMLContainerField ()
 Returns the default xml containerField attribute value.

Static Public Attributes

static H3DNodeDatabase database
 The H3DNodeDatabase for this node.

Detailed Description

This is the base node type for all Appearance nodes.


Member Function Documentation

virtual string H3D::X3DAppearanceNode::defaultXMLContainerField  )  [inline, virtual]
 

Returns the default xml containerField attribute value.

For this node it is "appearance".

Reimplemented from H3D::Node.

virtual void H3D::X3DAppearanceNode::preRender  )  [inline, virtual]
 

This function will be called by the X3DShapeNode before any rendering of geometry and before the call to the render function.

So this is the place to save the states that are going to be changed in render() in order to restore it in postRender().

Reimplemented in H3D::Appearance.


Generated on Thu Aug 24 12:40:16 2006 for H3D API by  doxygen 1.4.5