public class HeightMap3D extends Visualisation3D<double[][]>
| Modifier and Type | Class and Description |
|---|---|
static class |
HeightMap3D.HeightMapType
Rendering style for the height map.
|
cameraPosition, data, glu, glut, window| Constructor and Description |
|---|
HeightMap3D(int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
static HeightMap3D |
createFromFImage(FImage img)
Create a height map from an FImage.
|
ColourMap |
getColourMap() |
void |
init(javax.media.opengl.GLAutoDrawable drawable) |
static void |
main(String[] args)
Example of the height map.
|
protected void |
renderVis(javax.media.opengl.GLAutoDrawable drawable)
Render the visualisation into the drawable
|
void |
setAutoScale(boolean autoScale)
Set whether to fit the maximum possible value into the height map cube.
|
void |
setColourMap(ColourMap colourMap) |
void |
setHeightMapType(HeightMap3D.HeightMapType type)
Set the way the height map is rendered.
|
void |
setLength(double l)
Set the length of the rendered map
|
void |
setMaxValue(double max)
Set the maximum value expected in this heightmap.
|
void |
setMinValue(double min)
Set the minimum value expected in this heightmap;
|
void |
setWidth(double w)
Set the width of the rendered map
|
void |
updateVis()
Force a redraw of the visualisation image.
|
addAnimatedVisualisationListener, display, dispose, finalize, getVisualisationImage, isEnableLights, removeAnimatedVisualisationListener, reshape, setData, setEnableLights, setRequiredSizepublic HeightMap3D(int width, int height)
width - height - public void updateVis()
VisualisationImageProvider.updateVis()protected void renderVis(javax.media.opengl.GLAutoDrawable drawable)
renderVis in class Visualisation3D<double[][]>drawable - The drawableVisualisation3D.renderVis(javax.media.opengl.GLAutoDrawable)public void init(javax.media.opengl.GLAutoDrawable drawable)
init in interface javax.media.opengl.GLEventListenerinit in class Visualisation3D<double[][]>GLEventListener.init(javax.media.opengl.GLAutoDrawable)public ColourMap getColourMap()
public void setColourMap(ColourMap colourMap)
colourMap - the colourMap to setpublic void setMaxValue(double max)
max - The maximum valuepublic void setMinValue(double min)
min - The minimum valuepublic void setAutoScale(boolean autoScale)
autoScale - TRUE to autoscale.public void setLength(double l)
l - The lengthpublic void setWidth(double w)
w - the widthpublic void setHeightMapType(HeightMap3D.HeightMapType type)
type - The typepublic static HeightMap3D createFromFImage(FImage img)
img - The imagepublic static void main(String[] args) throws MalformedURLException, IOException, InterruptedException
args - IOExceptionMalformedURLExceptionInterruptedException