Class NetTinGlyph

java.lang.Object
hec.map.MapGlyph
hec.map.nettin.NetTinGlyph
All Implemented Interfaces:
ElevationGlyph, Comparable<MapGlyph>

public class NetTinGlyph extends MapGlyph implements ElevationGlyph
  • Field Details

  • Constructor Details

    • NetTinGlyph

      public NetTinGlyph()
    • NetTinGlyph

      public NetTinGlyph(MapPanel panel, NetTinMap map)
  • Method Details

    • fillMap

      public void fillMap(boolean shown)
      Description copied from class: MapGlyph
      have the _map load or unload its data.

      Overrides:
      fillMap in class MapGlyph
      Parameters:
      shown - true if _map is load it's data
    • getMaximumElevation

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

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

      protected void scaleNodes(MapScale scl)
    • 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
    • aspectShadeElevation

      protected void aspectShadeElevation(Graphics g, MapScale scl, ColorContour cc)
      aspect shading only
    • contourElevation

      protected void contourElevation(Graphics g, MapScale scl, ColorContour cc)
      do color contouring for each triangle in tin
    • contourTriangle

      protected void contourTriangle(Graphics g, LocalPt[] lpt, double[] val, double[] conval, int ncon, double cmin, double cmax, ColorContour cc, double lafc)
    • computeShading

      protected void computeShading(boolean aspectEnabled, double aspectAngle)
    • getNoDataValue

      public double getNoDataValue()
      Specified by:
      getNoDataValue in interface ElevationGlyph
    • 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
    • cropToViewPort

      public void cropToViewPort()
      temp(?) method to crop a tin to the current viewport
    • 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
    • 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