Class dnx.lr.node.IndexedLineSetNode
All Packages Class Hierarchy This Package Previous Next Index
Class dnx.lr.node.IndexedLineSetNode
java.lang.Object
|
+----dnx.util.DNXObject
|
+----dnx.lr.Node
|
+----dnx.lr.SubsidiaryNode
|
+----dnx.lr.GeometryNode
|
+----dnx.lr.node.IndexedLineSetNode
- public class IndexedLineSetNode
- extends GeometryNode
- implements ModelSource
IndexedLineSet {
eventIn MFInt32 set_colorIndex
eventIn MFInt32 set_coordIndex
exposedField SFNode color NULL
exposedField SFNode coord NULL
field MFInt32 colorIndex []
field SFBool colorPerVertex TRUE
field MFInt32 coordIndex []
}
The IndexedLineSet node represents a 3D geometry formed by
constructing polylines from 3D points specified in the coord
field. IndexedLineSet uses the indices in its coordIndex
field to specify the polylines by connecting together points from
the coord field. An index of -1 indicates that the current
polyline has ended and the next one begins. The last polyline may
(but does not have to be) followed by a -1. IndexedLineSet is
specified in the local coordinate system and is affected by parent
transformations.
The coord field specifies the 3D vertices of the line set
and is specified by a Coordinate node.
Lines are not lit, not texture-mapped, or not collided with
during collision detection.
If the color field is not NULL, it must contain a Color
node, and the colors are applied to the line(s) as follows:
- If colorPerVertex is FALSE:
- If the colorIndex field is not empty, then one
color is used for each polyline of the IndexedLineSet. There
must be at least as many indices in the colorIndex
field as there are polylines in the IndexedLineSet. If the
greatest index in the colorIndex field is N, then
there must be N+1 colors in the Color node. The colorIndex
field must not contain any negative entries.
-
If the colorIndex field is empty, then the colors are
applied to each polyline of the IndexedLineSet in order. There must
be at least as many colors in the Color node as there are
polylines.
- If colorPerVertex is TRUE:
- If the colorIndex field is not
empty, then colors are applied to each vertex of the
IndexedLineSet in exactly the same manner that the
coordIndex field is used to supply coordinates for
each vertex from the Coordinate node. The colorIndex
field must contain at least as many indices as the coordIndex
field and must contain end-of-polyline markers (-1) in
exactly the same places as the coordIndex field. If
the greatest index in the colorIndex field is N, then
there must be N+1 colors in the Color node.
-
If the colorIndex field is empty, then the
coordIndex field is used to choose colors from the
Color node. If the greatest index in the coordIndex
field is N, then there must be N+1 colors in the Color node.
If the color field is NULL and there is a
Material defined for the Appearance affecting this IndexedLineSet,
then use the emissiveColor of the Material to draw the lines.
See "Concepts - Lighting
Model, Lighting Off" for details on lighting
equations.
-
color
-
-
colorIndex
-
-
colorPerVertex
-
-
coord
-
-
coordIndex
-
-
IndexedLineSetNode()
-
-
boundingBoxHasChanged(Field)
- Meant to be overridden by subclasses.
-
createNodeDefinition(NodeDefinition)
- Create the node definition.
-
handleEvent(SceneEvent)
- Handle an event.
-
initFields()
- Initialize field values.
-
pick(PickTraversal, PickDetail)
-
-
potentialChildCarryingFieldChange(Field, Node)
-
-
recomputeBoundingBox(BoundingBox3)
- Meant to be overridden by subclasses; compute the bounding box
and store into the argument.
-
render(NodeInstance, RenderTraversal)
-
-
sendModelData(Model)
-
color
public SFNode color
coord
public SFNode coord
colorIndex
public MFInt32 colorIndex
colorPerVertex
public SFBool colorPerVertex
coordIndex
public MFInt32 coordIndex
IndexedLineSetNode
public IndexedLineSetNode()
createNodeDefinition
protected void createNodeDefinition(NodeDefinition def)
- Create the node definition.
- Overrides:
- createNodeDefinition in class Node
initFields
protected void initFields()
- Initialize field values.
- Overrides:
- initFields in class Node
render
public void render(NodeInstance inst,
RenderTraversal traversal)
- Overrides:
- render in class GeometryNode
pick
public boolean pick(PickTraversal traversal,
PickDetail detail)
- Overrides:
- pick in class GeometryNode
sendModelData
public int sendModelData(Model model)
- Overrides:
- sendModelData in class GeometryNode
recomputeBoundingBox
public void recomputeBoundingBox(BoundingBox3 box)
- Meant to be overridden by subclasses; compute the bounding box
and store into the argument.
- Overrides:
- recomputeBoundingBox in class Node
boundingBoxHasChanged
protected boolean boundingBoxHasChanged(Field f)
- Meant to be overridden by subclasses.
- Overrides:
- boundingBoxHasChanged in class Node
handleEvent
protected void handleEvent(SceneEvent ev)
- Handle an event.
- Overrides:
- handleEvent in class Node
potentialChildCarryingFieldChange
public void potentialChildCarryingFieldChange(Field f,
Node newValue)
- Overrides:
- potentialChildCarryingFieldChange in class Node
All Packages Class Hierarchy This Package Previous Next Index