All Packages Class Hierarchy This Package Previous Next Index
Class vlc.vrml.internal.geometry.Material
java.lang.Object
|
+----vlc.vrml.generic.geometry.VrmlObject
|
+----vlc.vrml.internal.geometry.VrmlObject
|
+----vlc.vrml.internal.geometry.Material
- public class Material
- 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 Material node please see the
VRML 97 Material specification
- Author:
- Justin Couch justin@vlc.com.au
-
Material()
- Default Constructor.
-
Material(Browser)
- Default Constructor when you wish to supply your own Browser reference.
-
clone()
- Make a clone of this object
-
get_ambientIntensity()
- Get the ambient intensity that this light contributes to the scene.
-
get_diffuseColor()
- Get the colour this surface reflects
-
get_emissiveColor()
- Get the colour this surface emits
-
get_shininess()
- Get the shininess that this surface has.
-
get_specularColor()
- Get the colour the specular highlights.
-
get_transparency()
- Get the transparency that this surface has.
-
set_ambientIntensity(float)
- Set the ambient intensity that this light contributes to the scene.
-
set_diffuseColor(float, float, float)
- Set the colour this surface reflects.
-
set_emissiveColor(float, float, float)
- Set the colour this surface emits
-
set_shininess(float)
- Set the shininess that this surface has.
-
set_specularColor(float, float, float)
- Set the colour of the specular highlights
-
set_transparency(float)
- Set the transparency that this surface has.
-
writeToStream(int)
- Prints the formatted contents of this node to the given stream.
Material
public Material()
- Default Constructor. Creates a default Material
Material
public Material(Browser b)
- Default Constructor when you wish to supply your own Browser reference.
Creates a default Material
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_ambientIntensity
public void set_ambientIntensity(float val)
- Set the ambient intensity that this light contributes to the scene.
- Parameters:
- val - The intensity between 0 (none) and 1 (full)
get_ambientIntensity
public float get_ambientIntensity()
- Get the ambient intensity that this light contributes to the scene.
- Returns:
- The intensity between 0 (none) and 1 (full)
set_shininess
public void set_shininess(float val)
- Set the shininess that this surface has.
- Parameters:
- val - The shine between 0 (none) and 1 (full)
get_shininess
public float get_shininess()
- Get the shininess that this surface has.
- Returns:
- The shine between 0 (none) and 1 (full)
set_transparency
public void set_transparency(float val)
- Set the transparency that this surface has.
- Parameters:
- val - The transparency between 0 (none) and 1 (full)
get_transparency
public float get_transparency()
- Get the transparency that this surface has.
- Returns:
- The transparency between 0 (none) and 1 (full)
set_diffuseColor
public void set_diffuseColor(float red,
float green,
float blue)
- Set the colour this surface reflects.
- Parameters:
- val - The new colour where
val[0 = red, val[1] = green, val[2] = blue
get_diffuseColor
public float[] get_diffuseColor()
- Get the colour this surface reflects
- Returns:
- The new colour where
val[0 = red, val[1] = green, val[2] = blue
set_emissiveColor
public void set_emissiveColor(float red,
float green,
float blue)
- Set the colour this surface emits
- Parameters:
- val - The new colour where
val[0 = red, val[1] = green, val[2] = blue
get_emissiveColor
public float[] get_emissiveColor()
- Get the colour this surface emits
- Returns:
- The new colour where
val[0 = red, val[1] = green, val[2] = blue
set_specularColor
public void set_specularColor(float red,
float green,
float blue)
- Set the colour of the specular highlights
- Parameters:
- val - The new colour where
val[0 = red, val[1] = green, val[2] = blue
get_specularColor
public float[] get_specularColor()
- Get the colour the specular highlights.
- Returns:
- The new colour where
val[0 = red, val[1] = green, val[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