SmallChange  1.0.0
A collection of extensions to Coin3D
Loading...
Searching...
No Matches
SoPointCloud Class Reference

The SoPointCloud class is used to display a set of 3D points. More...

#include <Inventor/nodes/SoPointCloud.h>

Inheritance diagram for SoPointCloud:
SoNonIndexedShape

Public Types

enum  Mode { ALWAYS_POINTS , DISTANCE_BASED , ALWAYS_SHAPE }
 
enum  Shape { BILLBOARD_DIAMOND , CUBE , SPHERE }
 

Public Member Functions

 SoPointCloud (void)
 
virtual void getPrimitiveCount (SoGetPrimitiveCountAction *action)
 
virtual void GLRender (SoGLRenderAction *action)
 

Static Public Member Functions

static void initClass (void)
 

Public Attributes

SoSFFloat detailDistance
 
SoSFFloat itemSize
 
SoSFEnum mode
 
SoSFInt32 numPoints
 
SoSFEnum shape
 

Protected Member Functions

virtual ~SoPointCloud ()
 
virtual void computeBBox (SoAction *action, SbBox3f &box, SbVec3f &center)
 
virtual SbBool generateDefaultNormals (SoState *, SoNormalCache *nc)
 
virtual SbBool generateDefaultNormals (SoState *state, SoNormalBundle *bundle)
 
virtual void generatePrimitives (SoAction *action)
 

Detailed Description

The SoPointCloud class is used to display a set of 3D points.

When a point is closer to the camera than a specified distance, it will be rendered as a cube/sphere/diamond (specified by the 'shape' field).

This node either uses the coordinates currently on the state (typically set up by a leading SoCoordinate3 node in the scene graph) or from a SoVertexProperty node attached to this node to render a set of 3D points.

The SoPointCloud::numPoints field specifies the number of points in the coordinate set which should be rendered (or otherwise handled by traversal actions).

Constructor & Destructor Documentation

◆ SoPointCloud()

SoPointCloud::SoPointCloud ( void )

Constructor.

◆ ~SoPointCloud()

SoPointCloud::~SoPointCloud ( )
protectedvirtual

Destructor.

Member Data Documentation

◆ numPoints

SoSFInt32 SoPointCloud::numPoints

Used to specify number of points in the point cloud. Coordinates for the points will be taken from the state stack's set of 3D coordinates, typically set up by a leading SoCoordinate3 node.

If this field is equal to -1 (the default value) all coordinates currently on the state will be rendered or otherwise handled by traversal actions.

SoPointCloud inherits the field SoNonIndexedShape::startIndex, which specifies the start index for points from the current state set of coordinates. Please note that this field has been obsoleted, but is still provided for compatibility.


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