H3D::Normal Class Reference
[X3D node classes.]

This node defines a set of 3D surface normal vectors to be used in the vector field of some geometry nodes. More...

#include <H3D/Normal.h>

Inheritance diagram for H3D::Normal:

Inheritance graph

List of all members.

Public Member Functions

virtual void render (int index)
 Perform the OpenGL commands to render a normal given the index of the normal.
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 unsigned int nrAvailableNormals ()
 Returns the number of normals this normal node can render.

Public Attributes

auto_ptr< MFVec3fvector
 A vector of 3D normal vectors.

Static Public Attributes

static H3DNodeDatabase database
 The H3DNodeDatabase for this node.


Detailed Description

This node defines a set of 3D surface normal vectors to be used in the vector field of some geometry nodes.

This node defines a set of 3D surface normal vectors to be used in the vector field of some geometry nodes (EXAMPLE IndexedFaceSet and ElevationGrid). This node contains one multiple-valued field that contains the normal vectors. Normals shall be of unit length.

Internal routes:
Normal.dot

Member Function Documentation

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

Perform the OpenGL commands to render a normal given the index of the normal.

Installs the normal as a glNormal3f.

Reimplemented from H3D::X3DNormalNode.

void Normal::renderArray (  )  [virtual]

Perform the OpenGL commands to render all verties as a vertex array.

Perform the OpenGL commands to render all verties as a vertex array.

Reimplemented from H3D::X3DNormalNode.

References vector.


Member Data Documentation

A vector of 3D normal vectors.

Access type: inputOutput

Normal_vector.dot

Referenced by renderArray().


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

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