Open Inventor Reference
|
Indexed polyline shape node. More...
#include <Inventor/nodes/SoIndexedLineSet.h>
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 SoDetail * | createLineSegmentDetail (SoRayPickAction *action, const SoPrimitiveVertex *v1, const SoPrimitiveVertex *v2, SoPickedPoint *pp) |
Overrides standard method to create an SoLineDetail instance. | |
virtual | ~SoIndexedLineSet () |
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.
IndexedLineSet { coordIndex 0 materialIndex -1 normalIndex -1 textureCoordIndex -1 }
Definition at line 137 of file SoIndexedLineSet.h.
typedef void(SoIndexedLineSet::* SoIndexedLineSet::PMILS)(SoGLRenderAction *) |
Definition at line 160 of file SoIndexedLineSet.h.
OVERALL | |
PER_SEGMENT | |
PER_SEGMENT_INDEXED | |
PER_LINE | |
PER_LINE_INDEXED | |
PER_VERTEX | |
PER_VERTEX_INDEXED |
Definition at line 166 of file SoIndexedLineSet.h.
SoIndexedLineSet::SoIndexedLineSet | ( | ) |
virtual SoIndexedLineSet::~SoIndexedLineSet | ( | ) | [protected, virtual] |
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.
Definition at line 145 of file SoIndexedLineSet.h.