Open Inventor Reference
|
Point set shape node. More...
#include <Inventor/nodes/SoPointSet.h>
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 ¢er) |
Computes bounding box of point set. | |
virtual SoDetail * | createPointDetail (SoRayPickAction *action, const SoPrimitiveVertex *v, SoPickedPoint *pp) |
Overrides standard method to create an SoPointDetail instance. | |
virtual | ~SoPointSet () |
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
.
PointSet { startIndex 0 numPoints -1 }
Definition at line 123 of file SoPointSet.h.
SoPointSet::SoPointSet | ( | ) |
virtual SoPointSet::~SoPointSet | ( | ) | [protected, virtual] |
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.
Definition at line 132 of file SoPointSet.h.