apps.lightrays.raytracer.scene
Class SceneObject

java.lang.Object
  extended by apps.lightrays.raytracer.scene.SceneObject
Direct Known Subclasses:
Plane, Sphere

public abstract class SceneObject
extends java.lang.Object

The Class SceneObject.


Constructor Summary
SceneObject()
          Instantiates a new scene object.
 
Method Summary
abstract  Shader createShader(Ray r)
          Creates the shader.
abstract  Vector getNormal(Point intersect)
          Gets the normal.
 OpticalProperties getOpticProperties()
          Gets the optic properties.
abstract  RayHitInfo intersect(Ray r)
          Intersect.
 void setOpticProperties(OpticalProperties optic_properties)
          Sets the optic properties.
 void setScene(Scene scene)
          Sets the scene.
abstract  java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SceneObject

public SceneObject()
Instantiates a new scene object.

Method Detail

createShader

public abstract Shader createShader(Ray r)
Creates the shader.

Parameters:
r - the r
Returns:
the shader

getNormal

public abstract Vector getNormal(Point intersect)
Gets the normal.

Parameters:
intersect - the intersect
Returns:
the normal

getOpticProperties

public OpticalProperties getOpticProperties()
Gets the optic properties.

Returns:
the optic properties

intersect

public abstract RayHitInfo intersect(Ray r)
Intersect.

Parameters:
r - the r
Returns:
the ray hit info

setOpticProperties

public void setOpticProperties(OpticalProperties optic_properties)
Sets the optic properties.

Parameters:
optic_properties - the new optic properties

setScene

public void setScene(Scene scene)
Sets the scene.

Parameters:
scene - the new scene

toString

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