|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Geometry | |
---|---|
de.javagl.swogl | The core classes of Swogl. |
de.javagl.swogl.geometry | Classes and interfaces for basic geometric objects and the
Geometry
of a SwoglComponent |
Uses of Geometry in de.javagl.swogl |
---|
Methods in de.javagl.swogl that return Geometry | |
---|---|
Geometry |
SwoglComponent.getGeometry()
Returns the Geometry of this SwoglComponent |
Methods in de.javagl.swogl with parameters of type Geometry | |
---|---|
static SwoglComponent |
SwoglComponents.create(Geometry geometry,
Texture texture,
javax.swing.JComponent component)
Create a new SwoglComponent that contains the given Swing component and consists of the given geometry and texture. |
Uses of Geometry in de.javagl.swogl.geometry |
---|
Subinterfaces of Geometry in de.javagl.swogl.geometry | |
---|---|
interface |
SimpleGeometry
A Geometry that consists of a rectangular grid of points. |
Classes in de.javagl.swogl.geometry that implement Geometry | |
---|---|
class |
AbstractGeometry
Abstract base implementation of a Geometry |
Methods in de.javagl.swogl.geometry with parameters of type Geometry | |
---|---|
static Box |
GeometryUtils.computeBoundingBox(Geometry geometry)
Computes the bounding Box of the given Geometry |
static Box |
GeometryUtils.computeBoundingBox(Geometry geometry,
javax.vecmath.Matrix4f matrix)
Computes the bounding Box of the given Geometry
when it is transformed with the given matrix. |
static void |
GeometryUtils.getNormals(Geometry geometry,
int triangleIndex,
javax.vecmath.Tuple3f n0,
javax.vecmath.Tuple3f n1,
javax.vecmath.Tuple3f n2)
Write the normals of the vertices of the specified triangle of the given Geometry into the given tuples |
static void |
GeometryUtils.getTexCoords(Geometry geometry,
int triangleIndex,
javax.vecmath.Tuple2f t0,
javax.vecmath.Tuple2f t1,
javax.vecmath.Tuple2f t2)
Write the texture coordinates of the vertices of the specified triangle of the given Geometry into the given tuples |
static void |
GeometryUtils.getVertex(Geometry geometry,
int triangleIndex,
int vertexNumber,
javax.vecmath.Tuple3f vertex,
javax.vecmath.Tuple3f normal,
javax.vecmath.Tuple2f texCoord)
Obtain the position, normal and texture coordinates of the specified vertex from the given Geometry . |
static void |
GeometryUtils.getVertices(Geometry geometry,
int triangleIndex,
javax.vecmath.Tuple3f v0,
javax.vecmath.Tuple3f v1,
javax.vecmath.Tuple3f v2)
Write the positions of the vertices of the specified triangle of the given Geometry into the given tuples |
static void |
GeometryUtils.transform(Geometry geometry,
javax.vecmath.Matrix4f matrix)
Transform the given Geometry with the given matrix |
static void |
GeometryUtils.updateNormals(Geometry geometry)
Update the vertex normals of the given Geometry by computing
the average of the normals of the triangles that are
adjacent to the respective vertex. |
static void |
GeometryUtils.writeIndicesToBuffer(Geometry geometry,
java.nio.IntBuffer buffer)
Writes the indices of the given Geometry into the given
buffer. |
static void |
GeometryUtils.writeNormalsToBuffer(Geometry geometry,
java.nio.FloatBuffer buffer)
Writes the normals of the given Geometry into the given
buffer. |
static void |
GeometryUtils.writeTexCoordsToBuffer(Geometry geometry,
java.nio.FloatBuffer buffer)
Writes the texture coordinates of the given Geometry into
the given buffer. |
static void |
GeometryUtils.writeVerticesToBuffer(Geometry geometry,
java.nio.FloatBuffer buffer)
Writes the vertices of the given Geometry into the given
buffer. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |