All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vlc.vrml.external.geometry.LOD

java.lang.Object
   |
   +----vlc.vrml.generic.geometry.VrmlObject
           |
           +----vlc.vrml.external.geometry.VrmlObject
                   |
                   +----vlc.vrml.external.geometry.ChildrenNode
                           |
                           +----vlc.vrml.external.geometry.SpecialGroup
                                   |
                                   +----vlc.vrml.external.geometry.LOD

public class LOD
extends SpecialGroup
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

Author:
Justin Couch justin@vlc.com.au

Constructor Index

 o LOD()
Default Constructor.
 o LOD(Browser)
Default Constructor when you wish to supply your own Browser reference.
 o LOD(Browser, float[], float[])
Constructor to use when you want to supply non default values for either the center or range values along with your own Browser reference.
 o LOD(float[], float[])
Constructor to use when you want to supply non default values for either the center or range values

Method Index

 o cleanup()
Call when about to remove the node from the scenegraph.
 o clone()
Make a clone of this object
 o get_center()
Get the position of the center for all the LOD calculations to work from.
 o get_level()
Get the current nodes that are the LOD levels.
 o get_range()
Get the list of ranges that are used for each level.
 o set_level(ChildrenNode[])
Set the level nodes.
 o writeReset()
Used for maintaining the reference counting when trying to do DEF/USE in the write to stream method.
 o writeToStream(int)
Prints the formatted contents of this node to the given stream.

Constructors

 o LOD
 public LOD()
Default Constructor. Creates a default LOD

 o LOD
 public LOD(Browser b)
Default Constructor when you wish to supply your own Browser reference. Creates a default LOD

 o LOD
 public LOD(float center[],
            float range[])
Constructor to use when you want to supply non default values for either the center or range values

 o LOD
 public LOD(Browser b,
            float center[],
            float range[])
Constructor to use when you want to supply non default values for either the center or range values along with your own Browser reference.

Methods

 o cleanup
 public void cleanup()
Call when about to remove the node from the scenegraph.

Overrides:
cleanup in class VrmlObject
 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 writeToStream
 public void writeToStream(int indent)
Prints the formatted contents of this node to the given stream.

Parameters:
indent - The number of spaces to indent this node in the string
Overrides:
writeToStream in class VrmlObject
 o set_level
 public void set_level(ChildrenNode child_list[])
Set the level nodes. Replaces all of the current levels and automatically cleanup after them.

Parameters:
child_list - The new nodes to be used. Order is guaranteed
 o get_level
 public ChildrenNode[] get_level()
Get the current nodes that are the LOD levels.

Returns:
the levels in order
 o get_range
 public float[] get_range()
Get the list of ranges that are used for each level.

Returns:
An array of values representing all the range settings.
 o get_center
 public float[] get_center()
Get the position of the center for all the LOD calculations to work from.

Returns:
The center position where return[0] = x, return[1] = y, return[2] = z
 o clone
 public Object clone()
Make a clone of this object

Returns:
A deep clone copy of this object
Overrides:
clone in class VrmlObject

All Packages  Class Hierarchy  This Package  Previous  Next  Index