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
FieldsFields inherited from class hec.map.WorldLine
_bounds, _coordAtPt, _length, _tmpSeg, LEFTBANK, pts, RIGHTBANK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreturn the first line segment in the pts vector.return the last line segment in the pts vector.getLineSegment(double c0, double c1) booleaninsertPt(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.booleanhec.map.WorldPtnewPt()booleanremovePt(hec.map.WorldPt wpt, double tol) voidsetLinePoint(double coord, hec.map.WorldPt wpt) reset the location of a point on the stream linevoidsetModified(boolean b) voidvalidate()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
-
Field Details
-
_modified
public boolean _modified
-
-
Constructor Details
-
StreamPolyLine
public StreamPolyLine()
-
-
Method Details
-
newPt
public hec.map.WorldPt newPt()- Overrides:
newPtin classhec.map.WorldLine3d
-
validate
public void validate() -
getLineSegment
-
setLinePoint
public void setLinePoint(double coord, hec.map.WorldPt wpt) Description copied from class:hec.map.WorldLinereset the location of a point on the stream line- Overrides:
setLinePointin classhec.map.WorldLine
-
removePt
public boolean removePt(hec.map.WorldPt wpt, double tol) - Overrides:
removePtin classhec.map.WorldLine
-
insertPt
public boolean insertPt(hec.map.WorldPt wpt, double tol) Description copied from class:hec.map.WorldLineif 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:
insertPtin classhec.map.WorldLine
-
setModified
public void setModified(boolean b) - Specified by:
setModifiedin interfacerma.lang.Modifiable
-
isModified
public boolean isModified()- Specified by:
isModifiedin interfacerma.lang.Modifiable
-
getFirstSegment
return the first line segment in the pts vector. This is the last downstream line segment.- Returns:
- the first line segment
-
getLastSegment
return the last line segment in the pts vector. This is the last upstream line segment.- Returns:
- the last line segment
-