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

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 m3g06.Main
Back command.
background - Variable in class m3g06.EnvironmentMappingSample
Background image.
Bezier - Class in m3g04.mesh
Calculations for Bezier surfaces.
Bezier(int, boolean) - Constructor for class m3g04.mesh.Bezier
Initializes class.

C

cameraX - Variable in class m3g06.EnvironmentMappingSample
The camera's current rotation value.
commandAction(Command, Displayable) - Method in class m3g06.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.
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, Texture2D) - Method in class m3g06.EnvironmentMappingSample
Creates a mesh based on the given ID.
createMesh(int, PolygonMode, Texture2D) - Method in class m3g06.TexturingSample
Creates a mesh based on the given ID.
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.
currentFilter - Variable in class m3g06.TexturingSample
Current filter mode.
currentMesh - Variable in class m3g06.EnvironmentMappingSample
Current mesh.
currentMesh - Variable in class m3g06.TexturingSample
Current mesh.
currentSample - Variable in class m3g06.Main
Currently displayed sample.
currentWrapping - Variable in class m3g06.TexturingSample
Current wrapping mode.

D

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

E

EnvironmentMap - Class in m3g06
Calculates environment mapping coordinates by using a mesh's normals as texture coordinates.
EnvironmentMap(Mesh) - Constructor for class m3g06.EnvironmentMap
Constructs a new environment map for the given mesh with normalization enabled.
EnvironmentMap(Mesh, boolean, float) - Constructor for class m3g06.EnvironmentMap
Constructs a new environment map for the given mesh.
environmentMap - Variable in class m3g06.EnvironmentMappingSample
Calculates environment mapping coordinates.
EnvironmentMappingSample - Class in m3g06
Demonstrates environment mapping.
EnvironmentMappingSample() - Constructor for class m3g06.EnvironmentMappingSample
Constructor.
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 m3g06.Main
Exit command.

F

FILTER_HIGH - Static variable in class m3g06.TexturingSample
Texture filter with high quality.
FILTER_LOW - Static variable in class m3g06.TexturingSample
Texture filter with low quality.

G

graphics - Variable in class m3g06.EnvironmentMappingSample
2D graphics singleton used for rendering.
graphics - Variable in class m3g06.TexturingSample
2D graphics singleton used for rendering.
graphics3d - Variable in class m3g06.EnvironmentMappingSample
3D graphics singleton used for rendering.
graphics3d - Variable in class m3g06.TexturingSample
3D graphics singleton used for rendering.

I

IMAGE2D_TYPES - Static variable in class m3g06.Image2DTypesSample
Maps Image2D types to a string representation.
Image2DTypesSample - Class in m3g06
Loads PNG images with different color types and transparency combinations by using Loader.load() and displays the resulting Image2D pixel format.
Image2DTypesSample() - Constructor for class m3g06.Image2DTypesSample
Initializes sample and loads images.
IMAGE_NAME_BASE - Static variable in class m3g06.Image2DTypesSample
Prefix for image names.
IMAGE_NAME_END - Static variable in class m3g06.Image2DTypesSample
Postfix for image names.
init() - Method in class m3g06.EnvironmentMappingSample
Initializes the sample.
init() - Method in class m3g06.Image2DTypesSample
Initializes the sample.
init() - Method in interface m3g06.Sample
Tells the sample to initialize itself.
init() - Method in class m3g06.TexturingSample
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.

K

keyPressed(int) - Method in class m3g06.EnvironmentMappingSample
Handles key presses.
keyPressed(int) - Method in class m3g06.TexturingSample
Handles key presses.

M

m3g04.mesh - package m3g04.mesh
 
m3g06 - package m3g06
 
