Package hec.model

Class StreamPolyLine

All Implemented Interfaces:
AsciiSerializable, FieldAccessor, Serializable, Cloneable, Modifiable

public class StreamPolyLine extends WorldLine3d implements Modifiable
Stream coordinate Line.
See Also:
  • Field Details

    • _modified

      public boolean _modified
  • Constructor Details

    • StreamPolyLine

      public StreamPolyLine()
  • Method Details

    • newPt

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

      public void validate()
    • getLineSegment

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

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

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

      public boolean insertPt(WorldPt wpt, double tol)
      Description copied from class: 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 WorldLine
    • setModified

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

      public boolean isModified()
      Specified by:
      isModified in interface 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