Open Inventor Reference
SoPointSet Class Reference

Point set shape node. More...

#include <Inventor/nodes/SoPointSet.h>

Inheritance diagram for SoPointSet:
SoNonIndexedShape SoVertexShape SoShape SoNode SoFieldContainer SoBase

List of all members.

Public Member Functions

 SoPointSet ()
 Creates a point set node with default settings.
virtual void GLRender (SoGLRenderAction *action)
 Implements actions.
virtual void getBoundingBox (SoGetBoundingBoxAction *action)
 Redefine this to tell open caches that they contain points.

Static Public Member Functions

static void initClass ()
 Initializes base node class.

Public Attributes

Fields
SoSFInt32 numPoints
 Number of points.

Protected Member Functions

virtual void generatePrimitives (SoAction *action)
 Generates points representing point set.
virtual void computeBBox (SoAction *action, SbBox3f &box, SbVec3f &center)
 Computes bounding box of point set.
virtual SoDetailcreatePointDetail (SoRayPickAction *action, const SoPrimitiveVertex *v, SoPickedPoint *pp)
 Overrides standard method to create an SoPointDetail instance.
virtual ~SoPointSet ()

Detailed Description

This node represents a set of points located at the coordinates specified by the vertexProperty field (from SoVertexShape) or the current inherited coordinates. For optimal performance, the vertexProperty field is recommended.

SoPointSet uses the coordinates in order, starting with the first one. The number of points in the set is specified by the numPoints field.

The coordinates of the point set are transformed by the current cumulative transformation. The points are drawn with the current light model and drawing style (drawing styles FILLED and LINES are treated as POINTS).

Treatment of the current material and normal binding is as follows: PER_PART, PER_FACE, and PER_VERTEX bindings bind one material or normal to each point. The default material binding is OVERALL. The default normal binding is PER_VERTEX.

File Format/Default
PointSet {
  startIndex 0
  numPoints -1
}
Action Behavior
SoGLRenderAction
Draws points based on the current coordinates, normals, materials, drawing style, and so on.
SoRayPickAction
Picks points based on the current coordinates and transformation. Details about the intersection are returned in an SoPointDetail.
SoGetBoundingBoxAction
Computes the bounding box that encloses all points in the set with the current transformation applied to them. Sets the center to the average of the coordinates of all points.
SoCallbackAction
If any point callbacks are registered with the action, they will be invoked for each point in the set.
See Also
SoCoordinate3, SoDrawStyle, SoPointDetail, SoVertexProperty

Definition at line 123 of file SoPointSet.h.


Constructor & Destructor Documentation

SoPointSet::SoPointSet ( )
virtual SoPointSet::~SoPointSet ( ) [protected, virtual]

Member Function Documentation

virtual void SoPointSet::computeBBox ( SoAction action,
SbBox3f box,
SbVec3f center 
) [protected, virtual]

Implements SoShape.

virtual SoDetail* SoPointSet::createPointDetail ( SoRayPickAction action,
const SoPrimitiveVertex v,
SoPickedPoint pp 
) [protected, virtual]

Reimplemented from SoShape.

virtual void SoPointSet::generatePrimitives ( SoAction action) [protected, virtual]

Implements SoShape.

virtual void SoPointSet::getBoundingBox ( SoGetBoundingBoxAction action) [virtual]

Reimplemented from SoShape.

virtual void SoPointSet::GLRender ( SoGLRenderAction action) [virtual]

Reimplemented from SoShape.

static void SoPointSet::initClass ( ) [static]

Reimplemented from SoNonIndexedShape.


Member Data Documentation

Definition at line 132 of file SoPointSet.h.


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