A B C D E F 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 m3g07.Main
Back command.
Bezier - Class in m3g04.mesh
Calculations for Bezier surfaces.
Bezier(int, boolean) - Constructor for class m3g04.mesh.Bezier
Initializes class.
BLENDING_ALPHA - Static variable in class m3g07.CompositingSample
Identifier representing blending mode ALPHA.
BLENDING_ALPHA_ADD - Static variable in class m3g07.CompositingSample
Identifier representing blending mode ALPHA_ADD.
BLENDING_MODULATE - Static variable in class m3g07.CompositingSample
Identifier representing blending mode MODULATE.
BLENDING_MODULATE_X2 - Static variable in class m3g07.CompositingSample
Identifier representing blending mode MODULATE_X2.
BLENDING_REPLACE - Static variable in class m3g07.CompositingSample
Identifier representing blending mode REPLACE.

C

commandAction(Command, Displayable) - Method in class m3g07.Main
Receives command actions from the selection screen as well as the samples.
compositingMode - Variable in class m3g07.CompositingSample
The second mesh's compositing attributes.
CompositingSample - Class in m3g07
Demonstrates compositing with different blending modes.
CompositingSample() - Constructor for class m3g07.CompositingSample
Constructor.
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.
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.
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.
currentBlending - Variable in class m3g07.CompositingSample
Current blending mode.
currentFogMode - Variable in class m3g07.FogSample
Current fog mode.
currentSample - Variable in class m3g07.Main
Currently displayed sample.

D

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

E

EmbossEffect - Class in m3g07
Blends images to achieve an emboss effect.
EmbossEffect(Mesh, Image2D, Image2D) - Constructor for class m3g07.EmbossEffect
Applies an emboss effect to a mesh.
embossEffect - Variable in class m3g07.EmbossingSample
Instance of the emboss effect.
EmbossingSample - Class in m3g07
Demonstrates embossing.
EmbossingSample() - Constructor for class m3g07.EmbossingSample
Creates a new instance of EmbossSample
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 m3g07.Main
Exit command.

F

fog - Variable in class m3g07.FogSample
Fog object.
FOG_MODE_EXPONENTIAL - Static variable in class m3g07.FogSample
Identifier representing exponential fog.
FOG_MODE_LINEAR - Static variable in class m3g07.FogSample
Identifier representing linear fog.
FOG_MODE_OFF - Static variable in class m3g07.FogSample
Identifier representing disabled fog.
FOG_PARAM_DENSITY - Static variable in class m3g07.FogSample
Initial value for density of exponential fog.
FOG_PARAM_FAR - Static variable in class m3g07.FogSample
Initial value for far distance of linear fog.
fogParam - Variable in class m3g07.FogSample
The current fog parameter.
FogSample - Class in m3g07
Sample demonstrating fog.
FogSample() - Constructor for class m3g07.FogSample
Constructor.

G

gap - Variable in class m3g07.EmbossEffect
Strength of embossing effect.
getGap() - Method in class m3g07.EmbossEffect
Getter for gap.
graphics - Variable in class m3g07.CompositingSample
2D graphics singleton used for rendering.
graphics - Variable in class m3g07.EmbossingSample
2D graphics singleton used for rendering.
graphics - Variable in class m3g07.FogSample
2D graphics singleton used for rendering.
graphics3d - Variable in class m3g07.CompositingSample
3D graphics singleton used for rendering.
graphics3d - Variable in class m3g07.EmbossingSample
3D graphics singleton used for rendering.
graphics3d - Variable in class m3g07.FogSample
3D graphics singleton used for rendering.

I

init() - Method in class m3g07.CompositingSample
Initializes the sample.
init() - Method in class m3g07.EmbossingSample
Initializes the sample.
init() - Method in class m3g07.FogSample
Initializes the sample.
init() - Method in interface m3g07.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.
invertGap() - Method in class m3g07.EmbossEffect
Inverts the distance between emboss images, thus switching between creating a bulge or a dent.

K

keyPressed(int) - Method in class m3g07.CompositingSample
Handles key presses.
keyPressed(int) - Method in class m3g07.EmbossingSample
Handles key presses.
keyPressed(int) - Method in class m3g07.FogSample
Handles key presses.

M

m3g04.mesh - package m3g04.mesh
 
m3g07 - package m3g07
 
Main - Class in m3g07
Application that runs the samples available in this chapter.
Main() - Constructor for class m3g07.Main
Constructor.
mesh - Variable in class m3g07.EmbossEffect
Mesh for the emboss effect.
mesh - Variable in class m3g07.FogSample
Mesh for display.
mesh1 - Variable in class m3g07.CompositingSample
First mesh for display.
mesh2 - Variable in class m3g07.CompositingSample
Second 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 m3g07.CompositingSample
The mesh's transformation.
meshTransform - Variable in class m3g07.FogSample
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_BLENDINGS - Static variable in class m3g07.CompositingSample
Number of blending modes.
NUMBER_OF_FOG_MODES - Static variable in class m3g07.FogSample
Number of fog mode identifiers.
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 m3g07.Main
Enters the paused state.

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 m3g07.CompositingSample
Renders the sample.
render(Graphics3D, Transform) - Method in class m3g07.EmbossEffect
Renders the mesh with emboss effect.
render(Graphics) - Method in class m3g07.EmbossingSample
Renders the sample.
render(Graphics) - Method in class m3g07.FogSample
Renders the sample.

S

Sample - Interface in m3g07
Interface that needs to be implemented by samples.
SAMPLES - Static variable in class m3g07.Main
List of samples.
SCALE - Static variable in class m3g04.mesh.Teapot
The scale of the vertices in CONTROL_POINTS.
selectionScreen - Variable in class m3g07.Main
Screen for selecting samples.
setBlending(CompositingMode, int) - Method in class m3g07.CompositingSample
Sets the current blending mode.
setFogMode(Mesh, Fog, int, float) - Method in class m3g07.FogSample
Sets the current fog parameters.
setGap(float) - Method in class m3g07.EmbossEffect
Sets the strength of the embossing effect.
startApp() - Method in class m3g07.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 m3g07.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 F G I K M N P R S T V