H3D::X3DAppearanceNode Class Reference
[Abstract nodes.]

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

#include <H3D/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, Inst< SFSurface > _surface=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 bool usingMultiPassTransparency ()
 This function checks if multi-pass transparency should be used or not (see RenderProperties_multiPassTransparency).
virtual string defaultXMLContainerField ()
 Returns the default xml containerField attribute value.
virtual void traverseSG (TraverseInfo &ti)
 Traversing the scene graph.

Static Public Member Functions

static void setDefaultUsingMultiPassTransparency (bool b)
 Set the default value for usage of multi pass transparancy.
static bool getDefaultUsingMultiPassTransparency ()
 Get the default value for usage of multi pass transparancy.

Public Attributes

auto_ptr< SFSurfacesurface
 Contains the Surface node that will determine how an object will feel haptically.

Static Public Attributes

static H3DNodeDatabase database
 The H3DNodeDatabase for this node.

Static Protected Attributes

static bool default_using_multi_pass_transparency = true
 The default value to use for multipass transparency, if the inherited appearance node does not contain any information about using multipass transparency.


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::postRender (  )  [inline, virtual]

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

Reimplemented in H3D::Appearance.

Referenced by H3D::X3DShapeNode::render(), and H3D::ParticleSystem::render().

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.

Referenced by H3D::X3DShapeNode::render(), and H3D::ParticleSystem::render().

static void H3D::X3DAppearanceNode::setDefaultUsingMultiPassTransparency ( bool  b  )  [inline, static]

Set the default value for usage of multi pass transparancy.

This is the value that will be used if the inherited appearance node does not contain any information about using multipass transparency

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

void X3DAppearanceNode::traverseSG ( TraverseInfo ti  )  [virtual]

Traversing the scene graph.

The current surface will be set to the surface of the X3DAppearanceNode.

Parameters:
ti The TraverseInfo object containing information about the traversal.

Reimplemented from H3D::Node.

Reimplemented in H3D::Appearance.

References H3D::TraverseInfo::setCurrentSurface(), and surface.

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


Member Data Documentation

Contains the Surface node that will determine how an object will feel haptically.

Referenced by traverseSG(), and H3D::Appearance::traverseSG().


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

Generated on Fri Nov 7 10:31:22 2008 for H3D API by  doxygen 1.5.7