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 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.


Variable Index

 o color
 o colorIndex
 o colorPerVertex
 o coord
 o coordIndex

Constructor Index

 o IndexedLineSetNode()

Method Index

 o boundingBoxHasChanged(Field)
Meant to be overridden by subclasses.
 o createNodeDefinition(NodeDefinition)
Create the node definition.
 o handleEvent(SceneEvent)
Handle an event.
 o initFields()
Initialize field values.
 o pick(PickTraversal, PickDetail)
 o potentialChildCarryingFieldChange(Field, Node)
 o recomputeBoundingBox(BoundingBox3)
Meant to be overridden by subclasses; compute the bounding box and store into the argument.
 o render(NodeInstance, RenderTraversal)
 o sendModelData(Model)

Variables

 o color
  public SFNode color
 o coord
  public SFNode coord
 o colorIndex
  public MFInt32 colorIndex
 o colorPerVertex
  public SFBool colorPerVertex
 o coordIndex
  public MFInt32 coordIndex

Constructors

 o IndexedLineSetNode
  public IndexedLineSetNode()

Methods

 o createNodeDefinition
  protected void createNodeDefinition(NodeDefinition def)
Create the node definition.
Overrides:
createNodeDefinition in class Node
 o initFields
  protected void initFields()
Initialize field values.
Overrides:
initFields in class Node
 o render
  public void render(NodeInstance inst,
                     RenderTraversal traversal)
Overrides:
render in class GeometryNode
 o pick
  public boolean pick(PickTraversal traversal,
                      PickDetail detail)
Overrides:
pick in class GeometryNode
 o sendModelData
  public int sendModelData(Model model)
Overrides:
sendModelData in class GeometryNode
 o 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
 o boundingBoxHasChanged
  protected boolean boundingBoxHasChanged(Field f)
Meant to be overridden by subclasses.
Overrides:
boundingBoxHasChanged in class Node
 o handleEvent
  protected void handleEvent(SceneEvent ev)
Handle an event.
Overrides:
handleEvent in class Node
 o potentialChildCarryingFieldChange
  public void potentialChildCarryingFieldChange(Field f,
                                                Node newValue)
Overrides:
potentialChildCarryingFieldChange in class Node

All Packages  Class Hierarchy  This Package  Previous  Next  Index