Class TLspHypsometricSlopeAngleShader
java.lang.Object
com.luciad.tea.lightspeed.hypsometry.ALspHypsometricShader
com.luciad.tea.lightspeed.hypsometry.ALspHypsometric3DDirectionShader
com.luciad.tea.lightspeed.hypsometry.TLspHypsometricSlopeAngleShader
A shader that computes the the angle between a given 3D reference direction and the normal.
The reference direction should generally have a positive z-component.
The angle is expressed in radians. Negative values are clamped to 0, so the values lie in the
range
[0, pi/2).
This shader is typically useful for computing the slope of the terrain, by using the
reference direction (0, 0, 1). The computed values then correspond to the inclination
of the terrain, ranging from 0 for horizontal terrain, over larger values for increasingly
sloping terrain, to a value of pi/2 (in the limit) for vertical cliffs.
This shader provides similar results to the TLcdHypsometricSlopeAngle.- Since:
- 2012.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for slope angle shaders. -
Method Summary
Modifier and TypeMethodDescriptionCreates a new builder initialized with all the properties of this shader.doubleReturns the maximum hypsometric value that this provider may return.doubleReturns the minimum hypsometric value that this provider may return.static TLspHypsometricSlopeAngleShader.Builder<?> Creates a new builder with the default values.Methods inherited from class com.luciad.tea.lightspeed.hypsometry.ALspHypsometric3DDirectionShader
equals, getReferenceDirectionX, getReferenceDirectionY, getReferenceDirectionZ, hashCode
-
Method Details
-
newBuilder
Creates a new builder with the default values.- Returns:
- the new builder.
-
asBuilder
Creates a new builder initialized with all the properties of this shader.- Specified by:
asBuilderin classALspHypsometric3DDirectionShader- Returns:
- the new builder.
-
getMinValue
public double getMinValue()Description copied from class:ALspHypsometricShaderReturns the minimum hypsometric value that this provider may return.- Specified by:
getMinValuein classALspHypsometricShader- Returns:
- the minimum hypsometric value
-
getMaxValue
public double getMaxValue()Description copied from class:ALspHypsometricShaderReturns the maximum hypsometric value that this provider may return.- Specified by:
getMaxValuein classALspHypsometricShader- Returns:
- the maximum hypsometric value
-