Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
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.
alignNode
- Variable in class m3g09.
BillboardSample
Group used for alignment.
allMeshes
- Variable in class m3g09.
SceneGraphSample
Group with all meshes.
B
backCommand
- Variable in class m3g09.
Main
Back command.
Bezier
- Class in
m3g04.mesh
Calculations for Bezier surfaces.
Bezier(int, boolean)
- Constructor for class m3g04.mesh.
Bezier
Initializes class.
BillboardSample
- Class in
m3g09
This sample displays a field of flowers to demonstrate two alternative billboard techniques: daisies and knotweeds use screen-aligned
Sprite3D
s; tulips and irises use axis-aligned, textured quads.
BillboardSample()
- Constructor for class m3g09.
BillboardSample
Constructor.
blueMeshes
- Variable in class m3g09.
SceneGraphSample
Group with blue meshes.
C
cameraGroup
- Variable in class m3g09.
BillboardSample
Group that contains camera.
checkHit()
- Method in class m3g09.
PickingSample
Checks whether a ray that originates in the middle of the viewport and has the same direction as the active camera intersects with a mesh.
commandAction(Command, Displayable)
- Method in class m3g09.
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.
createGrass()
- Method in class m3g09.
BillboardSample
Creates a patch of grass for the flower field.
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.
createSprite3D(int)
- Method in class m3g09.
BillboardSample
Creates a number of billboards using screen-aligned
Sprite3D
s.
createTexCoords(byte[], int, boolean)
- Method in class m3g04.mesh.
Bezier
Calculates texture coordinates.
createTexturedQuad(int)
- Method in class m3g09.
BillboardSample
Creates a number of billboards using axis-aligned, textured quads.
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.
crosshair
- Variable in class m3g09.
PickingSample
Image object for crosshair.
currentSample
- Variable in class m3g09.
Main
Currently displayed sample.
D
destroy()
- Method in class m3g09.
BillboardSample
Destroys the sample.
destroy()
- Method in class m3g09.
PickingSample
Destroys the sample.
destroy()
- Method in interface m3g09.
Sample
Tells the sample to destroy itself.
destroy()
- Method in class m3g09.
SceneGraphSample
Destroys the sample.
destroyApp(boolean)
- Method in class m3g09.
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.
distribute(Group)
- Method in class m3g09.
BillboardSample
Distributes the children of the given group randomly on the x-z plane.
drawMenu(Graphics)
- Method in class m3g09.
BillboardSample
Draws a menu for the current key assignments.
drawMenu(Graphics)
- Method in class m3g09.
PickingSample
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 m3g09.
Main
Exit command.
G
graphics
- Variable in class m3g09.
BillboardSample
2D graphics singleton used for rendering.
graphics
- Variable in class m3g09.
PickingSample
2D graphics singleton used for rendering.
graphics
- Variable in class m3g09.
SceneGraphSample
2D graphics singleton used for rendering.
graphics3d
- Variable in class m3g09.
BillboardSample
3D graphics singleton used for rendering.
graphics3d
- Variable in class m3g09.
PickingSample
3D graphics singleton used for rendering.
graphics3d
- Variable in class m3g09.
SceneGraphSample
Graphics singleton used for rendering.
I
init()
- Method in class m3g09.
BillboardSample
Initializes the sample.
init()
- Method in class m3g09.
PickingSample
Initializes the sample.
init()
- Method in interface m3g09.
Sample
Tells the sample to initialize itself.
init()
- Method in class m3g09.
SceneGraphSample
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.
isRunning
- Variable in class m3g09.
SceneGraphSample
Flag whether thread is running.
K
keyPressed(int)
- Method in class m3g09.
BillboardSample
Handles key presses.
keyPressed(int)
- Method in class m3g09.
PickingSample
Handles key presses.
M
m3g04.mesh
- package m3g04.mesh
m3g09
- package m3g09
Main
- Class in
m3g09
Application that runs the samples available in this chapter.
Main()
- Constructor for class m3g09.
Main
Constructor.
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_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 m3g09.
Main
Enters the paused state.
PickingSample
- Class in
m3g09
Picks meshes in viewport coordinates.
PickingSample()
- Constructor for class m3g09.
PickingSample
Constructor.
R
redMeshes
- Variable in class m3g09.
SceneGraphSample
Group with red meshes.
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 m3g09.
BillboardSample
Renders the sample.
render(Graphics)
- Method in class m3g09.
PickingSample
Renders the sample.
render(Graphics)
- Method in class m3g09.
SceneGraphSample
Renders the sample.
reset()
- Method in class m3g09.
SceneGraphSample
Resets the sample's state.
run()
- Method in class m3g09.
SceneGraphSample
Animation loop.
S
Sample
- Interface in
m3g09
Interface that needs to be implemented by samples.
SAMPLES
- Static variable in class m3g09.
Main
List of samples.
SCALE
- Static variable in class m3g04.mesh.
Teapot
The scale of the vertices in CONTROL_POINTS.
SceneGraphSample
- Class in
m3g09
Uses a scene graph tree to structure a hierarchy of 3D objects.
SceneGraphSample()
- Constructor for class m3g09.
SceneGraphSample
Constructor.
selectionScreen
- Variable in class m3g09.
Main
Screen for selecting samples.
startApp()
- Method in class m3g09.
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 m3g09.
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.
W
world
- Variable in class m3g09.
BillboardSample
Root node of world.
world
- Variable in class m3g09.
PickingSample
Object that represents the 3D world.
world
- Variable in class m3g09.
SceneGraphSample
Object that represents the scene graph.
A
B
C
D
E
G
I
K
M
N
P
R
S
T
V
W
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes