Open Inventor Reference
SoIndexedLineSet Class Reference

Indexed polyline shape node. More...

#include <Inventor/nodes/SoIndexedLineSet.h>

Inheritance diagram for SoIndexedLineSet:
SoIndexedShape SoVertexShape SoShape SoNode SoFieldContainer SoBase

List of all members.

Public Types

enum  Binding {
  OVERALL, PER_SEGMENT, PER_SEGMENT_INDEXED, PER_LINE,
  PER_LINE_INDEXED, PER_VERTEX, PER_VERTEX_INDEXED
}
 This enum is used to indicate the current material or normal binding. More...
typedef void(SoIndexedLineSet::* PMILS )(SoGLRenderAction *)
 Typedef of pointer to method on IndexedLineSet; This will be used to simplify declaration and initialization.

Public Member Functions

 SoIndexedLineSet ()
 Creates an indexed line 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 lines.

Static Public Member Functions

static void initClass ()
 Initializes base node class.

Public Attributes

SoSFBool sendAdjacency
 flag that defines if the GL_LINES_ADJACENCY/GL_LINE_STRIP_ADJACENCY draw mode is used (MeVis Only)

Protected Member Functions

virtual void generatePrimitives (SoAction *action)
 Generates line segments representing line set.
virtual SoDetailcreateLineSegmentDetail (SoRayPickAction *action, const SoPrimitiveVertex *v1, const SoPrimitiveVertex *v2, SoPickedPoint *pp)
 Overrides standard method to create an SoLineDetail instance.
virtual ~SoIndexedLineSet ()

Detailed Description

This node represents a 3D shape formed by constructing 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.

SoIndexedLineSet uses the indices in the coordIndex field (from SoIndexedShape) to specify the polylines. An index of SO_END_LINE_INDEX (-1) indicates that the current polyline has ended and the next one begins.

The coordinates of the line set are transformed by the current cumulative transformation. The lines are drawn with the current light model and drawing style (drawing style FILLED is treated as LINES).

Treatment of the current material and normal binding is as follows: The PER_PART binding specifies a material or normal for each segment of the line. The PER_FACE binding specifies a material or normal for each polyline. PER_VERTEX specifies a material or normal for each vertex. The corresponding _INDEXED bindings are the same, but use the materialIndex or normalIndex indices (see SoIndexedShape). The default material binding is OVERALL. The default normal binding is PER_VERTEX_INDEXED

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

File Format/Default
IndexedLineSet {
  coordIndex 0
  materialIndex -1
  normalIndex -1
  textureCoordIndex -1
}
Action Behavior
SoGLRenderAction
Draws lines based on the current coordinates, normals, materials, drawing style, and so on.
SoRayPickAction
Picks lines based on the current coordinates and transformation. Details about the intersection are returned in an SoLineDetail.
SoGetBoundingBoxAction
Computes the bounding box that encloses all vertices of the line set with the current transformation applied to them. Sets the center to the average of the coordinates of all vertices.
SoCallbackAction
If any line segment callbacks are registered with the action, they will be invoked for each successive segment in the line set.
See Also
SoCoordinate3, SoDrawStyle, SoLineDetail, SoLineSet, SoVertexProperty

Definition at line 137 of file SoIndexedLineSet.h.


Member Typedef Documentation

typedef void(SoIndexedLineSet::* SoIndexedLineSet::PMILS)(SoGLRenderAction *)

Definition at line 160 of file SoIndexedLineSet.h.


Member Enumeration Documentation

Enumerator:
OVERALL 
PER_SEGMENT 
PER_SEGMENT_INDEXED 
PER_LINE 
PER_LINE_INDEXED 
PER_VERTEX 
PER_VERTEX_INDEXED 

Definition at line 166 of file SoIndexedLineSet.h.


Constructor & Destructor Documentation

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

Member Function Documentation

virtual SoDetail* SoIndexedLineSet::createLineSegmentDetail ( SoRayPickAction action,
const SoPrimitiveVertex v1,
const SoPrimitiveVertex v2,
SoPickedPoint pp 
) [protected, virtual]

Reimplemented from SoShape.

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

Implements SoShape.

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

Reimplemented from SoShape.

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

Reimplemented from SoShape.

static void SoIndexedLineSet::initClass ( ) [static]

Reimplemented from SoIndexedShape.


Member Data Documentation


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