net.dzzd.access
Interface IHeightMap3D

All Superinterfaces:
IMesh3DCollisionGenerator, IMesh3DGenerator, IMesh3DViewGenerator

public interface IHeightMap3D
extends IMesh3DViewGenerator, IMesh3DGenerator, IMesh3DCollisionGenerator

Used for accessing to a HeightMap3D.
HeightMap3D is generated using an HeightMap

Since:
1.0
Version:
1.0, 01/01/04
Author:
Bruno Augier
See Also:
IHeightMap, IMesh3D, IMesh3DGenerator

Method Summary
 void setHeightMap(IHeightMap hm)
          Sets the HeightMap to use for tesselation.
 void setHeightMapBounds(double xMin, double yMin, double xMax, double yMax)
          Sets the area of the height map to use.
 void updateHeightMap()
          Indicate that the HeighMap has been just set or has to be (re)computed.
 
Methods inherited from interface net.dzzd.access.IMesh3DViewGenerator
generateForView, getMesh3DViewGeneratorQuality, getNbViewFaces, getViewFace3DList, setFarClip, setMesh3DViewGeneratorQuality, setNearClip
 
Methods inherited from interface net.dzzd.access.IMesh3DGenerator
generate, getFace3D, getMesh3DGeneratorQuality, getNbFace3D, getNbVertex3D, getVertex3D, setMesh3DBounds, setMesh3DGeneratorQuality
 
Methods inherited from interface net.dzzd.access.IMesh3DCollisionGenerator
generateForSolidSphere3DCollision, getCollisionFace3DList, getNbCollisionFaces
 

Method Detail

setHeightMapBounds

public void setHeightMapBounds(double xMin,
                               double yMin,
                               double xMax,
                               double yMax)
Sets the area of the height map to use.
input area should be given in homogeneous value (as percent)
ex : 0,0,1,1 = full and 0,0,0.5,0.5 = only upper-left corner

Parameters:
xMin - minimum height map x pos
yMin - minimum height map y pos
xMax - maximum height map x pos
yMax - maximum height map y pos

setHeightMap

public void setHeightMap(IHeightMap hm)
Sets the HeightMap to use for tesselation.
if HeighMap not null, this method will call this.updateHeightMap() just before returning

Parameters:
hm - HeightMap to use or null to remove current

updateHeightMap

public void updateHeightMap()
Indicate that the HeighMap has been just set or has to be (re)computed.
should has been called when HeighMap changed and at least once before first call to generate
setHeightMap will call this method automatically