Package hec.model

Class StreamPolyLine

java.lang.Object
hec.map.WorldLine
hec.map.WorldLine3d
hec.model.StreamPolyLine
All Implemented Interfaces:
AsciiSerializable, FieldAccessor, Serializable, Cloneable, rma.lang.Modifiable

public class StreamPolyLine extends hec.map.WorldLine3d implements rma.lang.Modifiable
Stream coordinate Line.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    boolean
     

    Fields inherited from class hec.map.WorldLine

    _bounds, _coordAtPt, _length, _tmpSeg, LEFTBANK, pts, RIGHTBANK
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    return the first line segment in the pts vector.
    return the last line segment in the pts vector.
    getLineSegment(double c0, double c1)
     
    boolean
    insertPt(hec.map.WorldPt wpt, double tol)
    if the given point is within the given tolerance of the line, a new point is inserted at the location on the line nearest the given point.
    boolean
     
    hec.map.WorldPt
     
    boolean
    removePt(hec.map.WorldPt wpt, double tol)
     
    void
    setLinePoint(double coord, hec.map.WorldPt wpt)
    reset the location of a point on the stream line
    void
    setModified(boolean b)
     
    void
     

    Methods inherited from class hec.map.WorldLine

    add, clone, createOffsetLine, equals, equals, getBounds, getCenterPt, getCoordAtLocation, getFieldObject, getFirstPt, getLastPt, getLength, getLocalArrays, getLocalArrays2d, getLocalRegionArrays, getLocalRegionArrays, getLocalRegionArrays, getLocationByCoord, getNearestLocation, getNearestLocationSigned, getPtIndexBeforeCoord, getPtIndexNearCoord, getSlopeAtCoord, intersects, intersects, invalidate, isEmpty, nearPt, parseString, removePtsAfter, reverseDirection, setFieldObject, toString

    Methods inherited from class java.lang.Object

    finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • _modified

      public boolean _modified
  • Constructor Details

    • StreamPolyLine

      public StreamPolyLine()
  • Method Details

    • newPt

      public hec.map.WorldPt newPt()
      Overrides:
      newPt in class hec.map.WorldLine3d
    • validate

      public void validate()
    • getLineSegment

      public StreamPolyLine getLineSegment(double c0, double c1)
    • setLinePoint

      public void setLinePoint(double coord, hec.map.WorldPt wpt)
      Description copied from class: hec.map.WorldLine
      reset the location of a point on the stream line
      Overrides:
      setLinePoint in class hec.map.WorldLine
    • removePt

      public boolean removePt(hec.map.WorldPt wpt, double tol)
      Overrides:
      removePt in class hec.map.WorldLine
    • insertPt

      public boolean insertPt(hec.map.WorldPt wpt, double tol)
      Description copied from class: hec.map.WorldLine
      if the given point is within the given tolerance of the line, a new point is inserted at the location on the line nearest the given point.
      Overrides:
      insertPt in class hec.map.WorldLine
    • setModified

      public void setModified(boolean b)
      Specified by:
      setModified in interface rma.lang.Modifiable
    • isModified

      public boolean isModified()
      Specified by:
      isModified in interface rma.lang.Modifiable
    • getFirstSegment

      public StreamPolyLine getFirstSegment()
      return the first line segment in the pts vector. This is the last downstream line segment.
      Returns:
      the first line segment
    • getLastSegment

      public StreamPolyLine getLastSegment()
      return the last line segment in the pts vector. This is the last upstream line segment.
      Returns:
      the last line segment