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

Constructor Index

 o Material()
Default Constructor.
 o Material(Browser)
Default Constructor when you wish to supply your own Browser reference.

Method Index

 o clone()
Make a clone of this object
 o get_ambientIntensity()
Get the ambient intensity that this light contributes to the scene.
 o get_diffuseColor()
Get the colour this surface reflects
 o get_emissiveColor()
Get the colour this surface emits
 o get_shininess()
Get the shininess that this surface has.
 o get_specularColor()
Get the colour the specular highlights.
 o get_transparency()
Get the transparency that this surface has.
 o set_ambientIntensity(float)
Set the ambient intensity that this light contributes to the scene.
 o set_diffuseColor(float, float, float)
Set the colour this surface reflects.
 o set_emissiveColor(float, float, float)
Set the colour this surface emits
 o set_shininess(float)
Set the shininess that this surface has.
 o set_specularColor(float, float, float)
Set the colour of the specular highlights
 o set_transparency(float)
Set the transparency that this surface has.
 o writeToStream(int)
Prints the formatted contents of this node to the given stream.

Constructors

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

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

Methods

 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_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)
 o 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)
 o 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)
 o get_shininess
 public float get_shininess()
Get the shininess that this surface has.

Returns:
The shine between 0 (none) and 1 (full)
 o 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)
 o get_transparency
 public float get_transparency()
Get the transparency that this surface has.

Returns:
The transparency between 0 (none) and 1 (full)
 o 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
 o 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
 o 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
 o 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
 o 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
 o 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
 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