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

Class dnx.lr.node.GroupNode

java.lang.Object
   |
   +----dnx.util.DNXObject
           |
           +----dnx.lr.Node
                   |
                   +----dnx.lr.GroupingNode
                           |
                           +----dnx.lr.node.GroupNode

public class GroupNode
extends GroupingNode
 Group {
    eventIn      MFNode       addChildren     
    eventIn      MFNode       removeChildren  
    exposedField MFNode       children        []
    field        SFVec3f      bboxCenter      0 0 0
    field        SFVec3f      bboxSize        -1 -1 -1
 }

A Group node is equivalent to a Transform node, without the transformation fields.

See the "Concepts - Grouping and Children Nodes" section for a description of the children, addChildren, and removeChildren fields and eventIns.

The bboxCenter and bboxSize fields specify a bounding box that encloses the Group's children. This is a hint that may be used for optimization purposes. If the specified bounding box is smaller than the actual bounding box of the children at any time, then the results are undefined. A default bboxSize value, (-1 -1 -1), implies that the bounding box is not specified and if needed must be calculated by the browser. See "Concepts - Bounding Boxes" for a description of the bboxCenter and bboxSize fields.


Variable Index

 o bboxCenter
 o bboxSize
 o children

Constructor Index

 o GroupNode()

Method Index

 o boundingBoxHasChanged(Field)
Meant to be overridden by subclasses.
 o createNodeDefinition(NodeDefinition)
Create the node definition.
 o getChildren()
 o handleEvent(SceneEvent)
Handle an event.
 o initFields()
Initialize field values.
 o recomputeBoundingBox(BoundingBox3)
Meant to be overridden by subclasses; compute the bounding box and store into the argument.

Variables

 o children
  public MFNode children
 o bboxCenter
  public SFVec3f bboxCenter
 o bboxSize
  public SFVec3f bboxSize

Constructors

 o GroupNode
  public GroupNode()

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 getChildren
  public MFNode getChildren()
Overrides:
getChildren in class GroupingNode
 o handleEvent
  protected void handleEvent(SceneEvent ev)
Handle an event.
Overrides:
handleEvent in class Node
 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

All Packages  Class Hierarchy  This Package  Previous  Next  Index