apps.lightrays.raytracer.shaders
Class Shader

java.lang.Object
  extended by apps.lightrays.raytracer.shaders.Shader
Direct Known Subclasses:
PhongShader

public abstract class Shader
extends java.lang.Object

The Class Shader.


Constructor Summary
Shader(Scene scene, Ray incident_ray, SceneObject obj)
          Instantiates a new shader.
 
Method Summary
abstract  void getColour(Colour c)
          Gets the colour.
 int getDepth()
          Gets the depth.
 Ray getIncident_ray()
          Gets the incident_ray.
 OpticalProperties getOptical_properties()
          Gets the optical_properties.
 void setDepth(int depth)
          Sets the depth.
 void setIncident_ray(Ray incident_ray)
          Sets the incident_ray.
 void setOptical_properties(OpticalProperties optical_properties)
          Sets the optical_properties.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Shader

public Shader(Scene scene,
              Ray incident_ray,
              SceneObject obj)
Instantiates a new shader.

Parameters:
scene - the scene
incident_ray - the incident_ray
obj - the obj
Method Detail

getColour

public abstract void getColour(Colour c)
Gets the colour.

Parameters:
c - the c

getDepth

public int getDepth()
Gets the depth.

Returns:
the depth

getIncident_ray

public Ray getIncident_ray()
Gets the incident_ray.

Returns:
the incident_ray

getOptical_properties

public OpticalProperties getOptical_properties()
Gets the optical_properties.

Returns:
the optical_properties

setDepth

public void setDepth(int depth)
Sets the depth.

Parameters:
depth - the new depth

setIncident_ray

public void setIncident_ray(Ray incident_ray)
Sets the incident_ray.

Parameters:
incident_ray - the new incident_ray

setOptical_properties

public void setOptical_properties(OpticalProperties optical_properties)
Sets the optical_properties.

Parameters:
optical_properties - the new optical_properties