Class VectorBinarizeOpImage

  extended by
      extended by
          extended by
              extended by
All Implemented Interfaces:

public class VectorBinarizeOpImage

Creates a binary image based on tests of pixel inclusion in a polygonal Geometry. See VectorBinarizeDescriptor for details.

Michael Bedward, Andrea Aime

Field Summary
          Default setting for anti-aliasing (false).
Fields inherited from class
cache, cobbleSources, OP_COMPUTE_BOUND, OP_IO_BOUND, OP_NETWORK_BOUND, tileCacheMetric, tileRecycler
Fields inherited from class
colorModel, eventManager, height, minX, minY, properties, sampleModel, tileFactory, tileGridXOffset, tileGridYOffset, tileHeight, tileWidth, width
Constructor Summary
VectorBinarizeOpImage(SampleModel sm, Map configuration, int minX, int minY, int width, int height, com.vividsolutions.jts.geom.prep.PreparedGeometry geom, boolean antiAliasing)
Method Summary
 Raster computeTile(int tileX, int tileY)
          Returns the specified tile.
protected  Raster getTileRaster(int minX, int minY)
          Gets the data for the requested tile.
Methods inherited from class
computesUniqueTiles, mapDestRect, mapSourceRect
Methods inherited from class
addTileToCache, cancelTiles, computeRect, computeRect, createTile, dispose, getExpandedNumBands, getFormatTags, getOperationComputeType, getTile, getTileCache, getTileCacheMetric, getTileDependencies, getTileFromCache, getTileRecycler, getTiles, hasExtender, mapDestPoint, mapSourcePoint, prefetchTiles, queueTiles, recycleTile, setTileCache, vectorize, vectorize, vectorize
Methods inherited from class
addPropertyChangeListener, addPropertyChangeListener, addSink, addSink, addSource, addTileComputationListener, copyData, copyData, copyExtendedData, createColorModel, createSnapshot, createWritableRaster, finalize, getAsBufferedImage, getAsBufferedImage, getBounds, getColorModel, getData, getData, getDefaultColorModel, getExtendedData, getGraphics, getHeight, getImageID, getMaxTileX, getMaxTileY, getMaxX, getMaxY, getMinTileX, getMinTileY, getMinX, getMinY, getNumBands, getNumSources, getNumXTiles, getNumYTiles, getProperties, getProperty, getPropertyClass, getPropertyNames, getPropertyNames, getSampleModel, getSinks, getSource, getSourceImage, getSourceObject, getSources, getSplits, getTileComputationListeners, getTileFactory, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileIndices, getTileRect, getTiles, getTileWidth, getWidth, overlapsMultipleTiles, removeProperty, removePropertyChangeListener, removePropertyChangeListener, removeSink, removeSink, removeSinks, removeSource, removeSources, removeTileComputationListener, setImageLayout, setProperties, setProperty, setSource, setSources, tileXToX, tileXToX, tileYToY, tileYToY, toString, wrapRenderedImage, XToTileX, XToTileX, YToTileY, YToTileY
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail


public static final boolean DEFAULT_ANTIALIASING
Default setting for anti-aliasing (false).

See Also:
Constant Field Values
Constructor Detail


public VectorBinarizeOpImage(SampleModel sm,
                             Map configuration,
                             int minX,
                             int minY,
                             int width,
                             int height,
                             com.vividsolutions.jts.geom.prep.PreparedGeometry geom,
                             boolean antiAliasing)

sm - the SampleModel used to create tiles
configuration - rendering hints
minX - origin X ordinate
minY - origin Y ordinate
width - image width
height - image height
geom - reference polygonal geometry
antiAliasing - whether to use anti-aliasing when rendering the reference geometry
Method Detail


public Raster computeTile(int tileX,
                          int tileY)
Returns the specified tile.

computeTile in class
tileX - tile X index
tileY - tile Y index
the requested tile


protected Raster getTileRaster(int minX,
                               int minY)
Gets the data for the requested tile. If the tile is either completely within or outside of the reference PreparedGeometry a cached constant Raster with 1 or 0 values is returned. Otherwise tile pixels are checked for inclusion and set individually.

minX - origin X ordinate
minY - origin Y ordinate
the requested tile

Copyright © 2009-2013. All Rights Reserved.