apps.lightrays.raytracer.scene
Class OpticalProperties

java.lang.Object
  extended by apps.lightrays.raytracer.scene.OpticalProperties

public class OpticalProperties
extends java.lang.Object

The Class OpticalProperties.


Field Summary
 Colour colour
          The colour.
 double diffusion
          The diffusion.
 boolean luminous
          The luminous.
 double reflectiveness
          The reflectiveness.
 double refractiveness
          The refractiveness.
 double transparency
          The transparency.
 
Constructor Summary
OpticalProperties()
          Instantiates a new optical properties.
OpticalProperties(Colour c, double refra, double transp, double refle, double diffu, boolean lumin)
          Instantiates a new optical properties.
 
Method Summary
 void set(Colour c, double refra, double transp, double refle, double diffu, boolean lumin)
          Sets the.
 void setColour(Colour c)
          Sets the colour.
 void setValues(double refra, double transp, double refle, double diffu, boolean lumin)
          Sets the values.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

colour

public Colour colour
The colour.


diffusion

public double diffusion
The diffusion.


luminous

public boolean luminous
The luminous.


reflectiveness

public double reflectiveness
The reflectiveness.


refractiveness

public double refractiveness
The refractiveness.


transparency

public double transparency
The transparency.

Constructor Detail

OpticalProperties

public OpticalProperties()
Instantiates a new optical properties.


OpticalProperties

public OpticalProperties(Colour c,
                         double refra,
                         double transp,
                         double refle,
                         double diffu,
                         boolean lumin)
Instantiates a new optical properties.

Parameters:
c - the c
refra - the refra
transp - the transp
refle - the refle
diffu - the diffu
lumin - the lumin
Method Detail

set

public void set(Colour c,
                double refra,
                double transp,
                double refle,
                double diffu,
                boolean lumin)
Sets the.

Parameters:
c - the c
refra - the refra
transp - the transp
refle - the refle
diffu - the diffu
lumin - the lumin

setColour

public void setColour(Colour c)
Sets the colour.

Parameters:
c - the new colour

setValues

public void setValues(double refra,
                      double transp,
                      double refle,
                      double diffu,
                      boolean lumin)
Sets the values.

Parameters:
refra - the refra
transp - the transp
refle - the refle
diffu - the diffu
lumin - the lumin

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object