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

A

addRandomColors(Mesh) - Static method in class m3g04.mesh.MeshUtils
Assigns a random color to each vertex of a mesh.
animationController - Variable in class m3g11.AnimationSample
Controls animation speed.
AnimationSample - Class in m3g11
Simple animation with different interpolation modes.
AnimationSample() - Constructor for class m3g11.AnimationSample
Constructor.

B

backCommand - Variable in class m3g11.Main
Back command.
Bezier - Class in m3g04.mesh
Calculations for Bezier surfaces.
Bezier(int, boolean) - Constructor for class m3g04.mesh.Bezier
Initializes class.

C

checkKeys(int) - Method in class m3g11.AnimationSample
Processes key presses.
checkKeys(int) - Method in class m3g11.TextureAnimationSample
Processes key presses.
commandAction(Command, Displayable) - Method in class m3g11.Main
Receives command actions from the selection screen as well as the samples.
CONTROL_POINTS - Static variable in class m3g04.mesh.Teapot
The actual control points of the teapot.
controller - Variable in class m3g11.UvAnimation
Controller for animation.
copyTexCoords(Mesh, int, int) - Static method in class m3g04.mesh.MeshUtils
Duplicates texture coordinates from one unit to another.
create(int, boolean, boolean) - Static method in class m3g04.mesh.Teapot
Creates a new teapot with the given subdivisions in s and t direction.
createAnimation(Mesh, int, AnimationController) - Method in class m3g11.AnimationSample
Animates the translation component of the given mesh.
createAnimation(Mesh, Image2D, KeyframeSequence, float, float) - Static method in class m3g11.UvAnimation
Creates a UV animation based on the given parameters.
createConveyorBeltAnimation(Mesh, Image2D, int, float) - Static method in class m3g11.UvAnimation
Creates an animation where an image is scrolled horizontally as if it were attached to a conveyor belt.
createCube(boolean, boolean, boolean) - Static method in class m3g04.mesh.MeshFactory3D
Creates a cube with three separate vertices for each corner.
createCylinder(int, boolean, boolean) - Static method in class m3g04.mesh.MeshFactory3D
Creates a cylinder with a radius of one unit and a height of two units.
createDisc(int) - Static method in class m3g04.mesh.MeshFactory2D
Creates a disc with radius one on the x-y plane.
createFlipBookAnimation(Mesh, Image2D, int, int, int) - Static method in class m3g11.UvAnimation
Creates an animation where frames inside an image are displayed successively like in a flip-book animation.
createMinimalCube() - Static method in class m3g04.mesh.MeshFactory3D
Creates a cube with one vertex per corner.
createNormals(short[], short[], short[], int) - Method in class m3g04.mesh.Bezier
Calculates normals.
createPositions(short[], short[], short[], int) - Method in class m3g04.mesh.Bezier
Calculates the vertex positions of a cubic Bezier surface (16 control points).
createQuad(boolean) - Static method in class m3g04.mesh.MeshFactory2D
Creates a quad with a side length of two units on the x-y plane.
createSphere(int, int, boolean, boolean) - Static method in class m3g04.mesh.MeshFactory3D
Creates a sphere that's subdivided with the given number of slices and stacks.
createTexCoords(byte[], int, boolean) - Method in class m3g04.mesh.Bezier
Calculates texture coordinates.
createTriangle() - Static method in class m3g04.mesh.MeshFactory2D
Creates a triangle on the x-y plane.
createTriStrips(int, int[], int[], int, boolean) - Method in class m3g04.mesh.Bezier
Calculates triangle strips for the evaluated Bezier surface.
cross(short[], int, short[], int, short[], int) - Static method in class m3g04.mesh.Bezier
Builds the cross product of two vectors.
currentMode - Variable in class m3g11.AnimationSample
Current interpolation mode.
currentSample - Variable in class m3g11.Main
Currently displayed sample.

D

destroy() - Method in class m3g11.AnimationSample
Destroys the sample.
destroy() - Method in interface m3g11.Sample
Tells the sample to destroy itself.
destroy() - Method in class m3g11.TextureAnimationSample
Destroys the sample.
destroyApp(boolean) - Method in class m3g11.Main
Enters the destroyed state.
diffsS - Variable in class m3g04.mesh.Bezier
Buffers for storing intermediate data.
diffsT - Variable in class m3g04.mesh.Bezier
Buffers for storing intermediate data.
drawMenu(Graphics) - Method in class m3g11.AnimationSample
Draws a menu for the current key assignments.
drawMenu(Graphics) - Method in class m3g11.TextureAnimationSample
Draws a menu for the current key assignments.
duration - Variable in class m3g11.UvAnimation
Duration of animation.

E

evaluateCubicCurve(short[], int, int, int, int, short[], int, int, float, float, float) - Static method in class m3g04.mesh.Bezier
Evaluates a cubic Bezier curve (four control points).
evaluateQuadraticCurve(short[], int, int, int, short[], int, int, float, float) - Static method in class m3g04.mesh.Bezier
Evaluates a quadratic Bezier curve (three control points).
exitCommand - Variable in class m3g11.Main
Exit command.

G

graphics - Variable in class m3g11.AnimationSample
2D graphics singleton used for rendering.
graphics - Variable in class m3g11.TextureAnimationSample
2D graphics singleton used for rendering.
graphics3d - Variable in class m3g11.AnimationSample
3D graphics singleton used for rendering.
graphics3d - Variable in class m3g11.TextureAnimationSample
3D graphics singleton used for rendering.

I

init() - Method in class m3g11.AnimationSample
Initializes the sample.
init() - Method in interface m3g11.Sample
Tells the sample to initialize itself.
init() - Method in class m3g11.TextureAnimationSample
Initializes the sample.
intermediatePointsS - Variable in class m3g04.mesh.Bezier
Buffers for storing intermediate data.
intermediatePointsT - Variable in class m3g04.mesh.Bezier
Buffers for storing intermediate data.
INTERPOLATION_LINEAR - Static variable in class m3g11.AnimationSample
Linear interpolation of keyframe values.
INTERPOLATION_SPLINE - Static variable in class m3g11.AnimationSample
Spline interpolation of keyframe values.
INTERPOLATION_STEP - Static variable in class m3g11.AnimationSample
Steps through keyframe values.
isRunning - Variable in class m3g11.AnimationSample
Flag whether thread is running.
isRunning - Variable in class m3g11.TextureAnimationSample
Flag whether thread is running.
isWindowOpen - Variable in class m3g11.TextureAnimationSample
State of window.

K

keyPressed(int) - Method in class m3g11.AnimationSample
Receives key presses.
keyPressed(int) - Method in class m3g11.TextureAnimationSample
Receives key presses.

L

lastKey - Variable in class m3g11.AnimationSample
Stores the last game action key.
lastKey - Variable in class m3g11.TextureAnimationSample
Stores the last game action key.

M

m3g04.mesh - package m3g04.mesh
 
m3g11 - package m3g11
 
Main - Class in m3g11
Application that runs the samples available in this chapter.
Main() - Constructor for class m3g11.Main
Constructor.
mesh - Variable in class m3g11.AnimationSample
Mesh for display.
MeshFactory2D - Class in m3g04.mesh
Factory methods for 2D meshes.
MeshFactory2D() - Constructor for class m3g04.mesh.MeshFactory2D
Constructor has private access because class contains static methods exclusively.
MeshFactory3D - Class in m3g04.mesh
Factory methods for 3D meshes.
MeshFactory3D() - Constructor for class m3g04.mesh.MeshFactory3D
Constructor has private access because class contains static methods exclusively.
meshTransform - Variable in class m3g11.AnimationSample
The mesh's transformation.
MeshUtils - Class in m3g04.mesh
Utility methods for meshes.
MeshUtils() - Constructor for class m3g04.mesh.MeshUtils
Constructor has private access because class contains static methods exclusively.

N

NUMBER_OF_INTERPOLATIONS - Static variable in class m3g11.AnimationSample
Number of interpolation modes.
NUMBER_OF_PATCHES - Static variable in class m3g04.mesh.Teapot
Number of patches, including reflected ones.
numVertices - Variable in class m3g04.mesh.Bezier
Number of vertices per curve.

P

PATCH_DATA - Static variable in class m3g04.mesh.Teapot
Defines the Bezier patches for the teapot.
pauseApp() - Method in class m3g11.Main
Enters the paused state.
playBackward(int) - Method in class m3g11.UvAnimation
Plays the animation in backward direction.
playForward(int) - Method in class m3g11.UvAnimation
Plays the animation in forward direction.

R

reflect(short[], int, int, int, int) - Static method in class m3g04.mesh.Bezier
Reflects an array of vectors around the given axis.
REFLECT_DATA - Static variable in class m3g04.mesh.Teapot
Specifies on what axis a patch needs to be reflected.
REFLECT_X - Static variable in class m3g04.mesh.Bezier
Reflection on the x axis.
REFLECT_Y - Static variable in class m3g04.mesh.Bezier
Reflection on the y axis.
REFLECT_Z - Static variable in class m3g04.mesh.Bezier
Reflection on the z axis.
render(Graphics) - Method in class m3g11.AnimationSample
Renders the sample.
render(Graphics) - Method in class m3g11.TextureAnimationSample
Renders the sample on the screen.
reset() - Method in class m3g11.AnimationSample
Initializes the sample.
reset() - Method in class m3g11.TextureAnimationSample
Initializes the sample.
run() - Method in class m3g11.AnimationSample
Animation loop.
run() - Method in class m3g11.TextureAnimationSample
Animation loop.

S

Sample - Interface in m3g11
Interface that needs to be implemented by samples.
SAMPLES - Static variable in class m3g11.Main
List of samples.
SCALE - Static variable in class m3g04.mesh.Teapot
The scale of the vertices in CONTROL_POINTS.
selectionScreen - Variable in class m3g11.Main
Screen for selecting samples.
startApp() - Method in class m3g11.Main
Enters the active state.
step1 - Variable in class m3g04.mesh.Bezier
Pre-computed values for curve evaluation.
step2 - Variable in class m3g04.mesh.Bezier
Pre-computed values for curve evaluation.
step3 - Variable in class m3g04.mesh.Bezier
Pre-computed values for curve evaluation.
steps - Variable in class m3g04.mesh.Bezier
Number of interpolation steps.
stop() - Method in class m3g11.UvAnimation
Stops the animation.
sub(short[], int, short[], int, int) - Static method in class m3g04.mesh.Bezier
Subtracts two vectors.
switchSample(Sample) - Method in class m3g11.Main
Destroys the current sample if it exists and displays a new one.

T

tangentsS - Variable in class m3g04.mesh.Bezier
Buffers for storing intermediate data.
tangentsT - Variable in class m3g04.mesh.Bezier
Buffers for storing intermediate data.
Teapot - Class in m3g04.mesh
Creates a new mesh based on the Bezier patches for the Utah Teapot.
Teapot() - Constructor for class m3g04.mesh.Teapot
Constructor has private access because class contains static methods exclusively.
TextureAnimationSample - Class in m3g11
Displays a scene with UV animations.
TextureAnimationSample() - Constructor for class m3g11.TextureAnimationSample
Constructor.
toggleSpeed(AnimationController, int) - Method in class m3g11.AnimationSample
Toggles animation between slow, fast, and reverse speed.

U

UvAnimation - Class in m3g11
Encapsulates a UV animation.
UvAnimation(AnimationController, int) - Constructor for class m3g11.UvAnimation
Protected because a new UvAnimation object must be created with one of the static create methods.

V

verticesPerCurve(int) - Static method in class m3g04.mesh.Bezier
Returns the number of vertices for a curve that is evaluated with the given number of steps.

W

windowAnimation - Variable in class m3g11.TextureAnimationSample
Window animation controller.
world - Variable in class m3g11.TextureAnimationSample
Object that represents the scene graph.

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