public class StreamPolyLine
extends hec.map.WorldLine3d
implements rma.lang.Modifiable
| Modifier and Type | Field and Description |
|---|---|
boolean |
_modified |
| Constructor and Description |
|---|
StreamPolyLine() |
| Modifier and Type | Method and Description |
|---|---|
StreamPolyLine |
getFirstSegment()
return the first line segment in the pts vector.
|
StreamPolyLine |
getLastSegment()
return the last line segment in the pts vector.
|
StreamPolyLine |
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 |
isModified() |
hec.map.WorldPt |
newPt() |
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 |
validate() |
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, toStringpublic hec.map.WorldPt newPt()
newPt in class hec.map.WorldLine3dpublic void validate()
public StreamPolyLine getLineSegment(double c0, double c1)
public void setLinePoint(double coord,
hec.map.WorldPt wpt)
hec.map.WorldLinesetLinePoint in class hec.map.WorldLinepublic boolean removePt(hec.map.WorldPt wpt,
double tol)
removePt in class hec.map.WorldLinepublic boolean insertPt(hec.map.WorldPt wpt,
double tol)
hec.map.WorldLineinsertPt in class hec.map.WorldLinepublic void setModified(boolean b)
setModified in interface rma.lang.Modifiablepublic boolean isModified()
isModified in interface rma.lang.Modifiablepublic StreamPolyLine getFirstSegment()
public StreamPolyLine getLastSegment()