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

The PointSet node specifies a set of 3D points, in the local coordinate system, with associated colours at each point. More...

#include <PointSet.h>

Inheritance diagram for H3D::PointSet:

Inheritance graph
List of all members.

Public Types

typedef DependentSFNode< X3DCoordinateNode,
FieldRef< X3DGeometricPropertyNode,
Field,&X3DCoordinateNode::propertyChanged > > 
SFCoordinateNode
 SFCoordinateNode is dependent on coordChanged field in X3DCoordinateNode.
typedef DependentSFNode< X3DColorNode,
FieldRef< X3DGeometricPropertyNode,
Field,&X3DColorNode::propertyChanged > > 
SFColorNode
 SFColorNode is dependent on colorChanged field in X3DColorNode.
typedef CoordBoundField SFBound
 The bound field for PointSet is a CoordBoundField.

Public Member Functions

 H3D_VALUE_EXCEPTION (unsigned int, NotEnoughColors)
 Thrown when the number of colors in the color field are less than the number of points in the coord field.
 PointSet (Inst< SFNode > _metadata=0, Inst< SFBound > _bound=0, Inst< DisplayList > _displayList=0, Inst< SFColorNode > _color=0, Inst< SFCoordinateNode > _coord=0)
 Constructor.
virtual void render ()
 Render the LineSet with OpenGL.

Public Attributes

auto_ptr< SFColorNodecolor
 If the color field is not NULL, it shall specify a Color node that contains at least the number of points contained in the coord node.
auto_ptr< SFCoordinateNodecoord
 The coord field specifies a X3DCoordinateNode.

Static Public Attributes

static H3DNodeDatabase database
 The H3DNodeDatabase for this node.

Detailed Description

The PointSet node specifies a set of 3D points, in the local coordinate system, with associated colours at each point.

The coord field specifies a X3DCoordinateNode. PointSet uses the coordinates in order. If the coord field is NULL, the point set is considered empty.

PointSet nodes are not lit, not texture-mapped, nor do they participate in collision detection. The size of each point is implementation-dependent.

If the color field is not NULL, it shall specify a Color node that contains at least the number of points contained in the coord node. Colours are applied to each point in order. The results are undefined if the number of values in the Color node is less than the number of values specified in the Coordinate node.

If the color field is NULL and there is a Material node defined for the Appearance node affecting this PointSet node, the emissiveColor of the Material node shall be used to draw the points.

Internal routes:
PointSet.dot


Member Data Documentation

auto_ptr< SFColorNode > H3D::PointSet::color
 

If the color field is not NULL, it shall specify a Color node that contains at least the number of points contained in the coord node.

Colours are applied to each point in order. If the color field is NULL and there is a Material node defined for the Appearance node affecting this PointSet node, the emissiveColor of the Material node shall be used to draw the points.

Access type: inputOutput

PointSet_color.dot

auto_ptr< SFCoordinateNode > H3D::PointSet::coord
 

The coord field specifies a X3DCoordinateNode.

PointSet uses the coordinates in order. If the coord field is NULL, the point set is considered empty.

Access type: inputOutput

PointSet_coord.dot


Generated on Thu Aug 24 12:39:48 2006 for H3D API by  doxygen 1.4.5