All Packages Class Hierarchy This Package Previous Next Index
Class vlc.vrml.internal.geometry.Color
java.lang.Object
|
+----vlc.vrml.generic.geometry.VrmlObject
|
+----vlc.vrml.internal.geometry.VrmlObject
|
+----vlc.vrml.internal.geometry.Color
- public class Color
- extends VrmlObject
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 Color node please see the
VRML 97 Color specification
- Author:
- Justin Couch justin@vlc.com.au
-
Color()
- Default Constructor
-
Color(Browser)
- Default constructor used when you want to provide your own browser
reference
-
cleanup()
- Call when about to remove the node from the scenegraph.
-
clone()
- Make a clone of this object
-
get_color()
- Get the color attributes of the node
-
set_color(float[][])
- Set the color attributes of the node
-
writeToStream(int)
- Prints the formatted contents of this node to the given stream.
Color
public Color()
- Default Constructor
Color
public Color(Browser b)
- Default constructor used when you want to provide your own browser
reference
- Parameters:
- b - A valid Browser reference
cleanup
public void cleanup()
- Call when about to remove the node from the scenegraph.
- Overrides:
- cleanup 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_color
public void set_color(float color[][])
- Set the color attributes of the node
- Parameters:
- color - An array of color values. Each color is described as \
color[i][0] = red, color[i][1] = green, color[i][2] = blue
get_color
public float[][] get_color()
- Get the color attributes of the node
- Returns:
- An array of color values. Each color is described as \
color[i][0] = red, color[i][1] = green, color[i][2] = blue
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