org.autochthonous.graphics.rt.objects
Class Heightfield
java.lang.Object
org.autochthonous.graphics.rt.Renderable
org.autochthonous.graphics.rt.Bounded
org.autochthonous.graphics.rt.objects.Heightfield
- All Implemented Interfaces:
- java.lang.Cloneable, ColorCalculator, Partitionable, Traceable
- Direct Known Subclasses:
- ImageHeightfield
- public class Heightfield
- extends Bounded
a heightfield.
Example:
<Heightfield color="1, 1, 1" name="hfield.hf" vertex1="-1, -1, -1" vertex2="1, 1, 1"/>
Document Type Definition:
<!ENTITY %Color3f "CDATA">
<!ENTITY %Point3f "CDATA">
<!ELEMENT Heightfield EMPTY>
<!ATTLIST Heightfield
color %Color3f; "1, 1, 1"
vertex1 %Point3f; "0, 0, 0"
vertex2 %Point3f; "1, 1, 1">
Fields inherited from class org.autochthonous.graphics.rt.Bounded |
bBox |
Methods inherited from class org.autochthonous.graphics.rt.Renderable |
clone, createObjectSpaceRay, getColor, getColor, getShader, hasShader, isSelfShadowing, processObject, readObject, setColor, setColor, setSelfShadowing, setShader, toObjectSpace, toObjectSpace, transformNormal |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.autochthonous.graphics.rt.Traceable |
clone |
tolerance
public static final float tolerance
- See Also:
- Constant Field Values
zVals
protected float[][] zVals
pixVals
protected int[] pixVals
pixWidth
protected int pixWidth
pixHeight
protected int pixHeight
Heightfield
protected Heightfield()
Heightfield
protected Heightfield(Point3f p1,
Point3f p2,
float[][] zVals)
getInstance
public static Heightfield getInstance(RMLReader in)
throws java.io.IOException
- Throws:
java.io.IOException
initZ
protected void initZ(float[][] zVals)
processParameters
protected void processParameters(ParametersMap params)
- Overrides:
processParameters
in class Renderable
intersections
public HitList intersections(Ray r)
isIntersected
public boolean isIntersected(Ray r)
- Specified by:
isIntersected
in interface Traceable
- Specified by:
isIntersected
in class Bounded
isShadowing
public boolean isShadowing(Ray r)
- Specified by:
isShadowing
in interface Traceable
- Specified by:
isShadowing
in class Bounded