A B C D E F G I K L M P R S T U V W

A

add(Bounds) - Method in class Bounds
Returns a bounding rectangle containing both this rectangle and the given rectangle.
addUserListener(UserListener) - Method in class User
Adds a listener to the user's movements.

B

Bounds - Class in <Unnamed>
Represents a immutable two-dimensional rectangle, normally used for representing the bounds of a planar object.

C

Canvas - Class in <Unnamed>
Manages the overall view shown to the user, including the first-person view (as computed using the View class), the overview map, and the raw position information.
Canvas(User) - Constructor for class Canvas
 
Cylinder - Class in <Unnamed>
Represents a vertical cylinder.
Cylinder(double, double, double, Texture) - Constructor for class Cylinder
 
componentHidden(ComponentEvent) - Method in class Canvas
 
componentMoved(ComponentEvent) - Method in class Canvas
 
componentResized(ComponentEvent) - Method in class Canvas
 
componentShown(ComponentEvent) - Method in class Canvas
 
contains(Bounds) - Method in class Bounds
Returns true if the given rectangle lies entirely within this rectangle, even if it shares a boundary with this rectangle.
create(double, double, double, double) - Static method in class Bounds
Returns a rectangle starting at the given x- and y-coordinates and extending for the given width and height.
create(double, double, double, double) - Static method in class Ray
Returns a ray with the given starting point and direction.

D

dot(Ray) - Method in class Ray
Returns the result of the dot product of this ray's direction with the parameter ray's direction.
draw(Graphics, double, double, double, double) - Method in class Cylinder
 
draw(Graphics, double, double, double, double) - Method in class LatWall
 
draw(Graphics, double, double, double, double) - Method in class LongWall
 
draw(Graphics, double, double, double, double) - Method in interface Surface
Draws an overhead view of this surface.

E

EMPTY_BOUNDS - Static variable in class Bounds
An object representing an empty bounding rectangle.

F

Frame - Class in <Unnamed>
The window containing the user's view as managed by the Canvas class.
Frame(World) - Constructor for class Frame
 
fill(int[], int, int, int, double) - Method in class TextureColumn
Copies this stripe into the given pixels array.
fillPixels(User, int[], int, int) - Static method in class View
Computes the user's first-person view.

G

getBounds() - Method in class Cylinder
 
getBounds() - Method in class LatWall
 
getBounds() - Method in class LongWall
 
getBounds() - Method in interface Surface
Returns a bounding box describing the range of x- and y-coordinates occupied by the surface.
getBounds() - Method in class World
Returns the bounding box including all surfaces in this world.
getClosestIntersection(Ray) - Method in class World
Returns information about the intersection of the given ray with the closest surface that it intersects, or null if there is no intersection.
getColumn(int) - Method in class Texture
Returns a column of this texture.
getDeltaX() - Method in class Ray
Returns the change in x for one unit along this ray's direction.
getDeltaY() - Method in class Ray
Returns the change in y for one unit along this ray's direction.
getDimension(Image) - Static method in class ImageUtil
Returns the width and height of the given image within a java.awt.Dimension object.
getDistance() - Method in class Intersection
Returns the ``distance'' along the viewing ray that the surface appears.
getDistanceFrom(Ray) - Method in class Cylinder
 
getDistanceFrom(Ray) - Method in class LatWall
 
getDistanceFrom(Ray) - Method in class LongWall
 
getDistanceFrom(Ray) - Method in interface Surface
Returns the ``distance'' at which the surface is located along the given ray, or Double.POSITIVE_INFINITY if in fact the ray doesn't intersect the surface at all.
getHeight() - Method in class Bounds
Returns the height of this rectangle.
getHeight() - Method in class Texture
Returns the height of this texture, in pixels.
getHeight() - Method in class TextureColumn
Returns the number of pixels this stripe contains.
getMeanColor() - Method in class Texture
Returns the average color for this texture.
getNormal(double, double) - Method in class Cylinder
 
getNormal(double, double) - Method in class LatWall
 
getNormal(double, double) - Method in class LongWall
 
getNormal(double, double) - Method in interface Surface
Returns the ray normal to the surface at the given coordinates.
getNormalRay() - Method in class Intersection
Returns the ray normal to the surface at this intersection point.
getReverse() - Method in class Ray
Returns a ray in the reverse direction of this one.
getSurface() - Method in class Intersection
Returns the surface at this intersection point.
getSurfaces() - Method in class World
Returns a collection including all the surfaces of this world.
getTextureColumn(double, double) - Method in class Cylinder
 
getTextureColumn(double, double) - Method in class LatWall
 
getTextureColumn(double, double) - Method in class LongWall
 
getTextureColumn(double, double) - Method in interface Surface
Returns the column of texture that appears on this surface at the given point.
getTheta() - Method in class User
Returns the angle of this user's current direction, measured in radians.
getUser() - Method in class UserEvent
 
getViewAngle() - Method in class User
Returns the angle that the user should be able to see vertically.
getViewRay(double) - Method in class User
Returns a ray emanating from the user's location through the window at fraction sx from center.
getWidth() - Method in class Bounds
Returns the width of this rectangle.
getWidth() - Method in class Texture
Returns the width of this texture, in pixels.
getWorld() - Method in class User
Returns the world in which this user is moving.
getX() - Method in class Bounds
Returns the least x-coordinate contained within this rectangle.
getX() - Method in class Ray
Returns the x-coordinate of this ray's starting point.
getX() - Method in class User
Returns the x-coordinate of this user's current position.
getY() - Method in class Bounds
Returns the least y-coordinate contained within this rectangle.
getY() - Method in class Ray
Returns the y-coordinate of this ray's starting point.
getY() - Method in class User
Returns the y-coordinate of this user's current position.

I

ImageUtil - Class in <Unnamed>
Contains utility methods for working with Image objects.
Intersection - Class in <Unnamed>
Holds information about where a ray intersects with a surface in the world.
Intersection(double, Surface, Ray) - Constructor for class Intersection
Constructs an Intersection object holding the given information.

K

keyPressed(KeyEvent) - Method in class UserController
 
keyReleased(KeyEvent) - Method in class UserController
 
keyTyped(KeyEvent) - Method in class UserController
 

L

LatWall - Class in <Unnamed>
Represents an wall running east-west (following a latitude on the earth's surface).
LatWall(double, double, double, Texture) - Constructor for class LatWall
 
LongWall - Class in <Unnamed>
Represents a wall running north-south (following a longitude on the earth's surface).
LongWall(double, double, double, Texture) - Constructor for class LongWall
 
load(String) - Static method in class Texture
Creates a texture for the given filename.

M

Main - Class in <Unnamed>
Contains the main method enabling the program to be run as an application.
main(String[]) - Static method in class Main
 

P

paintComponent(Graphics) - Method in class Canvas
 

R

Ray - Class in <Unnamed>
Represents an immutable ray with a starting point and a direction.
read(InputStream) - Static method in class World
Returns a newly created world based on the data found in the given stream.
read(Reader) - Static method in class World
Returns a newly created world based on the data found in the given input source.
removeUserListener(UserListener) - Method in class User
Removes a listener to the user's movements.
run() - Method in class Canvas
 
run() - Method in class UserController
 

S

Surface - Interface in <Unnamed>
Represents a single vertical surface in the world.
setVisible(boolean) - Method in class Frame
 

T

Texture - Class in <Unnamed>
Represents a surface texture.
TextureColumn - Class in <Unnamed>
Represents a vertical stripe of a texture.
toString() - Method in class Bounds
 
toString() - Method in class Cylinder
 
toString() - Method in class LatWall
 
toString() - Method in class LongWall
 
toString() - Method in class Ray
 
turnAndStep(double, double) - Method in class User
Turns the user and steps the user forward simulaneously.

U

User - Class in <Unnamed>
Represents the state of the moving user.
User(World) - Constructor for class User
Constructs a user in the given world, at coordinates (0,0) facing east (1,0).
User(User) - Constructor for class User
Constructs a user identical to the given user.
UserController - Class in <Unnamed>
Controls the user's movement.
UserController(User) - Constructor for class UserController
 
UserEvent - Class in <Unnamed>
Contains information to be sent to a UserListener abount a user movement.
UserEvent(User) - Constructor for class UserEvent
 
UserListener - Interface in <Unnamed>
An interface for objects that wish to be notified each time the user moves.
userMoved(UserEvent) - Method in class Canvas
 
userMoved(UserEvent) - Method in interface UserListener
 

V

View - Class in <Unnamed>
Holds the method for computing the user's first-person view.

W

World - Class in <Unnamed>
Represents the static objects in the world.
World(Collection) - Constructor for class World
Constructs a world containing the given surfaces.
windowActivated(WindowEvent) - Method in class Frame
 
windowClosed(WindowEvent) - Method in class Frame
 
windowClosing(WindowEvent) - Method in class Frame
 
windowDeactivated(WindowEvent) - Method in class Frame
 
windowDeiconified(WindowEvent) - Method in class Frame
 
windowIconified(WindowEvent) - Method in class Frame
 
windowOpened(WindowEvent) - Method in class Frame
 

A B C D E F G I K L M P R S T U V W