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

A

addRandomColors(Mesh) - Static method in class m3g04.mesh.MeshUtils
Assigns a random color to each vertex of a mesh.

B

backCommand - Variable in class m3g04.Main
Back command.
background - Variable in class m3g04.ColoredGeometrySample
The sample's background.
Bezier - Class in m3g04.mesh
Calculations for Bezier surfaces.
Bezier(int, boolean) - Constructor for class m3g04.mesh.Bezier
Initializes class.

C

camera - Variable in class m3g04.GeometricShapesSample
Camera that defines the user's view point.
cameraTransform - Variable in class m3g04.GeometricShapesSample
The camera's transformation.
ColoredGeometrySample - Class in m3g04
Sample displaying a cube with per-vertex colors.
ColoredGeometrySample() - Constructor for class m3g04.ColoredGeometrySample
Constructor.
commandAction(Command, Displayable) - Method in class m3g04.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.
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.
createBackground() - Method in class m3g04.ColoredGeometrySample
Creates a new background with an image.
createCube() - Method in class m3g04.ColoredGeometrySample
Creates a cube with eight vertices, one triangle strip, and per-vertex colors.
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.
createMesh(int) - Method in class m3g04.GeometricShapesSample
Creates a new mesh of the given type.
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.
currentMesh - Variable in class m3g04.GeometricShapesSample
Current mesh.
currentSample - Variable in class m3g04.Main
Currently displayed sample.

D

destroy() - Method in class m3g04.ColoredGeometrySample
Destroys the sample.
destroy() - Method in class m3g04.GeometricShapesSample
Destroys the sample.
destroy() - Method in interface m3g04.Sample
Tells the sample to destroy itself.
destroyApp(boolean) - Method in class m3g04.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 m3g04.ColoredGeometrySample
Draws a menu for the current key assignments.
drawMenu(Graphics) - Method in class m3g04.GeometricShapesSample
Draws a menu for the current key assignments.

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 m3g04.Main
Exit command.

G

GeometricShapesSample - Class in m3g04
Sample displaying different meshes.
GeometricShapesSample() - Constructor for class m3g04.GeometricShapesSample
Constructor.
graphics - Variable in class m3g04.ColoredGeometrySample
2D graphics singleton used for rendering.
graphics - Variable in class m3g04.GeometricShapesSample
2D graphics singleton used for rendering.
graphics3d - Variable in class m3g04.ColoredGeometrySample
3D graphics singleton used for rendering.
graphics3d - Variable in class m3g04.GeometricShapesSample
3D graphics singleton used for rendering.

I

init() - Method in class m3g04.ColoredGeometrySample
Initializes the sample.
init() - Method in class m3g04.GeometricShapesSample
Initializes the sample.
init() - Method in interface m3g04.Sample
Tells the sample to initialize itself.
intermediatePointsS - Variable in class m3g04.mesh.Bezier
Buffers for storing intermediate data.
intermediatePointsT - Variable in class m3g04.mesh.Bezier
Buffers for storing intermediate data.

K

keyPressed(int) - Method in class m3g04.ColoredGeometrySample
Handles key presses.
keyPressed(int) - Method in class m3g04.GeometricShapesSample
Handles key presses.

M

m3g04 - package m3g04
 
m3g04.mesh - package m3g04.mesh
 
Main - Class in m3g04
Application that runs the samples available in this chapter.
Main() - Constructor for class m3g04.Main
Constructor.
mesh - Variable in class m3g04.ColoredGeometrySample
The cube's mesh object.
mesh - Variable in class m3g04.GeometricShapesSample
Mesh for display.
MESH_CUBE - Static variable in class m3g04.GeometricShapesSample
Mesh type cube.
MESH_CYLINDER - Static variable in class m3g04.GeometricShapesSample
Mesh type cylinder.
MESH_SPHERE - Static variable in class m3g04.GeometricShapesSample
Mesh type sphere.
MESH_TEAPOT - Static variable in class m3g04.GeometricShapesSample
Mesh type teapot.
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.
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_MESHES - Static variable in class m3g04.GeometricShapesSample
Number of meshes.
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 m3g04.Main
Enters the paused state.
polygonMode - Variable in class m3g04.ColoredGeometrySample
The cube's polygon-level attributes such as winding and culling.

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 m3g04.ColoredGeometrySample
Renders the sample.
render(Graphics) - Method in class m3g04.GeometricShapesSample
Renders the sample.

S

Sample - Interface in m3g04
Interface that needs to be implemented by samples.
SAMPLES - Static variable in class m3g04.Main
List of samples.
SCALE - Static variable in class m3g04.mesh.Teapot
The scale of the vertices in CONTROL_POINTS.
selectionScreen - Variable in class m3g04.Main
Screen for selecting samples.
startApp() - Method in class m3g04.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.
sub(short[], int, short[], int, int) - Static method in class m3g04.mesh.Bezier
Subtracts two vectors.
switchSample(Sample) - Method in class m3g04.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.

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.

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