|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IEnumCurve
Provides access to members that allow efficient construction of sequential subcurves along a polyline or polygon.
Method Summary | |
---|---|
IEnumCurve |
esri_clone()
Returns a copy of this enumerator positioned at the same segment. |
double |
getCurveDistance()
The current distance from the start of the curve. |
int |
getPartIndex()
The current part index. |
ISegment |
getSegment()
The segment covering the current distance of this curve iterator. |
double |
getSegmentDistance()
The distance within the current segment of the current distance of this curve iterator. |
int |
getSegmentIndex()
The current segment index within the current part. |
int |
getStopOptions()
Stop options for the distance iterator. |
int |
getStopReason()
The reason for the current position of the distance iterator. |
ICurve |
getSubcurve(double fromDistance,
double toDistance,
boolean asRatio)
Extracts a portion of this curve into a new curve. |
void |
next(double distance)
Moves iterator to a specified distance along the curve. |
void |
reset()
Resets the iterator to the start of the curve. |
void |
setStopOptions(int stopOptions)
Stop options for the distance iterator. |
Method Detail |
---|
IEnumCurve esri_clone() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void reset() throws IOException, AutomationException
Returns the distance iterator to the beginning of the enumerated curve. The distance along the curve is returned to the zero distance.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void next(double distance) throws IOException, AutomationException
Advances the distance iterator to a specified distance along the enumerated curve.
Note: Gaps between parts are ignored in distance computations.
distance
- The distance (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ISegment getSegment() throws IOException, AutomationException
Returns the segment at the current distance along the enumerated curve referenced by the distance iterator.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getSegmentDistance() throws IOException, AutomationException
Returns the distance from the From Point of the current Segment to the location of the distance iterator.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.double getCurveDistance() throws IOException, AutomationException
Returns the distance from the start of the curve to the current location of the distance iterator.
Note: Gaps between parts are ignored in distance computations.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getPartIndex() throws IOException, AutomationException
Returns the Part Index of the part referenced by the current location of the distance iterator.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getSegmentIndex() throws IOException, AutomationException
Returns the index of the Segment referenced by the current location of the distance iterator. The Segment Index is relative to the Part to which the segment belongs.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getStopReason() throws IOException, AutomationException
Returns an esriCurveIteratorEnum that describes the reason for the current location of the distance iterator.
Note: The StopReason returns value different than esriCurveIteratorNoStop only if the enumerator wasn't explicitly set to the end points of a part. For example, setting the enumerator to a distance of zero will not return esriCurveIteratorStopAtPartFrom even if that option was set with the StopOptions property.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setStopOptions(int stopOptions) throws IOException, AutomationException
stopOptions
- A com.esri.arcgis.geometry.esriCurveIteratorEnum constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getStopOptions() throws IOException, AutomationException
Returns and sets the current esriCurveIteratorEnum stop conditions for the distance iterator.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ICurve getSubcurve(double fromDistance, double toDistance, boolean asRatio) throws IOException, AutomationException
The GetSubCurve method returns a polyline or path object corresponding to a portion of the input curve. If the ISegmentCollection points to a IPolyline or a IPolygon then the output is of type IPolyline, otherwise the output is of type IPath.
Note: Gaps between parts are ignored in distance computations.
Parameters description:
fromDistance: Input Double. Input distance that determines where the subcurve should start. The value of that parameter should be in map unit unless asRatio is true.
toDistance: Input Double. Input distance that determines where the subcurve should stop. The value of that parameter should be in map unit unless asRatio is true.
asRatio: Input Boolean. The asRatio determines if the input distances should be interpreted as map unit asRatio = false distance or parametric distance asRatio = True (0 = distance of 0, 1 = full length of the curve).
fromDistance
- The fromDistance (in)toDistance
- The toDistance (in)asRatio
- The asRatio (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |