Skip navigation links
A B C D F G I K L M P R S T V W X Y Z 

A

actionPerformed(ActionEvent) - Method in class framebuffer.InteractiveFrame
 
addLineSegment(LineSegment...) - Method in class scene.Model
Add a LineSegment (or LineSegments) to this model's list of line segments.
addModel(Model...) - Method in class scene.Scene
Add a model (or models) to this scene.
adjustmentValueChanged(AdjustmentEvent) - Method in class framebuffer.InteractiveFrame
 

B

b - Variable in class scene.Vertex
 

C

Camera - Class in scene
This Camera data structure represents a camera located at the origin and looking down the negative z-axis.
Camera() - Constructor for class scene.Camera
The default camera uses perspective projection.
camera - Variable in class scene.Scene
 
clearFB(Color) - Method in class framebuffer.FrameBuffer
Clear the framebuffer (set a background color).
clearVP(Color) - Method in class framebuffer.FrameBuffer
Clear the viewport (set a background color).
Clip - Class in pipeline
Clip any (projected) line segment that sticks out of the view rectangle in the view plane.
Clip() - Constructor for class pipeline.Clip
 
clip(LineSegment) - Static method in class pipeline.Clip
If the line segment sticks out of the view rectangle, then clip it so that it is contained in the view rectangle.
componentHidden(ComponentEvent) - Method in class framebuffer.InteractiveFrame
 
componentMoved(ComponentEvent) - Method in class framebuffer.InteractiveFrame
 
componentResized(ComponentEvent) - Method in class framebuffer.InteractiveFrame
 
componentShown(ComponentEvent) - Method in class framebuffer.InteractiveFrame
 
convertBlue2FB() - Method in class framebuffer.FrameBuffer
Convert the blue plane of the framebuffer into a framebuffer.
convertGreen2FB() - Method in class framebuffer.FrameBuffer
Convert the green plane of the framebuffer into a framebuffer.
convertRed2FB() - Method in class framebuffer.FrameBuffer
Convert the red plane of the framebuffer into a framebuffer.
convertVP2FB() - Method in class framebuffer.FrameBuffer
Convert the viewport into a framebuffer.
createFrameBuffer(int, int) - Method in class framebuffer.InteractiveFrame
Change the FrameBuffer being used as the source for the Image painted on this JFrame's JPanel.

D

debug - Static variable in class pipeline.Pipeline
 
debug - Static variable in class pipeline.Rasterize
 
debug_visible - Static variable in class pipeline.Pipeline
 
dumpFB2File(String) - Method in class framebuffer.FrameBuffer
Write the framebuffer to the specified file.
dumpPixels2File(int, int, int, int, String) - Method in class framebuffer.FrameBuffer
Write a rectangular sub array of pixels from the framebuffer to the specified file.
dumpVP2File(String) - Method in class framebuffer.FrameBuffer
Write the viewport to the specified file.

F

fbTest() - Method in class framebuffer.FrameBuffer
A simple test of the framebuffer.
focusGained(FocusEvent) - Method in class framebuffer.InteractiveFrame
 
focusLost(FocusEvent) - Method in class framebuffer.InteractiveFrame
 
framebuffer - package framebuffer
 
FrameBuffer - Class in framebuffer
This FrameBuffer represents a two-dimensional array of pixel data.
FrameBuffer(int, int) - Constructor for class framebuffer.FrameBuffer
Construct a FrameBuffer with the given dimensions.
FrameBuffer(String) - Constructor for class framebuffer.FrameBuffer
Construct a FrameBuffer from a PPM image file.

G

g - Variable in class scene.Vertex
 
getBgColorFB() - Method in class framebuffer.FrameBuffer
Get the background color of the framebuffer.
getBgColorVP() - Method in class framebuffer.FrameBuffer
Get the background color of the viewport.
getColor() - Method in class scene.Vertex
Get the color of this vertex.
getFrameBuffer() - Method in class framebuffer.InteractiveFrame
 
getHeightFB() - Method in class framebuffer.FrameBuffer
Get the height of the framebuffer.
getHeightVP() - Method in class framebuffer.FrameBuffer
Get the height of the viewport.
getLocationVP() - Method in class framebuffer.FrameBuffer
Get the upper left hand corner of the viewport.
getPixelFB(int, int) - Method in class framebuffer.FrameBuffer
Get the color of the pixel with coordinates (x,y) in the framebuffer.
getPixelVP(int, int) - Method in class framebuffer.FrameBuffer
Get the color of the pixel with coordinates (x,y) relative to the current viewport.
getWidthFB() - Method in class framebuffer.FrameBuffer
Get the width of the framebuffer.
getWidthVP() - Method in class framebuffer.FrameBuffer
Get the width of the viewport.

I

InteractiveFrame - Class in framebuffer
This class allows our renderer to be interactive.
InteractiveFrame(String, int, int) - Constructor for class framebuffer.InteractiveFrame
 
itemStateChanged(ItemEvent) - Method in class framebuffer.InteractiveFrame
 

K

keyPressed(KeyEvent) - Method in class framebuffer.InteractiveFrame
 
keyReleased(KeyEvent) - Method in class framebuffer.InteractiveFrame
 
keyTyped(KeyEvent) - Method in class framebuffer.InteractiveFrame
 

L

LineSegment - Class in scene
A LineSegment object has two Vertex objects that represent the endpoints of the line segment.
LineSegment(Vertex, Vertex) - Constructor for class scene.LineSegment
Create a LineSegment object with references to the two given Vertex objects.
LineSegment(LineSegment) - Constructor for class scene.LineSegment
Create a LineSegment object with references to the two Vertex objects in the given LineSegment object.
lineSegmentList - Variable in class scene.Model
 

M

main(String[]) - Static method in class framebuffer.FrameBuffer
A main() method for testing the FrameBuffer class.
Model - Class in scene
A Model data structure represents a distinct geometric object in a Scene.
Model() - Constructor for class scene.Model
Construct an empty model.
modelList - Variable in class scene.Scene
 
mouseClicked(MouseEvent) - Method in class framebuffer.InteractiveFrame
 
mouseDragged(MouseEvent) - Method in class framebuffer.InteractiveFrame
 
mouseEntered(MouseEvent) - Method in class framebuffer.InteractiveFrame
 
mouseExited(MouseEvent) - Method in class framebuffer.InteractiveFrame
 
mouseMoved(MouseEvent) - Method in class framebuffer.InteractiveFrame
 
mousePressed(MouseEvent) - Method in class framebuffer.InteractiveFrame
 
mouseReleased(MouseEvent) - Method in class framebuffer.InteractiveFrame
 

P

perspective - Variable in class scene.Camera
 
pipeline - package pipeline
 
Pipeline - Class in pipeline
This renderer takes as its input a Scene data structure and a FrameBuffer data structure.
Pipeline() - Constructor for class pipeline.Pipeline
 
pixel_buffer - Variable in class framebuffer.FrameBuffer
 
Project - Class in pipeline
Project line segments from camera coordinates to the view plane.
Project() - Constructor for class pipeline.Project
 
project(LineSegment, Camera) - Static method in class pipeline.Project
For each line segment in the model, project each vertex to the view plane z = -1.

R

r - Variable in class scene.Vertex
 
Rasterize - Class in pipeline
Rasterize each line segment into pixels in the framebuffer.
Rasterize() - Constructor for class pipeline.Rasterize
 
rasterize(LineSegment, FrameBuffer) - Static method in class pipeline.Rasterize
Rasterize each line segment into pixels in the framebuffer.
render(Scene, FrameBuffer) - Static method in class pipeline.Pipeline
Mutate the FrameBuffer's current viewport so that it holds the rendered image of the Scene object.

S

scene - package scene
 
