Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
H
I
L
M
N
O
P
R
S
T
V
W
X
Y
Z
A
add(Vec3)
- Method in class tracer.
Vec3
Vector addition.
ambient
- Variable in class tracer.
Material
B
bottom
- Variable in class tracer.
Camera
C
Camera
- class tracer.
Camera
.
Represents the camera: viewing window = [left,bottom] x [right,top], with z-coordinate
near
Camera()
- Constructor for class tracer.
Camera
camera
- Static variable in class tracer.
Tracer
color
- Variable in class tracer.
Light
color
- Variable in class tracer.
Material
cross(Vec3)
- Method in class tracer.
Vec3
Vector cross-product.
D
diffuse
- Variable in class tracer.
Material
direction
- Variable in class tracer.
Ray
distance
- Variable in class tracer.
IntersectionInfo
dot(Vec3)
- Method in class tracer.
Vec3
Vector dot-product.
E
endOfFile()
- Method in class tracer.
Parser
errorString()
- Method in class tracer.
Parser
H
height
- Static variable in class tracer.
Tracer
hit
- Variable in class tracer.
IntersectionInfo
hit(Ray)
- Method in class tracer.
Plane
hit(Traceable)
- Method in class tracer.
Ray
Checks if the ray (origin + t*direction) hits the scene with 0 <= t <= 1.
hit(Ray)
- Method in class tracer.
Sphere
hit(Ray)
- Method in class tracer.
Traceable
Returns a boolean indicating whether the line segment (r.origin + t*r.direction) with 0 <= t <= 1 intersects the object.
I
IntersectionInfo
- class tracer.
IntersectionInfo
.
Used for returning information about intersections from Traceable.intersect.
IntersectionInfo(boolean)
- Constructor for class tracer.
IntersectionInfo
Constructor indicating there is no intersection.
IntersectionInfo(Vec3, Vec3, float, Traceable)
- Constructor for class tracer.
IntersectionInfo
Constructor indicating there was an intersection.
intensity
- Variable in class tracer.
Light
intersect(Ray)
- Method in class tracer.
Plane
intersect(Ray)
- Method in class tracer.
Sphere
intersect(Ray)
- Method in class tracer.
Traceable
Returns an IntersectionInfo object indicating whether the ray r intersects this object or not.
invGamma
- Variable in class tracer.
ToneMapper
L
Light
- class tracer.
Light
.
Represents a point-light
Light()
- Constructor for class tracer.
Light
left
- Variable in class tracer.
Camera
length()
- Method in class tracer.
Vec3
Returns the length of this vector.
lengthSquared()
- Method in class tracer.
Vec3
Return the square of the length of this vector.
lights
- Static variable in class tracer.
Tracer
loadScene()
- Method in class tracer.
Tracer
Loads and parses the file "scene.txt".
localLight(IntersectionInfo, Light)
- Method in class tracer.
Ray
Calculates the local light term, given an IntersectionInfo and a Light.
location
- Variable in class tracer.
IntersectionInfo
location
- Variable in class tracer.
Light
M
Material
- class tracer.
Material
.
Holds shading parameters.
Material()
- Constructor for class tracer.
Material
main(String[])
- Static method in class tracer.
Tracer
map(float, float, float)
- Method in class tracer.
ToneMapper
minus(Vec3)
- Method in class tracer.
Vec3
Vector subtraction.
N
near
- Variable in class tracer.
Camera
normal
- Variable in class tracer.
IntersectionInfo
normalize()
- Method in class tracer.
Vec3
Normalizes this vector.
O
object
- Variable in class tracer.
IntersectionInfo
origin
- Variable in class tracer.
Camera
origin
- Variable in class tracer.
Ray
P
Parser
- class tracer.
Parser
.
This class knows how to read scene files
Parser(String)
- Constructor for class tracer.
Parser
Plane
- class tracer.
Plane
.
3D flat, onbounded, traceable thingy, represented by normal vector and distance from the origin
Plane(Vec3, float)
- Constructor for class tracer.
Plane
Plane()
- Constructor for class tracer.
Plane
paint(Graphics)
- Method in class tracer.
Tracer
Redraws the offscreenImage onto the screen.
parse(Parser)
- Method in class tracer.
Camera
parse(Parser)
- Method in class tracer.
Light
parse(Parser)
- Method in class tracer.
Material
parse(Parser)
- Method in class tracer.
Plane
parse(Parser)
- Method in class tracer.
Sphere
parse(Parser)
- Method in class tracer.
Vec3
Reads a vector in the form "<number, number, number>" from the Parser p.
parseFloat()
- Method in class tracer.
Parser
parseKeyword(String)
- Method in class tracer.
Parser
R
Ray
- class tracer.
Ray
.
Represents a ray: a ray can `trace' itself, calculating a color.
Ray(Vec3, Vec3)
- Constructor for class tracer.
Ray
random(float)
- Static method in class tracer.
Vec3
Returns a Vec3 of specified length with a random direction.
reflectance
- Variable in class tracer.
Material
render()
- Method in class tracer.
Tracer
The actual raytracing starts here.
right
- Variable in class tracer.
Camera
S
Sphere
- class tracer.
Sphere
.
A 3D roundish traceable thingy with a center and a radius
Sphere(Vec3, float)
- Constructor for class tracer.
Sphere
Sphere()
- Constructor for class tracer.
Sphere
scene
- Static variable in class tracer.
Tracer
specular
- Variable in class tracer.
Material
specularPower
- Variable in class tracer.
Material
T
ToneMapper
- class tracer.
ToneMapper
.
Used for mapping floating point representations of colors into packed-int colors as used by Java.
ToneMapper(float)
- Constructor for class tracer.
ToneMapper
Traceable
- class tracer.
Traceable
.
Base class for all visible objects.
Traceable()
- Constructor for class tracer.
Traceable
Tracer
- class tracer.
Tracer
.
The main class.
Tracer()
- Constructor for class tracer.
Tracer
times(float)
- Method in class tracer.
Vec3
Multiplication by a scalar.
times(Vec3)
- Method in class tracer.
Vec3
Component-wise multiply
toString()
- Method in class tracer.
Vec3
Returns a string representation of this vector, of the form "<number, number, number>" as can be parsed by the parse(Parser) method.
tokenWasUnexpected()
- Method in class tracer.
Parser
top
- Variable in class tracer.
Camera
trace(Traceable, int)
- Method in class tracer.
Ray
Does the actual `raytracing'.
tracePixel(int, int)
- Method in class tracer.
Tracer
Given (x,y) coordinates of the pixel to be traced, constructs the primary ray, raytraces it (by calling Ray.trace) and returns the result (the color for the pixel).
tracer
- package tracer
tryKeyword(String)
- Method in class tracer.
Parser
V
Vec3
- class tracer.
Vec3
.
Represents a 3-dimensional vector.
Vec3(Vec3)
- Constructor for class tracer.
Vec3
Copy constructor
Vec3(float, float, float)
- Constructor for class tracer.
Vec3
Constructor from floats.
Vec3()
- Constructor for class tracer.
Vec3
Default constructor.
W
width
- Static variable in class tracer.
Tracer
X
x
- Variable in class tracer.
Vec3
Y
y
- Variable in class tracer.
Vec3
Z
z
- Variable in class tracer.
Vec3
A
B
C
D
E
H
I
L
M
N
O
P
R
S
T
V
W
X
Y
Z
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes