com.esri.arcgis.geometry
Class IEnumCurve2Proxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.geometry.IEnumCurveProxy
          extended by com.esri.arcgis.geometry.IEnumCurve2Proxy
All Implemented Interfaces:
IEnumCurve, IEnumCurve2, Externalizable, Serializable

public class IEnumCurve2Proxy
extends IEnumCurveProxy
implements IEnumCurve2, Serializable

Provides access to members that extend IEnumCurve.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also:
Serialized Form

Field Summary
 boolean noncastable
           
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef
 
Constructor Summary
  IEnumCurve2Proxy()
           
  IEnumCurve2Proxy(Object obj)
           
protected IEnumCurve2Proxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 void queryPoint(double fromDistance, boolean asRatio, IPoint pointOnCurve)
          Copies a location on this curve into pointOnCurve.
 void querySubcurve(double fromDistance, double toDistance, boolean asRatio, ICurve subcurve)
          Copies a portion of this curve into an existing subcurve.
 void removeListener(String iidStr, Object theListener)
           
 
Methods inherited from class com.esri.arcgis.geometry.IEnumCurveProxy
esri_clone, getCurveDistance, getPartIndex, getSegment, getSegmentDistance, getSegmentIndex, getStopOptions, getStopReason, getSubcurve, next, reset, setStopOptions
 
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
 
Methods inherited from interface com.esri.arcgis.geometry.IEnumCurve
esri_clone, getCurveDistance, getPartIndex, getSegment, getSegmentDistance, getSegmentIndex, getStopOptions, getStopReason, getSubcurve, next, reset, setStopOptions
 

Field Detail

noncastable

public boolean noncastable
Constructor Detail

IEnumCurve2Proxy

public IEnumCurve2Proxy()

IEnumCurve2Proxy

public IEnumCurve2Proxy(Object obj)
                 throws IOException
Throws:
IOException

IEnumCurve2Proxy

protected IEnumCurve2Proxy(Object obj,
                           String iid)
                    throws IOException
Throws:
IOException
Method Detail

addListener

public void addListener(String iidStr,
                        Object theListener,
                        Object theSource)
                 throws IOException
Overrides:
addListener in class IEnumCurveProxy
Throws:
IOException

removeListener

public void removeListener(String iidStr,
                           Object theListener)
                    throws IOException
Overrides:
removeListener in class IEnumCurveProxy
Throws:
IOException

querySubcurve

public void querySubcurve(double fromDistance,
                          double toDistance,
                          boolean asRatio,
                          ICurve subcurve)
                   throws IOException,
                          AutomationException
Copies a portion of this curve into an existing subcurve. AsRatio is true when fromDistance and toDistance are normalized to the interval [0..1].

Description

The QuerySubCurve method returns a polyline object corresponding to a portion of the input curve.

Remarks

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).

subcurve: Output polyline object. It contains the output subcurve.

Note: The output geometry must be co-created prior to the query. The output geometry is not co-created by the method; it is populated. This can be used in performance critical situations. For example, creating the geometry only once outside a loop and use the query method could improve performance.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
querySubcurve in interface IEnumCurve2
Parameters:
fromDistance - The fromDistance (in)
toDistance - The toDistance (in)
asRatio - The asRatio (in)
subcurve - A reference to a com.esri.arcgis.geometry.ICurve (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryPoint

public void queryPoint(double fromDistance,
                       boolean asRatio,
                       IPoint pointOnCurve)
                throws IOException,
                       AutomationException
Copies a location on this curve into pointOnCurve. AsRatio is true when fromDistance is normalized to the interval [0..1].

Description

The QueryPoint method returns a point object located on the input curve at the fromDistance calculated along the curve. This method can be used to quickly retrieve a large sequence of evenly or unevenly spaced points along a curve. This could be used to place symbols along a curve, for example railroads.

Remarks

Note: Gaps between parts are ignored in distance computations.

Parameters description:

fromDistance: Input Double. Input distance that determines where along the point should be created. 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).

Note: The output geometry must be co-created prior to the query. The output geometry is not co-created by the method; it is populated. This can be used in performance critical situations. For example, creating the geometry only once outside a loop and use the query method could improve performance.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Specified by:
queryPoint in interface IEnumCurve2
Parameters:
fromDistance - The fromDistance (in)
asRatio - The asRatio (in)
pointOnCurve - A reference to a com.esri.arcgis.geometry.IPoint (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.