Class dnx.lr.node.ShapeNode
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dnx.lr.node.ShapeNode

java.lang.Object
   |
   +----dnx.util.DNXObject
           |
           +----dnx.lr.Node
                   |
                   +----dnx.lr.LeafNode
                           |
                           +----dnx.lr.node.ShapeNode

public class ShapeNode
extends LeafNode
 Shape {
    exposedField SFNode       appearance      NULL
    exposedField SFNode       geometry        NULL
 }

The Shape node has two fields: appearance and geometry which are used to create rendered objects in the world. The appearance field specifies an Appearance node that specifies the visual attributes (e.g. material and texture) to be applied to the geometry . The geometry field specifies a geometry node. The specified geometry node is rendered with the specified appearance nodes applied.

See "Concepts - Lighting Model" for details of the VRML lighting model and the interaction between Appearance and geometry nodes.

If the geometry field is NULL the object is not drawn.


Variable Index

 o appearance
 o geometry

Constructor Index

 o ShapeNode()

Method Index

 o boundingBoxHasChanged(Field)
Meant to be overridden by subclasses.
 o createNodeDefinition(NodeDefinition)
Create the node definition.
 o getAppearanceNode()
 o getGeometryNode()
 o handleFieldChange(Field)
Handle a field change.
 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)

Variables

 o appearance
  public SFNode appearance
 o geometry
  public SFNode geometry

Constructors

 o ShapeNode
  public ShapeNode()

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 getAppearanceNode
  public AppearanceNode getAppearanceNode()
 o getGeometryNode
  public GeometryNode getGeometryNode()
 o pick
  public boolean pick(PickTraversal traversal,
                      PickDetail detail)
Overrides:
pick in class LeafNode
 o render
  public void render(NodeInstance inst,
                     RenderTraversal traversal)
Overrides:
render in class LeafNode
 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 potentialChildCarryingFieldChange
  public void potentialChildCarryingFieldChange(Field f,
                                                Node newValue)
Overrides:
potentialChildCarryingFieldChange in class Node
 o handleFieldChange
  protected void handleFieldChange(Field f)
Handle a field change.
Overrides:
handleFieldChange in class Node

All Packages  Class Hierarchy  This Package  Previous  Next  Index