public static class GeometricPlot.GeometricRasterizer extends Rasterizer
Constructor and Description |
---|
GeometricPlot.GeometricRasterizer() |
Modifier and Type | Method and Description |
---|---|
void |
configure(Configuration conf)
Configures this rasterizer according to the MapReduce program.
|
RasterLayer |
createRaster(int width,
int height,
Rectangle mbr)
Creates an empty raster layer of the given width and height.
|
java.lang.Class<? extends RasterLayer> |
getRasterClass()
Returns the raster class associated with this rasterizer
|
void |
merge(RasterLayer finalLayer,
RasterLayer intermediateLayer)
Merges an intermediate layer into the final layer based on its location
|
void |
rasterize(RasterLayer rasterLayer,
Shape shape)
Rasterizes one shape to the given layer
|
void |
writeImage(RasterLayer layer,
java.io.DataOutputStream out,
boolean vflip)
Writes a raster layer as an image to the output.
|
getRadius, getRasterizer, isSmooth, rasterize, rasterize, setRasterizer, smooth
public void configure(Configuration conf)
Rasterizer
configure
in class Rasterizer
public RasterLayer createRaster(int width, int height, Rectangle mbr)
Rasterizer
createRaster
in class Rasterizer
width
- - Width of the created layer in pixelsheight
- - Height of the created layer in pixelsmbr
- - The minimal bounding rectangle of the layer in the inputpublic void rasterize(RasterLayer rasterLayer, Shape shape)
Rasterizer
rasterize
in class Rasterizer
rasterLayer
- - the layer to rasterize to. This layer has to be created
using the method Rasterizer.createRaster(int, int, Rectangle)
.shape
- - the shape to rasterizepublic java.lang.Class<? extends RasterLayer> getRasterClass()
Rasterizer
getRasterClass
in class Rasterizer
public void merge(RasterLayer finalLayer, RasterLayer intermediateLayer)
Rasterizer
merge
in class Rasterizer
public void writeImage(RasterLayer layer, java.io.DataOutputStream out, boolean vflip) throws java.io.IOException
Rasterizer
writeImage
in class Rasterizer
layer
- - the layer to be written to the output as an imageout
- - the output stream to which the image will be writtenvflip
- - if true
, the image is vertically flipped before writtenjava.io.IOException