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

This node defines a set of 3D coordinates to be used in the coord field of vertex-based geometry nodes. More...

#include <H3D/Coordinate.h>

Inheritance diagram for H3D::Coordinate:

Inheritance graph

List of all members.

Public Member Functions

 Coordinate (Inst< SFNode > _metadata=0, Inst< MFVec3f > _point=0)
 Constructor.
virtual void render (int index)
 Perform the OpenGL commands to render a vertex given the index of the vertex.
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 nrAvailableCoords ()
 Returns the number of coordinates this coordinate node can render.

Public Attributes

auto_ptr< MFVec3fpoint
 A vector of Vec3f defining points in 3d-space.

Static Public Attributes

static H3DNodeDatabase database
 The H3DNodeDatabase for this node.


Detailed Description

This node defines a set of 3D coordinates to be used in the coord field of vertex-based geometry nodes.

Internal routes:
Coordinate.dot

Member Function Documentation

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

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

We install the vertex as glVectex3f.

Reimplemented from H3D::X3DCoordinateNode.

void Coordinate::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::X3DCoordinateNode.

References point.


Member Data Documentation


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

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