Scene - Class in scene
A Scene data structure is a list of Model data structures and a Camera data structure.
Scene() - Constructor for class scene.Scene
Construct a scene with a default camera object.
Scene(Camera) - Constructor for class scene.Scene
Construct a scene with the given camera object.
set(double, double, double) - Method in class scene.Vertex
Set the coordinates of this vertex.
setCamera(Camera) - Method in class scene.Scene
Change this scene's camera to the given camera object.
setColor(Color) - Method in class scene.LineSegment
Give this LineSegment a uniform color.
setColor(Color) - Method in class scene.Model
Set all the line segments in this model to the same color.
setColor(double, double, double) - Method in class scene.Vertex
Set the color of this vertex using doubles between 0 and 1.
setColor(int, int, int) - Method in class scene.Vertex
Set the color of this vertex using ints between 0 and 255.
setColor(Color) - Method in class scene.Vertex
Set the color of this vertex using a Color object.
setColor(Vertex) - Method in class scene.Vertex
Set the color of this vertex using the colors from another vertex.
setColorRandom() - Method in class scene.LineSegment
Give this LineSegment a uniform, but randomly chosen, color.
setColorRandom() - Method in class scene.Model
Set all the line segments in this model to the same random color.
setColorRandom() - Method in class scene.Vertex
Set the color of this vertex to a random color.
setPixelFB(int, int, Color) - Method in class framebuffer.FrameBuffer
Set the color of the pixel with coordinates (x,y) in the framebuffer.
setPixelVP(int, int, Color) - Method in class framebuffer.FrameBuffer
Set the color of the pixel with coordinates (x,y) relative to the current viewport.
setRandomColors() - Method in class scene.Model
Set all the line segments in this model to random colors.
setViewport(int, int, int, int) - Method in class framebuffer.FrameBuffer
Set the coordinates, within the FrameBuffer, of the viewport's upper-left-hand corner, width, and height.
setViewport(int, int, FrameBuffer) - Method in class framebuffer.FrameBuffer
Create a Viewport from a FrameBuffer.
setViewport(int, int, String) - Method in class framebuffer.FrameBuffer
Create a Viewport from a PPM image file.

T

textValueChanged(TextEvent) - Method in class framebuffer.InteractiveFrame
 
toString() - Method in class scene.Camera
For debugging.
toString() - Method in class scene.LineSegment
For debugging.
toString() - Method in class scene.Model
For debugging.
toString() - Method in class scene.Scene
For debugging.
toString() - Method in class scene.Vertex
For debugging.

V

v - Variable in class scene.LineSegment
 
Vertex - Class in scene
A Vertex object has three doubles which represent the coordinates of a point in 3-dimensional space.
Vertex() - Constructor for class scene.Vertex
Construct a default vertex.
Vertex(double, double, double) - Constructor for class scene.Vertex
Construct a new vertex using the given x, y, and z coordinates.
Vertex(double, double, double, Color) - Constructor for class scene.Vertex
Construct a new vertex with the given coordinates and the given color.
Vertex(Vertex) - Constructor for class scene.Vertex
Construct a new vertex that is a copy of another vertex.
Viewport - Class in pipeline
Transform each line segment's endpoints from viewplane coordinates to viewport coordinates so that the view rectangle in the view plane with -1 <= x <= 1, -1 <= y <= 1, transforms into a viewport where 0.5 <= x < w + 0.5 0.5 <= y < h + 0.5 where w = number of horizontal pixels in the viewport, h = number of vertical pixels in the viewport.
Viewport() - Constructor for class pipeline.Viewport
 
viewport(LineSegment, FrameBuffer) - Static method in class pipeline.Viewport
Transform the line segment's endpoints from viewplane coordinates to viewport coordinates.
vpTest() - Method in class framebuffer.FrameBuffer
A simple test of the viewport.

W

windowActivated(WindowEvent) - Method in class framebuffer.InteractiveFrame
 
windowClosed(WindowEvent) - Method in class framebuffer.InteractiveFrame
 
windowClosing(WindowEvent) - Method in class framebuffer.InteractiveFrame
 
windowDeactivated(WindowEvent) - Method in class framebuffer.InteractiveFrame
 
windowDeiconified(WindowEvent) - Method in class framebuffer.InteractiveFrame
 
windowIconified(WindowEvent) - Method in class framebuffer.InteractiveFrame
 
windowOpened(WindowEvent) - Method in class framebuffer.InteractiveFrame
 

X

x - Variable in class scene.Vertex
 

Y

y - Variable in class scene.Vertex
 

Z

z - Variable in class scene.Vertex
 
A B C D F G I K L M P R S T V W X Y Z 
Skip navigation links