All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vlc.vrml.internal.geometry.GroupingNode

java.lang.Object
   |
   +----vlc.vrml.generic.geometry.VrmlObject
           |
           +----vlc.vrml.internal.geometry.VrmlObject
                   |
                   +----vlc.vrml.internal.geometry.ChildrenNode
                           |
                           +----vlc.vrml.internal.geometry.GroupingNode

public abstract class GroupingNode
extends ChildrenNode
JVerge

Version:
0.8 (beta 4) Copyright 1997 The Virtual Light Company under the GNU LGPL

The latest information and bugs in JVerge can be found at http://www.vlc.com.au/JVerge

For more information on Grouping nodes please see the VRML 97 specification Concepts section 4.6.5

Base class for all the Grouping Nodes and SpecialGroups

Author:
Justin Couch justin@vlc.com.au
See Also:
Anchor, Billboard, Collision, Group, Transform

Variable Index

 o _addChildren
 o _bboxCenter
 o _bboxSize
 o _children
 o _removeChildren
 o _set_children
 o num_children

Constructor Index

 o GroupingNode()
empty constructor to prevent direct instantiation of this class.
 o GroupingNode(Browser)
Constructor to pass the browser reference down to the base class

Method Index

 o addChildren(ChildrenNode[])
Add the list of children to this node.
 o get_bboxCenter()
Get the bounding box center position.
 o get_bboxSize()
Get the bounding box size position.
 o get_children()
Get the current children
 o removeChildren(ChildrenNode[])
Remove the list of children to this node.
 o set_children(ChildrenNode[])
Set the children field.
 o writeReset()
Used for maintaining the reference counting when trying to do DEF/USE in the write to stream method.

Variables

 o _addChildren
 protected MFNode _addChildren
 o _removeChildren
 protected MFNode _removeChildren
 o _set_children
 protected MFNode _set_children
 o num_children
 protected int num_children
 o _children
 protected Vector _children
 o _bboxCenter
 protected float _bboxCenter[]
 o _bboxSize
 protected float _bboxSize[]

Constructors

 o GroupingNode
 protected GroupingNode()
empty constructor to prevent direct instantiation of this class.

 o GroupingNode
 protected GroupingNode(Browser b)
Constructor to pass the browser reference down to the base class

Parameters:
b - The browser reference to be passed on

Methods

 o addChildren
 public void addChildren(ChildrenNode child_list[])
Add the list of children to this node.

Parameters:
child_list - The children to add.
 o removeChildren
 public void removeChildren(ChildrenNode child_list[])
Remove the list of children to this node.

Parameters:
child_list - The children to remove.
 o set_children
 public void set_children(ChildrenNode child_list[])
Set the children field. This automatically deletes the previously set children and makes sure they are cleaned up properly.

Parameters:
child_list - The new children to set.
 o get_children
 public ChildrenNode[] get_children()
Get the current children

Returns:
The list of currently set children.
 o get_bboxCenter
 public float[] get_bboxCenter()
Get the bounding box center position.

Returns:
The center postion where return[0] = x, return[1] = y, return[2] = z
 o get_bboxSize
 public float[] get_bboxSize()
Get the bounding box size position.

Returns:
The size where return[0] = x, return[1] = y, return[2] = z
 o writeReset
 public void writeReset()
Used for maintaining the reference counting when trying to do DEF/USE in the write to stream method.

Overrides:
writeReset in class VrmlObject

All Packages  Class Hierarchy  This Package  Previous  Next  Index