gestalt.candidates
Class JoglTerrain
java.lang.Object
gestalt.shape.AbstractShape
gestalt.candidates.JoglTerrain
- All Implemented Interfaces:
- Drawable, java.io.Serializable
public class JoglTerrain
- extends AbstractShape
- See Also:
- Serialized Form
| 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 |
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
JoglTerrain
public JoglTerrain(int theQUADSX,
int theQUADSY,
Vector3f theScale)
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