Main - Class in m3g06
Application that runs the samples available in this chapter.
Main() - Constructor for class m3g06.Main
Constructor.
mesh - Variable in class m3g06.EnvironmentMap
Reference to mesh that has environment mapping applied.
mesh - Variable in class m3g06.EnvironmentMappingSample
Mesh for display.
mesh - Variable in class m3g06.TexturingSample
Mesh for display.
MESH_CUBE - Static variable in class m3g06.TexturingSample
Cube is displayed.
MESH_CYLINDER - Static variable in class m3g06.EnvironmentMappingSample
Cylinder is displayed.
MESH_CYLINDER - Static variable in class m3g06.TexturingSample
Cylinder is displayed.
MESH_SPHERE - Static variable in class m3g06.EnvironmentMappingSample
Sphere is displayed.
MESH_SPHERE - Static variable in class m3g06.TexturingSample
Sphere is displayed.
MESH_TEAPOT - Static variable in class m3g06.EnvironmentMappingSample
Teapot is displayed.
MESH_TEAPOT - Static variable in class m3g06.TexturingSample
Teapot is displayed.
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 m3g06.EnvironmentMappingSample
The mesh's transformation.
meshTransform - Variable in class m3g06.TexturingSample
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.
modelX - Variable in class m3g06.EnvironmentMappingSample
The model's current rotation value.
modelZ - Variable in class m3g06.EnvironmentMappingSample
The model's current rotation value.

N

NUMBER_OF_FILTERS - Static variable in class m3g06.TexturingSample
Number of filter modes.
NUMBER_OF_MESHES - Static variable in class m3g06.EnvironmentMappingSample
Number of meshes.
NUMBER_OF_MESHES - Static variable in class m3g06.TexturingSample
Number of meshes.
NUMBER_OF_PATCHES - Static variable in class m3g04.mesh.Teapot
Number of patches, including reflected ones.
NUMBER_OF_WRAPPINGS - Static variable in class m3g06.TexturingSample
Number of wrapping modes.
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 m3g06.Main
Enters the paused state.
perspectiveCorrection - Variable in class m3g06.TexturingSample
Stores whether perspective correction is enabled or not.
PNG_TYPES - Static variable in class m3g06.Image2DTypesSample
List of PNG test images and their string representation.
polygonMode - Variable in class m3g06.TexturingSample
Polygon mode component of appearance.

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 m3g06.EnvironmentMappingSample
Renders the sample.
render(Graphics) - Method in class m3g06.TexturingSample
Renders the sample.
rotX - Variable in class m3g06.TexturingSample
Current rotation value.
rotY - Variable in class m3g06.TexturingSample
Current rotation value.

S

Sample - Interface in m3g06
Interface that needs to be implemented by samples.
SAMPLES - Static variable in class m3g06.Main
List of samples.
SCALE - Static variable in class m3g04.mesh.Teapot
The scale of the vertices in CONTROL_POINTS.
selectionScreen - Variable in class m3g06.Main
Screen for selecting samples.
setFiltering(Texture2D, int) - Method in class m3g06.TexturingSample
Sets the filter parameters of the given texture.
setWrapping(Texture2D, int) - Method in class m3g06.TexturingSample
Sets the wrapping parameters of the given texture.
startApp() - Method in class m3g06.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 m3g06.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.
testImage(String) - Method in class m3g06.Image2DTypesSample
Fetches an image with Loader.load() and returns the Image2D type as a string representation.
texture - Variable in class m3g06.EnvironmentMappingSample
The mesh's texture.
texture - Variable in class m3g06.TexturingSample
The mesh's texture.
textureTransform - Variable in class m3g06.EnvironmentMap
Current generic texture transformation.
TexturingSample - Class in m3g06
Displays different shapes with textures and allows changing texture parameters interactively.
TexturingSample() - Constructor for class m3g06.TexturingSample
Constructor.
transform(float, float, float, float, float, float) - Method in class m3g06.EnvironmentMap
Updates the texture coordinates.

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

WRAPPING_CLAMP - Static variable in class m3g06.TexturingSample
Texture is clamped.
WRAPPING_FULL - Static variable in class m3g06.TexturingSample
Texture is stretched to cover the entire surface.
WRAPPING_REPEAT - Static variable in class m3g06.TexturingSample
Texture is tiled.

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