SoLineSet Class Reference

Polyline shape node. More...

#include <Inventor/nodes/SoLineSet.h>

Inheritance diagram for SoLineSet:
SoNonIndexedShape SoVertexShape SoShape SoNode SoFieldContainer SoBase SoRefCounter SoTypedObject PlaneBoxIntersection

List of all members.

Public Member Functions

virtual SoType getTypeId () const
 SoLineSet ()

Static Public Member Functions

static SoType getClassTypeId ()

Public Attributes

SoMFInt32 numVertices

Detailed Description

Polyline shape node.

This node represents a 3D shape formed by constructing a set of polylines from vertices located at the coordinates specified in the vertexProperty field (from SoVertexShape), or the current inherited coordinates. For optimal performance, the vertexProperty field is recommended.

Coordinates are used in order, starting with startIndex (zero by default).

If the numVertices field contains -1 (the default), then all the coordinates (starting with startIndex) are rendered as a single polyline.

Otherwise each polyline uses the number of vertices specified by a value in the numVertices field. For example, an SoLineSet with a numVertices of [3,4,2] would use the first three coordinates for the first polyline, the next four coordinates for the second polyline, and the next two coordinates for the third polyline. Thus the number of values in the numVertices field indicates the number of polylines in the set.

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

The line width and pattern are controlled by fields in SoDrawStyle.

The lines are drawn with the current drawing style (see SoDrawStyle), but drawing style FILLED is treated as LINES.

Treatment of the current material, normal and tangent binding is as follows:

The current complexity value has no effect on the rendering of line sets.

Shape Antialiasing type is SoShape::LINES.






SoCoordinate3, SoDrawStyle, SoFullSceneAntialiasing, SoIndexedLineSet, SoLineDetail, SoVertexProperty

See related examples:

LinePatternScaleFactorDemo, LinePatternScaleFactorTest, MedicalGetDataPolyLine, MedicalDTI, GetDataPolyLine

Constructor & Destructor Documentation

SoLineSet::SoLineSet (  ) 

Creates a line set node with default settings.

Member Function Documentation

static SoType SoLineSet::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoNonIndexedShape.

Reimplemented in PlaneBoxIntersection.

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

Returns the type identifier for this specific instance.

Reimplemented from SoNonIndexedShape.

Reimplemented in PlaneBoxIntersection.

Member Data Documentation

Number of vertices per polyline.

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

Open Inventor Toolkit reference manual, generated on 16 Mar 2021
Copyright © Thermo Fisher Scientific All rights reserved.