gov.nist.microanalysis.NISTMonte
Class TrajectoryVRML.RenderContext

java.lang.Object
  extended by gov.nist.microanalysis.NISTMonte.TrajectoryVRML.RenderContext
Enclosing class:
TrajectoryVRML

public class TrajectoryVRML.RenderContext
extends java.lang.Object

A set of functions that provide contextual information for rendering an object as VRML.


Method Summary
 java.awt.Color getCurrentColor()
          getCurrentColor - Get the color associated with the current Material (setCurrentMaterial).
 Material getCurrentMaterial()
           
 double getTransparency()
          getTransparency - Get a number 0.0 to 1.0 to represent the transparency (1.0 is transparent, 0.0 is opaque)
 void setCurrentMaterial(Material mat)
          setCurrentMaterial - Sets the current material.
 void setTransparency(double tr)
          setTransparency - Set a number 0.0 to 1.0 to represent the transparency
 void specifyColorForMaterial(Material mat, java.awt.Color col)
          specifyColorForMaterial - Allows the user to specify a specific color for a specific material rather than permitting the default assignment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setCurrentMaterial

public void setCurrentMaterial(Material mat)
setCurrentMaterial - Sets the current material. The current material determines the current Color.

Parameters:
mat -

getCurrentMaterial

public Material getCurrentMaterial()

specifyColorForMaterial

public void specifyColorForMaterial(Material mat,
                                    java.awt.Color col)
specifyColorForMaterial - Allows the user to specify a specific color for a specific material rather than permitting the default assignment.

Parameters:
mat -
col -

getTransparency

public double getTransparency()
getTransparency - Get a number 0.0 to 1.0 to represent the transparency (1.0 is transparent, 0.0 is opaque)

Returns:
double

setTransparency

public void setTransparency(double tr)
setTransparency - Set a number 0.0 to 1.0 to represent the transparency

Parameters:
tr - 1.0 is transparent, 0.0 is opaque

getCurrentColor

public java.awt.Color getCurrentColor()
getCurrentColor - Get the color associated with the current Material (setCurrentMaterial).

Returns:
Color