public class SoIndexedLineSet extends SoIndexedShape
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 line width and pattern are controlled by fields in SoDrawStyle
.
The lines are drawn with the current drawing style (SoDrawStyle
), but drawing style FILLED is treated as LINES.
Treatment of the current material, normal and tangent binding is as follows:
materialIndex
, normalIndex
or tangentIndex
indices (see SoIndexedShape
).
The current complexity value has no effect on the rendering of indexed line sets.
Shape Antialiasing type is SoShape.LINES
.
Lighting:
SoLightModel
model = PER_VERTEX_PHONG). But... SoVertexProperty
or SoNormal
) or sets tangent vectors (using SoVertexProperty
). Normal vectors are not automatically computed for line shapes. SoFaceSet
, using LINES mode (SoDrawStyle
), the rules for polygonal shapes apply (if lighting is enabled and no normal vectors were specified, then normal vectors are automatically computed by Open Inventor). Limitations:
File format/default:
IndexedLineSet {
vertexProperty | NULL |
coordIndex | -1 |
materialIndex | -1 |
normalIndex | -1 |
tangentIndex | -1 |
textureCoordIndex | -1 |
Action behavior:
SoGLRenderAction
Draws lines based on the current coordinates, normals, tangents, 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
, SoFullSceneAntialiasing
, SoLineDetail
, SoLineSet
, SoVertexProperty
SoShape.ShapeTypes
SoNode.RenderModes
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
static int |
SO_END_LINE_INDEX
Value of an index in
SoIndexedShape.coordIndex indicating that the
current polyline has ended and the next one begins. |
coordIndex, materialIndex, normalIndex, tangentIndex, textureCoordIndex
vertexProperty
boundingBoxIgnoring
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoIndexedLineSet()
Creates an indexed line set node with default settings.
|
getNormalCache, getTangentCache
getShapeType, isPrimitiveRestartAvailable, isPrimitiveRestartAvailable
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderEngineMode, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable
getNativeResourceHandle
public static final int SO_END_LINE_INDEX
SoIndexedShape.coordIndex
indicating that the
current polyline has ended and the next one begins.Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com