com.esri.arcgis.geometry
Interface IConstructPath

All Superinterfaces:
Serializable
All Known Implementing Classes:
Path, Ring

public interface IConstructPath
extends Serializable

Provides access to members that construct a path using other geometries and measures.

Product Availability

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


Method Summary
 void constructRigidStretch(IPath srcPath, int stretchStartIndex, int startAnchor, int endAnchor, IPoint stretchEnd)
          Constructs a scaled, rotated version of srcPath.
 

Method Detail

constructRigidStretch

void constructRigidStretch(IPath srcPath,
                           int stretchStartIndex,
                           int startAnchor,
                           int endAnchor,
                           IPoint stretchEnd)
                           throws IOException,
                                  AutomationException
Constructs a scaled, rotated version of srcPath. The point at stretchStartIndex will end up at stretchEnd. The points at startAnchor and endAnchor will remain unchanged. Others will be scaled and rotate proportionately.

Description

For an existing Path, the ConstructRigidStretch method can be used to rotate and scale the shape of a Path, or just a section of the Path, to a certain point. This method is ideal for use in interactive rubber-sheeting operations. ArcMap, for example, makes use of this method in the ‘Stretch geometry proportionally when moving a vertex’ option.

Remarks

Parameters description:

srcPath: Input IPath object. The path to be stretched.
stretchStartIndex: Input Long that represents the index of the origin point on the path to be stretched.
startAnchor: Input Long that represents the start anchor. Typically 0 to represent the first point on the path.
endAnchor: Input Long that represents the end anchor. Typically pointcount-1 to represent the last point on the path.
stretchEnd: Input IPoint object. The destination point where the strecthStartIndex point will be moved.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
srcPath - A reference to a com.esri.arcgis.geometry.IPath (in)
stretchStartIndex - The stretchStartIndex (in)
startAnchor - The startAnchor (in)
endAnchor - The endAnchor (in)
stretchEnd - 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.