Package hec.model
Class StreamPolyLine
java.lang.Object
hec.map.WorldLine
hec.map.WorldLine3d
hec.model.StreamPolyLine
- All Implemented Interfaces:
AsciiSerializable,FieldAccessor,Serializable,Cloneable,Modifiable
Stream coordinate Line.
- See Also:
-
Field Summary
Fields -
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) booleanif 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.booleannewPt()booleanvoidsetLinePoint(double coord, 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
- Overrides:
newPtin classWorldLine3d
-
validate
public void validate() -
getLineSegment
-
setLinePoint
Description copied from class:WorldLinereset the location of a point on the stream line- Overrides:
setLinePointin classWorldLine
-
removePt
-
insertPt
Description copied from class: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. -
setModified
public void setModified(boolean b) - Specified by:
setModifiedin interfaceModifiable
-
isModified
public boolean isModified()- Specified by:
isModifiedin interfaceModifiable
-
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
-