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) boolean
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
newPt()
boolean
void
setLinePoint
(double coord, WorldPt wpt) reset the location of a point on the stream linevoid
setModified
(boolean b) void
validate()
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:
newPt
in classWorldLine3d
-
validate
public void validate() -
getLineSegment
-
setLinePoint
Description copied from class:WorldLine
reset the location of a point on the stream line- Overrides:
setLinePoint
in classWorldLine
-
removePt
-
insertPt
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. -
setModified
public void setModified(boolean b) - Specified by:
setModified
in interfaceModifiable
-
isModified
public boolean isModified()- Specified by:
isModified
in 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
-