public interface IlvImageComputation extends IlvMapLayerStyleControl
Modifier and Type | Method and Description |
---|---|
short[] |
buildImage(IlvRasterProperties properties,
IlvThreadMonitoringData monitorInfo,
IlvManager manager,
IlvGradientRasterStyle style)
Returns a table of pixel values computed for the parameter passed.
|
mustReload, mustReload
write
short[] buildImage(IlvRasterProperties properties, IlvThreadMonitoringData monitorInfo, IlvManager manager, IlvGradientRasterStyle style)
The following code example shows how to implement this method:
IlvAltitudeProvider pr = IlvAltitudeProviderProperty.GetAltitudeProvider(manager); int ncols = properties.getColumnPixelCount(); int nligs = properties.getLinePixelCount(); short pixels[] = new short[ncols * nligs]; monitorInfo.updateProgress(10); for (int y = 0; y < nligs; y++) { for (int x = 0; x < ncols; x++) { double xlon = p.getX() + x * p.getHorizontalPixelDensity(); double ylat = p.getY() + y * p.getVerticalPixelDensity(); double slope = pr.getAltitude(manager, xlon, ylat, 0); pixels[y * ncols + x] = (short) (slope); } } monitorInfo.updateProgress(100); return pixels;
properties
- The raster properties of the image to create.monitorInfo
- The thread monitoring reference.manager
- The manager to create the image for.style
- The style of the raster image.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.