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 <H3D/PointSet.h>

Inheritance diagram for H3D::PointSet:

Inheritance graph

List of all members.

Classes

class  NotEnoughColors
 Thrown when the number of colors in the color field are less than the number of points in the coord field. More...

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 DependentSFNode
< FogCoordinate, FieldRef
< X3DGeometricPropertyNode,
Field,&FogCoordinate::propertyChanged > > 
SFFogCoordinate
 The SFFogCoordinate is dependent on the propertyChanged field of the contained FogCoordinate.
typedef CoordBoundField SFBound
 The bound field for PointSet is a CoordBoundField.

Public Member Functions

 PointSet (Inst< SFNode > _metadata=0, Inst< SFBound > _bound=0, Inst< DisplayList > _displayList=0, Inst< SFColorNode > _color=0, Inst< SFCoordinateNode > _coord=0, Inst< SFFogCoordinate > _fogCoord=0)
 Constructor.
virtual void render ()
 Render the LineSet with OpenGL.
virtual int nrPoints ()
 The number of points rendered by this geometry.
virtual bool movingSphereIntersect (H3DFloat radius, const Vec3f &from, const Vec3f &to, NodeIntersectResult &result)
 Detect collision between a moving sphere and the geometry.

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.
auto_ptr< SFFogCoordinatefogCoord
 If the fogCoord field is not empty, it shall contain a list of per-vertex depth values for calculating fog depth.

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 Typedef Documentation

SFColorNode is dependent on colorChanged field in X3DColorNode.

SFCoordinateNode is dependent on coordChanged field in X3DCoordinateNode.

The SFFogCoordinate is dependent on the propertyChanged field of the contained FogCoordinate.


Member Function Documentation

virtual bool H3D::PointSet::movingSphereIntersect ( H3DFloat  radius,
const Vec3f &  from,
const Vec3f &  to,
NodeIntersectResult &  result 
) [inline, virtual]

Detect collision between a moving sphere and the geometry.

Parameters:
radius The radius of the sphere
from The start position of the sphere
to The end position of the sphere.
result A struct containing various results of intersections such as which geometries intersected the moving sphere.
Returns:
true if intersected, false otherwise.

Reimplemented from H3D::X3DGeometryNode.


Member Data Documentation

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

Referenced by PointSet(), and render().

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

Referenced by PointSet(), and render().

If the fogCoord field is not empty, it shall contain a list of per-vertex depth values for calculating fog depth.

Access type: inputOutput

PointSet_fogCoord.dot

Referenced by PointSet(), and render().


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

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