All Packages Class Hierarchy This Package Previous Next Index
Class vlc.vrml.internal.geometry.LOD
java.lang.Object
|
+----vlc.vrml.generic.geometry.VrmlObject
|
+----vlc.vrml.internal.geometry.VrmlObject
|
+----vlc.vrml.internal.geometry.ChildrenNode
|
+----vlc.vrml.internal.geometry.SpecialGroup
|
+----vlc.vrml.internal.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 LOD node please see the
VRML 97 LOD specification
- Author:
- Justin Couch justin@vlc.com.au
-
LOD()
- Default Constructor.
-
LOD(Browser)
- Default Constructor when you wish to supply your own Browser reference.
-
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.
-
LOD(float[], float[])
- Constructor to use when you want to supply non default values for either
the center or range values
-
cleanup()
- Call when about to remove the node from the scenegraph.
-
clone()
- Make a clone of this object
-
get_center()
- Get the position of the center for all the LOD calculations to work
from.
-
get_level()
- Get the current nodes that are the LOD levels.
-
get_range()
- Get the list of ranges that are used for each level.
-
set_level(ChildrenNode[])
- Set the level nodes.
-
writeReset()
- Used for maintaining the reference counting when trying to do DEF/USE in
the write to stream method.
-
writeToStream(int)
- Prints the formatted contents of this node to the given stream.
LOD
public LOD()
- Default Constructor. Creates a default LOD
LOD
public LOD(Browser b)
- Default Constructor when you wish to supply your own Browser reference.
Creates a default LOD
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
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.
cleanup
public void cleanup()
- Call when about to remove the node from the scenegraph.
- Overrides:
- cleanup in class VrmlObject
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
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
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
get_level
public ChildrenNode[] get_level()
- Get the current nodes that are the LOD levels.
- Returns:
- the levels in order
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.
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
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