|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.interop.Dispatch com.esri.arcgis.geometry.IEnumCurveProxy
public class IEnumCurveProxy
Provides access to members that allow efficient construction of sequential subcurves along a polyline or polygon.
Field Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
IEnumCurveProxy()
|
|
IEnumCurveProxy(Object obj)
|
protected |
IEnumCurveProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
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 |
removeListener(String iidStr,
Object theListener)
|
void |
reset()
Resets the iterator to the start of the curve. |
void |
setStopOptions(int stopOptions)
Stop options for the distance iterator. |
Methods inherited from class com.esri.arcgis.interop.Dispatch |
---|
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public boolean noncastable
Constructor Detail |
---|
public IEnumCurveProxy()
public IEnumCurveProxy(Object obj) throws IOException
IOException
protected IEnumCurveProxy(Object obj, String iid) throws IOException
IOException
Method Detail |
---|
public void addListener(String iidStr, Object theListener, Object theSource) throws IOException
addListener
in class com.esri.arcgis.interop.Dispatch
IOException
public void removeListener(String iidStr, Object theListener) throws IOException
removeListener
in class com.esri.arcgis.interop.Dispatch
IOException
public IEnumCurve esri_clone() throws IOException, AutomationException
esri_clone
in interface IEnumCurve
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
reset
in interface IEnumCurve
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
next
in interface IEnumCurve
distance
- The distance (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ISegment getSegment() throws IOException, AutomationException
Returns the segment at the current distance along the enumerated curve referenced by the distance iterator.
getSegment
in interface IEnumCurve
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getSegmentDistance() throws IOException, AutomationException
Returns the distance from the From Point of the current Segment to the location of the distance iterator.
getSegmentDistance
in interface IEnumCurve
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getCurveDistance
in interface IEnumCurve
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getPartIndex() throws IOException, AutomationException
Returns the Part Index of the part referenced by the current location of the distance iterator.
getPartIndex
in interface IEnumCurve
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getSegmentIndex
in interface IEnumCurve
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
getStopReason
in interface IEnumCurve
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setStopOptions(int stopOptions) throws IOException, AutomationException
setStopOptions
in interface IEnumCurve
stopOptions
- A com.esri.arcgis.geometry.esriCurveIteratorEnum constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getStopOptions() throws IOException, AutomationException
Returns and sets the current esriCurveIteratorEnum stop conditions for the distance iterator.
getStopOptions
in interface IEnumCurve
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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).
getSubcurve
in interface IEnumCurve
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 |