us.ihmc.utilities.dataStructures.quadTree
Class QuadTreeHeightMap
java.lang.Object
us.ihmc.utilities.dataStructures.quadTree.QuadTree<java.lang.Float>
us.ihmc.utilities.dataStructures.quadTree.FloatQuadTree
us.ihmc.utilities.dataStructures.quadTree.QuadTreeHeightMap
- All Implemented Interfaces:
- HeightMap
public class QuadTreeHeightMap
- extends FloatQuadTree
- implements HeightMap
Constructor Summary |
QuadTreeHeightMap(double minX,
double minY,
double maxX,
double maxY,
double resolution,
double heightThreshold)
|
Method Summary |
boolean |
addPoint(double x,
double y,
double z)
|
boolean |
containsPoint(double x,
double y)
|
java.util.List<javax.vecmath.Point3d> |
getAllPointsWithinArea(double xCenter,
double yCenter,
double xExtent,
double yExtent)
|
java.util.List<javax.vecmath.Point3d> |
getAllPointsWithinArea(double xCenter,
double yCenter,
double xExtent,
double yExtent,
InclusionFunction<javax.vecmath.Point3d> maskFunctionAboutCenter)
|
double |
gridSize()
|
double |
heightAtPoint(double x,
double y)
|
Methods inherited from class us.ihmc.utilities.dataStructures.quadTree.QuadTree |
addQuadTreeListener, clear, get, get, get, get, getAllVisableNodes, getHeightThreshold, getMaxX, getMaxY, getMinX, getMinY, getNumberOfQuads, getPointsAtGridResolution, put, remove |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface us.ihmc.utilities.math.dataStructures.HeightMap |
clear |
QuadTreeHeightMap
public QuadTreeHeightMap(double minX,
double minY,
double maxX,
double maxY,
double resolution,
double heightThreshold)
heightAtPoint
public double heightAtPoint(double x,
double y)
- Specified by:
heightAtPoint
in interface HeightMap
addPoint
public boolean addPoint(double x,
double y,
double z)
- Specified by:
addPoint
in interface HeightMap
containsPoint
public boolean containsPoint(double x,
double y)
- Specified by:
containsPoint
in interface HeightMap
gridSize
public double gridSize()
getAllPointsWithinArea
public java.util.List<javax.vecmath.Point3d> getAllPointsWithinArea(double xCenter,
double yCenter,
double xExtent,
double yExtent,
InclusionFunction<javax.vecmath.Point3d> maskFunctionAboutCenter)
- Specified by:
getAllPointsWithinArea
in interface HeightMap
getAllPointsWithinArea
public java.util.List<javax.vecmath.Point3d> getAllPointsWithinArea(double xCenter,
double yCenter,
double xExtent,
double yExtent)
- Specified by:
getAllPointsWithinArea
in interface HeightMap