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: 29127 $, $Date: 2011-01-10 16:13:35 +0100 (Mon, 10 Jan 2011) $
- Author:
- Rutger Bezema, last edited by: $Author: aschmitz $
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
Copyright © 2011. All Rights Reserved.