Class RasterGlyph

java.lang.Object
hec.map.MapGlyph
hec.map.raster.RasterGlyph
All Implemented Interfaces:
ElevationGlyph, ImageObserver, Serializable, Comparable<MapGlyph>, Observer

public class RasterGlyph extends MapGlyph implements Serializable, ImageObserver, ElevationGlyph, Observer
See Also:
  • Field Details

    • _viewableImageHash

      protected HashMap _viewableImageHash
    • _segImageList

      protected PruningList _segImageList
  • Constructor Details

    • RasterGlyph

      public RasterGlyph()
    • RasterGlyph

      public RasterGlyph(MapPanel panel, RasterMap map)
  • Method Details

    • init

      protected void init()
      Description copied from class: MapGlyph
      called when the MapGlyph is made active. Any initialization should be performed here.
      Overrides:
      init in class MapGlyph
    • setInterpolate

      public void setInterpolate(boolean b)
    • getDefaultDataRecord

      public GlyphDataRecord getDefaultDataRecord()
      Description copied from class: MapGlyph
      Gets the DefaultDataRecord of the MapGlyph object

      Overrides:
      getDefaultDataRecord in class MapGlyph
      Returns:
      null unless overridden to return something else
    • fillMap

      public void fillMap(boolean load)
      Creates the image is the map is being loaded.
      Overrides:
      fillMap in class MapGlyph
      Parameters:
      load - true if _map is load it's data
    • getNoDataValue

      public double getNoDataValue()
      Specified by:
      getNoDataValue in interface ElevationGlyph
    • getElevation

      public double getElevation(WorldPt pt)
    • getMaximumElevation

      public double getMaximumElevation()
      Specified by:
      getMaximumElevation in interface ElevationGlyph
    • getMinimumElevation

      public double getMinimumElevation()
      Specified by:
      getMinimumElevation in interface ElevationGlyph
    • update

      public void update(Observable o, Object arg)
      Specified by:
      update in interface Observer
    • draw

      public void draw(Graphics g, MapScale scl)
      Description copied from class: MapGlyph
      draw this MapGlyph to graphics using the MapScale scl

      Specified by:
      draw in class MapGlyph
      Parameters:
      g - the Graphics to draw to
      scl - The current MapScale
    • imageUpdate

      public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height)
      Specified by:
      imageUpdate in interface ImageObserver
    • getElevationAt

      public float getElevationAt(int ix, int iy)
      get depth at a point. assume nodes have already been scaled for this viewport
      Specified by:
      getElevationAt in interface ElevationGlyph
    • drawElevationStats

      public void drawElevationStats(Graphics g, LocalRegion region)
      Compute and draw max min and average elevation for the given region
      Specified by:
      drawElevationStats in interface ElevationGlyph