SoIndexedPointSet Class Reference

Indexed point set shape node. More...

#include <Inventor/nodes/SoIndexedPointSet.h>

Inheritance diagram for SoIndexedPointSet:
SoIndexedShape SoVertexShape SoShape SoNode SoFieldContainer SoBase SoRefCounter SoTypedObject SoIndexedMarkerSet

List of all members.

Public Member Functions

virtual SoType getTypeId () const
 SoIndexedPointSet ()

Static Public Member Functions

static SoType getClassTypeId ()

Detailed Description

Indexed point set shape node.

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.

Each point consists of one vertex, which is denoted by an integer index (from the coordIndex field) into the current coordinates. The number of values in the coordIndex field defines the number of points. Depending on the current material and normal binding values, the materials and normals for the vertices may be accessed in order or indexed. If they are indexed, the materialIndex and normalIndex fields are used.

The coordinates of the point set are transformed by the current cumulative transformation.

Lighting is not applied to points (i.e., they are rendered with light model BASE_COLOR) unless the application explicitly sets normal vectors using SoVertexProperty or SoNormal. Note that this is specific to direct rendering of point sets. If you render polygonal geometry, e.g. SoFaceSet, in POINTS mode (SoDrawStyle), normal vectors are computed by Open Inventor and lighting is enabled.

Point size is controlled by the SoDrawStyle field pointSize.

Automatic simplification (by skipping points) is controlled by the SoComplexity field value. Only values < 0.5 have any effect.

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.

By default OpenGL renders points as "squares". To get round points (points rendered as circles) you must explicitly enable point smoothing, using the setSmoothing() method in the SoGLRenderAction class. You can get the current render action object from the viewer (or from the SoSceneManager if you are not using a viewer).

Shape Antialiasing type is SoShape::POINTS.





SoCoordinate3, SoDrawStyle, SoFullSceneAntialiasing, SoPointDetail, SoPointSet, SoVertexProperty

Constructor & Destructor Documentation

SoIndexedPointSet::SoIndexedPointSet (  ) 

Creates an indexed point set node with default settings.

Member Function Documentation

static SoType SoIndexedPointSet::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoIndexedShape.

Reimplemented in SoIndexedMarkerSet.

virtual SoType SoIndexedPointSet::getTypeId (  )  const [virtual]

Returns the type identifier for this specific instance.

Reimplemented from SoIndexedShape.

Reimplemented in SoIndexedMarkerSet.

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

Open Inventor Toolkit reference manual, generated on 1 Nov 2022
Copyright © Thermo Fisher Scientific All rights reserved.