H3D::X3DColorNode Class Reference
[Abstract nodes.]

This is the base node type for color specifications in X3D. More...

#include <H3D/X3DColorNode.h>

Inheritance diagram for H3D::X3DColorNode:

Inheritance graph

List of all members.

Public Member Functions

 X3DColorNode (Inst< SFNode > _metadata=0)
 Constructor.
virtual RGBA getColor (unsigned int i)=0
 Get the color at index i.
virtual void render (int index)
 Perform the OpenGL commands to render a color given the index of the color.
virtual void renderArray ()
 Perform the OpenGL commands to render all verties as a vertex array.
virtual void disableArray ()
 Disable the array state enabled in renderArray().
virtual void preRender ()
 Enable state needed before rendering the color.
virtual void postRender ()
 Disable state set in preRender() function.
virtual string defaultXMLContainerField ()
 Returns the default xml containerField attribute value.
virtual unsigned int nrAvailableColors ()=0
 Returns the number of color this color node can render.


Detailed Description

This is the base node type for color specifications in X3D.

Member Function Documentation

virtual string H3D::X3DColorNode::defaultXMLContainerField (  )  [inline, virtual]

Returns the default xml containerField attribute value.

For this node it is "color".

Reimplemented from H3D::Node.

virtual void H3D::X3DColorNode::render ( int  index  )  [inline, virtual]

virtual void H3D::X3DColorNode::renderArray (  )  [inline, virtual]


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

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