Class ClipmapTerrainPicker
java.lang.Object
com.ardor3d.extension.terrain.util.ClipmapTerrainPicker
A picking assistant to be used with ClipmapLevel and an AbstractBresenhamTracer.
-
Constructor Summary
ConstructorDescriptionClipmapTerrainPicker
(List<ClipmapLevel> levels, Class<? extends AbstractBresenhamTracer> tracerClass, int maxChecks, Vector3 initialSpacing) Construct a new picker using the supplied pyramid, tracer and arguments. -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
getTerrainIntersection
(ReadOnlyTransform terrainWorldTransform, ReadOnlyVector3 eyePos, ReadOnlyRay3 pickRay, Vector3 store, Vector3 normalStore) void
setMaxChecks
(int max) void
setMaxLevel
(int maxLevel) void
setMinLevel
(int minLevel)
-
Constructor Details
-
ClipmapTerrainPicker
public ClipmapTerrainPicker(List<ClipmapLevel> levels, Class<? extends AbstractBresenhamTracer> tracerClass, int maxChecks, Vector3 initialSpacing) throws InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException Construct a new picker using the supplied pyramid, tracer and arguments.- Parameters:
levels
- the source for our height information..tracerClass
- class type for our Bresenham tracer.maxChecks
- the maximum number of grid spaces we'll walk before giving up our search.initialSpacing
- the initial spacing- Throws:
IllegalAccessException
- if we are unable to create an instance of our tracerClassInstantiationException
- if we are unable to create an instance of our tracerClassInvocationTargetException
- if we are unable to create an instance of our tracerClassNoSuchMethodException
- if we are unable to create an instance of our tracerClass
-
-
Method Details
-
getTerrainIntersection
public Vector3 getTerrainIntersection(ReadOnlyTransform terrainWorldTransform, ReadOnlyVector3 eyePos, ReadOnlyRay3 pickRay, Vector3 store, Vector3 normalStore) -
getMaxChecks
public int getMaxChecks() -
setMaxChecks
public void setMaxChecks(int max) -
getPyramid
-
setMaxLevel
public void setMaxLevel(int maxLevel) -
getMaxLevel
public int getMaxLevel() -
setMinLevel
public void setMinLevel(int minLevel) -
getMinLevel
public int getMinLevel()
-