All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vlc.vrml.generic.geometry.GroupingNode

java.lang.Object
   |
   +----vlc.vrml.generic.geometry.VrmlObject
           |
           +----vlc.vrml.generic.geometry.ChildrenNode
                   |
                   +----vlc.vrml.generic.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 definition of the Anchor node please see the VRML 97 Anchor specification

GroupingNode abstract class. Base class for all the Grouping Nodes and SpecialGroups

Author:
Justin Couch justin@vlc.com.au

Variable Index

 o _bboxCenter
 o _bboxSize
 o _children
 o num_children

Constructor Index

 o GroupingNode()

Method Index

 o addChildren(ChildrenNode[])
Add the list of children to this node.
 o clone()
Return a deep clone of this object
 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 num_children
 protected int num_children
 o _children
 protected DeepCloneVector _children
 o _bboxCenter
 protected float _bboxCenter[]
 o _bboxSize
 protected float _bboxSize[]

Constructors

 o GroupingNode
 public GroupingNode()

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
 o clone
 public Object clone()
Return a deep clone of this object

Returns:
A clone of this object and its children
Overrides:
clone in class VrmlObject

All Packages  Class Hierarchy  This Package  Previous  Next  Index