Class Air

java.lang.Object
  extended by Air
All Implemented Interfaces:
Persistent

public class Air
extends java.lang.Object
implements Persistent

A class representing the medium through which a traced ray travels when not inside an object.


Constructor Summary
Air()
          Constructs an Air object with electric permittivity of 1.0, magnetic permeability of 1.0, and attenuation (1.0, 1.0, 1.0).
 
Method Summary
 java.lang.Object clone()
           
 javax.vecmath.Color3f getAttenuation()
          Returns the attenuation of the medium.
 double getElectricPermittivity()
          Returns the electric permittivity of the medium.
 double getMagneticPermeability()
          Returns the magnetic permeability of the medium.
 void load(DataParser dataParser)
          Loads data using the DataParser object.
 void setAttenuation(javax.vecmath.Color3f attenuation)
          Sets the attentuation of the medium.
 void setElectricPermittivity(double electricPermittivity)
          Sets the electric permittivity of the medium.
 void setMagneticPermeability(double magneticPermeability)
          Sets the magnetic permeability of the medium.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Air

public Air()
Constructs an Air object with electric permittivity of 1.0, magnetic permeability of 1.0, and attenuation (1.0, 1.0, 1.0).

Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

load

public void load(DataParser dataParser)
Description copied from interface: Persistent
Loads data using the DataParser object.

A class overrides this function to load data that has been parsed.

Specified by:
load in interface Persistent
Parameters:
dataParser - The DataParser to load data from.

setElectricPermittivity

public void setElectricPermittivity(double electricPermittivity)
Sets the electric permittivity of the medium.

Parameters:
electricPermittivity - The electric permittivity to set.

getElectricPermittivity

public double getElectricPermittivity()
Returns the electric permittivity of the medium.

Returns:
The electric permittivity.

setMagneticPermeability

public void setMagneticPermeability(double magneticPermeability)
Sets the magnetic permeability of the medium.

Parameters:
magneticPermeability - The magnetic permeability to set.

getMagneticPermeability

public double getMagneticPermeability()
Returns the magnetic permeability of the medium.

Returns:
The magnetic permeability.

setAttenuation

public void setAttenuation(javax.vecmath.Color3f attenuation)
Sets the attentuation of the medium.

Parameters:
attenuation - The attenuation to set.

getAttenuation

public javax.vecmath.Color3f getAttenuation()
Returns the attenuation of the medium.

Returns:
The attenuation.