public class IlvMakeValleyInteractor extends IlvMakeGradientInteractor
Constructor and Description |
---|
IlvMakeValleyInteractor()
Creates an interactor.
|
IlvMakeValleyInteractor(IlvInputStream stream)
The stream constructor.
|
Modifier and Type | Method and Description |
---|---|
short[] |
buildImage(IlvRasterProperties p,
IlvThreadMonitoringData monitorInfo,
IlvManager manager,
IlvGradientRasterStyle style)
Returns a table of pixel values computed for the parameter passed.
|
protected String |
getActivityDescription()
Returns the activity description displayed in the thread monitor.
|
protected String |
getDialogTitle()
Returns the settings dialog title.
|
protected String |
getLayerName()
Returns the layer name to use when creating an image.
|
IlvGradientRasterStyle |
makeStyle(IlvRasterAbstractReader r)
Creates a style for this reader.
|
boolean |
mustReload(StyleEvent event)
Indicates if a specific style event necessitates rebuilding the raster
data source.
|
void |
write(IlvOutputStream stream)
Writes the attributes of a persistent object.
|
createMapInsertionLayer, createObject, getSlope, mustReload
addRectangleDraggedListener, attach, detach, dragscroll, drawGhost, fireRectangleDraggedEvent, getCursor, getDraggedRectangle, getLineStyle, getRectangleAspectRatio, getStartDragModifier, getStartPoint, handleButtonDown, handleButtonDragged, handleButtonUp, isGridMode, isOpaqueMode, isRotationAllowed, isStartDragModifierDown, isXORGhost, processMouseEvent, processMouseMotionEvent, removeRectangleDraggedListener, setCursor, setGridMode, setLineStyle, setOpaqueMode, setRectangleAspectRatio, setRotationAllowed, setStartDragModifier
adjustPointIfOutsideView, doAutoScroll, getMaximumScrollDistance, getScrollTiming, isProgressiveScroll, setMaximumScrollDistance, setProgressiveScroll, setScrollTiming, startDraggingScrollTimer, stopDraggingScrollTimer
addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, allowEnsureVisible, allowEnsureVisible, disableEvents, drawGhost, enableEvents, ensureVisible, ensureVisible, getManager, getManagerView, getTransformer, handleExpose, processEvent, processFocusEvent, processKeyEvent, removeFocusListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, setXORGhost
public IlvMakeValleyInteractor(IlvInputStream stream)
stream
- The Stream to read from.public IlvMakeValleyInteractor()
protected String getActivityDescription()
getActivityDescription
in class IlvMakeGradientInteractor
IlvMakeGradientInteractor.getActivityDescription()
public short[] buildImage(IlvRasterProperties p, 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;
buildImage
in interface IlvImageComputation
buildImage
in class IlvMakeGradientInteractor
p
- 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.IlvMakeGradientInteractor.buildImage(ilog.views.maps.raster.IlvRasterProperties, ilog.views.maps.raster.datasource.IlvThreadMonitoringData, ilog.views.IlvManager, ilog.views.maps.defense.terrain.IlvGradientRasterStyle)
protected String getLayerName()
getLayerName
in class IlvMakeGradientInteractor
IlvMakeGradientInteractor.getLayerName()
protected String getDialogTitle()
getDialogTitle
in class IlvMakeGradientInteractor
public boolean mustReload(StyleEvent event)
mustReload
in interface IlvMapLayerStyleControl
mustReload
in class IlvMakeGradientInteractor
event
- The event sent by the StyleListener
instance installed
on the layer style.true
is returned.IlvMakeGradientInteractor.mustReload(ilog.views.maps.graphic.style.StyleEvent)
public IlvGradientRasterStyle makeStyle(IlvRasterAbstractReader r)
makeStyle
in class IlvMakeGradientInteractor
r
- The reader to be passed to the style constructor.IlvValleyRasterStyle
object using the correct
color model.public void write(IlvOutputStream stream)
write
in interface IlvPersistentObject
write
in class IlvMakeGradientInteractor
stream
- the output streamIlvPersistentObject.write(ilog.views.io.IlvOutputStream)
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.