org.deegree.rendering.r3d.opengl.rendering.dem
Class Colormap
java.lang.Object
org.deegree.rendering.r3d.opengl.rendering.dem.Colormap
public class Colormap
- extends Object
Implementation of a shader based color map for the WPVS. Colors will be linear interpolated between the min and max
color.
- Version:
- $Revision: 22364 $, $Date: 2010-02-03 12:58:11 +0100 (Mi, 03 Feb 2010) $
- Author:
- Rutger Bezema, last edited by: $Author: rbezema $
|
Constructor Summary |
Colormap(float zMin,
float zMax)
Instantiate with min = red, max = green and height = brownish |
Colormap(float zMin,
float zMax,
float[] minColor,
float[] maxColor,
float[] heightColor)
|
Colormap
public Colormap(float zMin,
float zMax)
- Instantiate with min = red, max = green and height = brownish
- Parameters:
zMin - the minimum value of the terrainzMax - the maximum value of the terrain
Colormap
public Colormap(float zMin,
float zMax,
float[] minColor,
float[] maxColor,
float[] heightColor)
- Parameters:
zMin - zMax - minColor - maxColor - heightColor -
getMinColor
public final float[] getMinColor()
- Returns:
- the minColor
getMaxColor
public final float[] getMaxColor()
- Returns:
- the maxColor
getDifVec
public final float[] getDifVec()
- Returns:
- the difVec
getzMin
public float getzMin()
- Returns:
- the zMin
getzMax
public float getzMax()
- Returns:
- the zMax
enable
public void enable(RenderContext glRenderContext)
- Parameters:
glRenderContext -
disable
public void disable(RenderContext glRenderContext)
- Parameters:
glRenderContext -
toString
public String toString()
- Overrides:
toString in class Object
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org]]>