public abstract class RasterizedGeometry2D extends Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | RasterizedGeometry2D.HitType | 
| Constructor and Description | 
|---|
| RasterizedGeometry2D() | 
| Modifier and Type | Method and Description | 
|---|---|
| static RasterizedGeometry2D | create(Geometry geom,
      double toleranceXY,
      int rasterSizeBytes)Creates a rasterized geometry from a given Geometry. | 
| abstract boolean | dbgSaveToBitmap(String fileName)Dumps the raster to a bmp file for debug purposes. | 
| abstract int | getRasterSize()Returns raster size in bytes | 
| abstract double | getToleranceXY()Returns the tolerance for which the rasterized Geometry has been built. | 
| abstract RasterizedGeometry2D.HitType | queryEnvelopeInGeometry(Envelope2D env)Test an envelope against the RasterizedGeometry. | 
| abstract RasterizedGeometry2D.HitType | queryPointInGeometry(double x,
                    double y)Test a point against the RasterizedGeometry | 
| static int | rasterSizeFromAccelerationDegree(Geometry.GeometryAccelerationDegree accelDegree) | 
public abstract RasterizedGeometry2D.HitType queryPointInGeometry(double x, double y)
public abstract RasterizedGeometry2D.HitType queryEnvelopeInGeometry(Envelope2D env)
public static RasterizedGeometry2D create(Geometry geom, double toleranceXY, int rasterSizeBytes)
geom - The input geometry to rasterize. It has to be a MultiVertexGeometry instance.toleranceXY - The tolerance of the rasterization. Raster pixels that are
            closer than given tolerance to the Geometry will be set.rasterSizeBytes - The max size of the raster in bytes. The raster has size of
            rasterSize x rasterSize. Polygons are rasterized into 2 bpp
            (bits per pixel) rasters while other geometries are rasterized
            into 1 bpp rasters. 32x32 pixel raster for a polygon would
            take 256 bytes of memorypublic static int rasterSizeFromAccelerationDegree(Geometry.GeometryAccelerationDegree accelDegree)
public abstract double getToleranceXY()
public abstract int getRasterSize()
public abstract boolean dbgSaveToBitmap(String fileName)
fileName - Copyright © 2018. All rights reserved.