de.javagl.swogl.geometry
Interface SimpleGeometry

All Superinterfaces:
Geometry

public interface SimpleGeometry
extends Geometry

A Geometry that consists of a rectangular grid of points.


Method Summary
 void getNormal(int x, int y, javax.vecmath.Tuple3f normal)
          Store the coordinates of the specified vertex in the given tuple
 int getNumPointsX()
          Returns the number of vertices of this Geometry in x-direction
 int getNumPointsY()
          Returns the number of vertices of this Geometry in y-direction
 void getTexCoord(int x, int y, javax.vecmath.Tuple2f texCoord)
          Store the texture coordinates of the specified vertex in the given tuple
 void getVertex(int x, int y, javax.vecmath.Tuple3f vertex)
          Store the coordinates of the specified vertex in the given tuple
 void setNormal(int x, int y, javax.vecmath.Tuple3f normal)
          Set the normal of the specified vertex.
 void setTexCoord(int x, int y, javax.vecmath.Tuple2f texCoord)
          Set the texture coordinates of the specified vertex.
 void setVertex(int x, int y, javax.vecmath.Tuple3f vertex)
          Set the position of the specified vertex.
 
Methods inherited from interface de.javagl.swogl.geometry.Geometry
areTexCoordsModified, areVerticesModified, getNormal, getNumTriangles, getNumVertices, getTexCoord, getVertex, getVertexIndex, setNormal, setTexCoord, setTexCoordsModified, setVertex, setVerticesModified
 

Method Detail

getNumPointsX

int getNumPointsX()
Returns the number of vertices of this Geometry in x-direction

Returns:
The number of vertices of this Geometry in x-direction

getNumPointsY

int getNumPointsY()
Returns the number of vertices of this Geometry in y-direction

Returns:
The number of vertices of this Geometry in y-direction

getVertex

void getVertex(int x,
               int y,
               javax.vecmath.Tuple3f vertex)
Store the coordinates of the specified vertex in the given tuple

Parameters:
x - The x-index of the vertex
y - The y-index of the vertex
vertex - The position of the vertex

setVertex

void setVertex(int x,
               int y,
               javax.vecmath.Tuple3f vertex)
Set the position of the specified vertex. After modifying vertices, setVerticesModified(true) should be called, so that the rendering may take the modified data into account.

Parameters:
x - The x-index of the vertex
y - The y-index of the vertex
vertex - The position of the vertex

getTexCoord

void getTexCoord(int x,
                 int y,
                 javax.vecmath.Tuple2f texCoord)
Store the texture coordinates of the specified vertex in the given tuple

Parameters:
x - The x-index of the vertex
y - The y-index of the vertex
texCoord - The texture coordinates of the vertex

setTexCoord

void setTexCoord(int x,
                 int y,
                 javax.vecmath.Tuple2f texCoord)
Set the texture coordinates of the specified vertex. After modifying coordinates, setTexCoordsModified(true) should be called, so that the rendering may take the modified data into account.

Parameters:
x - The x-index of the vertex
y - The y-index of the vertex
texCoord - The texture coordinates of the vertex

getNormal

void getNormal(int x,
               int y,
               javax.vecmath.Tuple3f normal)
Store the coordinates of the specified vertex in the given tuple

Parameters:
x - The x-index of the vertex
y - The y-index of the vertex
normal - The normal of the vertex

setNormal

void setNormal(int x,
               int y,
               javax.vecmath.Tuple3f normal)
Set the normal of the specified vertex. After modifying vertices, setVerticesModified(true) should be called, so that the rendering may take the modified data into account.

Parameters:
x - The x-index of the vertex
y - The y-index of the vertex
normal - The normal of the vertex