gestalt.candidates
Class JoglTerrain

java.lang.Object
  extended by gestalt.shape.AbstractShape
      extended by gestalt.candidates.JoglTerrain
All Implemented Interfaces:
Drawable, java.io.Serializable

public class JoglTerrain
extends AbstractShape

See Also:
Serialized Form

Field Summary
 Interpolator BORDER_INTERPOLATOR
           
 float BORDER_RANGE
           
 boolean BORDERS_AT_SEA_LEVEL
           
 boolean INVERT_DEFORMATION
           
 
Constructor Summary
JoglTerrain(int theQUADSX, int theQUADSY, Vector3f theScale)
           
 
Method Summary
 void deform(ByteBitmap theBitmap)
           
 void deform(ByteBitmap theBitmap, int theColorChannel)
           
 void deformNormalized(ByteBitmap theBitmap)
           
 void draw(GLContext theRenderContext)
          this method is used to draw the drawable, when the context is ready.
 float getHeightAtPosition(Vector3f thePosition)
           
 int getQuadsX()
           
 int getQuadsY()
           
 void normalizeVertices()
           
 Vector3f[][] normals()
           
 Vector3f position()
          returns the position as stored in the 'translation' of the matrix returned by 'transform()'.
 Vector3f scale()
          returns the reference to the scale.
 void setData(Vector3f[][] theVertices)
           
 TransformMatrix4f transform()
          returns the reference to the transform matrix used by this shape.
 void update()
           
 Vector3f[][] vertices()
           
 
Methods inherited from class gestalt.shape.AbstractShape
add, getSortData, getSortValue, getTransformMode, isActive, isSortable, material, position, position, position, rotation, rotation, scale, scale, setActive, setChildContainer, setMaterialRef, setPositionRef, setRotationRef, setScaleRef, setSortValue, setTransformMode, setTransformRef
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BORDERS_AT_SEA_LEVEL

public boolean BORDERS_AT_SEA_LEVEL

BORDER_RANGE

public float BORDER_RANGE

BORDER_INTERPOLATOR

public Interpolator BORDER_INTERPOLATOR

INVERT_DEFORMATION

public boolean INVERT_DEFORMATION
Constructor Detail

JoglTerrain

public JoglTerrain(int theQUADSX,
                   int theQUADSY,
                   Vector3f theScale)
Method Detail

setData

public void setData(Vector3f[][] theVertices)

getHeightAtPosition

public float getHeightAtPosition(Vector3f thePosition)

position

public Vector3f position()
Description copied from class: AbstractShape
returns the position as stored in the 'translation' of the matrix returned by 'transform()'.

Overrides:
position in class AbstractShape
Returns:
Vector3f

transform

public TransformMatrix4f transform()
Description copied from class: AbstractShape
returns the reference to the transform matrix used by this shape.

Overrides:
transform in class AbstractShape
Returns:
TransformMatrix4f

update

public void update()

normalizeVertices

public void normalizeVertices()

deform

public void deform(ByteBitmap theBitmap)

deform

public void deform(ByteBitmap theBitmap,
                   int theColorChannel)

deformNormalized

public void deformNormalized(ByteBitmap theBitmap)

getQuadsX

public int getQuadsX()

getQuadsY

public int getQuadsY()

scale

public Vector3f scale()
Description copied from class: AbstractShape
returns the reference to the scale.

Overrides:
scale in class AbstractShape
Returns:
Vector3f

vertices

public Vector3f[][] vertices()

normals

public Vector3f[][] normals()

draw

public void draw(GLContext theRenderContext)
Description copied from interface: Drawable
this method is used to draw the drawable, when the context is ready. although the behavior sometimes varies and doesn t always need to have a visual representation depending on the implementation.

Parameters:
theRenderContext - GLContext


processing library gestalt_p5 by Patrick Kochlik + Dennis Paul. (c) 2009