com.esri.arcgis.geometry
Interface IGeometryBridge2

All Superinterfaces:
IGeometryBridge, Serializable
All Known Implementing Classes:
GeometryEnvironment

public interface IGeometryBridge2
extends IGeometryBridge, Serializable

Provides access to a set of generic methods that can be used in all languages supported.

Description

You can use the IGeometryBridge methods with any supported development languages: Java, C#, VB.Net, VB 6.0, C++, etc. The methods on the regular interfaces (IGeometryCollection, ISegmentCollection, IPointCollection, etc) are using C style arrays, which are not supported by some languages. The IGeometryBridge interface solves that problem allowing you to pass safe arrays instead.

Product Availability

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


Method Summary
 void addWKSPoints(IPointCollection4 pPointCollection, _WKSPoint[] pointStructures)
          Adds vertices to this Path, Ring, Polyline, or Polygon, or adds new points to this Multipoint, Triangles, TriangleFan, or TriangleStrip.
 void insertWKSPoints(IPointCollection4 pPointCollection, int index, _WKSPoint[] pointStructures)
          Inserts new vertices/points into this Path, Ring, Polyline, Polygon, Multipoint, Triangles, TriangleFan, TriangleStrip, or MultiPatch.
 void queryWKSPoints(IPointCollection4 pPointCollection, int index, _WKSPoint[][] pointStructures)
          Copies vertices'/points' coordinates to the array of point structures.
 void setWKSPoints(IPointCollection4 pPointCollection, _WKSPoint[] pointStructures)
          Replaces all vertices of this Path, Ring, Polyline, or Polygon with new ones, or replaces all points of this Multipoint, Triangles, TriangleFan, or TriangleStrip with new ones.
 IEnumSplitPoint splitAtDistances(IPolycurve2 polyCurve, double[] distances, boolean asRatios, boolean createParts)
          Introduces new vertices into this polyline at specified distances from the beginning of the polyline.
 void splitDivideLength(ISegment pSegment, double offset, double length, boolean asRatio, int[] numSplitSegments, ISegment[][] splitSegments)
          Divide segment into smaller segments of the specified length.
 
Methods inherited from interface com.esri.arcgis.geometry.IGeometryBridge
addGeometries, addPoints, addSegments, addWKSPointZs, constructBuffers, densify, getPoints, insertGeometries, insertPoints, insertSegments, insertWKSPointZs, queryBeginningRings, queryFollowingRings, queryGeometries, queryPoints, querySegments, queryWKSPointZs, replacePoints, replaceSegments, setGeometries, setPoints, setSegments, setWKSPointZs
 

Method Detail

addWKSPoints

void addWKSPoints(IPointCollection4 pPointCollection,
                  _WKSPoint[] pointStructures)
                  throws IOException,
                         AutomationException
Adds vertices to this Path, Ring, Polyline, or Polygon, or adds new points to this Multipoint, Triangles, TriangleFan, or TriangleStrip.

Product Availability

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

Parameters:
pPointCollection - A reference to a com.esri.arcgis.geometry.IPointCollection4 (in)
pointStructures - A Structure: com.esri.arcgis.system._WKSPoint (An array of com.esri.arcgis.system._WKSPoint COM typedef) (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setWKSPoints

void setWKSPoints(IPointCollection4 pPointCollection,
                  _WKSPoint[] pointStructures)
                  throws IOException,
                         AutomationException
Replaces all vertices of this Path, Ring, Polyline, or Polygon with new ones, or replaces all points of this Multipoint, Triangles, TriangleFan, or TriangleStrip with new ones.

Product Availability

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

Parameters:
pPointCollection - A reference to a com.esri.arcgis.geometry.IPointCollection4 (in)
pointStructures - A Structure: com.esri.arcgis.system._WKSPoint (An array of com.esri.arcgis.system._WKSPoint COM typedef) (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryWKSPoints

void queryWKSPoints(IPointCollection4 pPointCollection,
                    int index,
                    _WKSPoint[][] pointStructures)
                    throws IOException,
                           AutomationException
Copies vertices'/points' coordinates to the array of point structures.

Product Availability

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

Parameters:
pPointCollection - A reference to a com.esri.arcgis.geometry.IPointCollection4 (in)
index - The index (in)
pointStructures - A Structure: com.esri.arcgis.system._WKSPoint (An array of com.esri.arcgis.system._WKSPoint COM typedef) (in/out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

insertWKSPoints

void insertWKSPoints(IPointCollection4 pPointCollection,
                     int index,
                     _WKSPoint[] pointStructures)
                     throws IOException,
                            AutomationException
Inserts new vertices/points into this Path, Ring, Polyline, Polygon, Multipoint, Triangles, TriangleFan, TriangleStrip, or MultiPatch.

Product Availability

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

Parameters:
pPointCollection - A reference to a com.esri.arcgis.geometry.IPointCollection4 (in)
index - The index (in)
pointStructures - A Structure: com.esri.arcgis.system._WKSPoint (An array of com.esri.arcgis.system._WKSPoint COM typedef) (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

splitAtDistances

IEnumSplitPoint splitAtDistances(IPolycurve2 polyCurve,
                                 double[] distances,
                                 boolean asRatios,
                                 boolean createParts)
                                 throws IOException,
                                        AutomationException
Introduces new vertices into this polyline at specified distances from the beginning of the polyline.

Product Availability

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

Parameters:
polyCurve - A reference to a com.esri.arcgis.geometry.IPolycurve2 (in)
distances - The distances (in)
asRatios - The asRatios (in)
createParts - The createParts (in)
Returns:
A reference to a com.esri.arcgis.geometry.IEnumSplitPoint
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

splitDivideLength

void splitDivideLength(ISegment pSegment,
                       double offset,
                       double length,
                       boolean asRatio,
                       int[] numSplitSegments,
                       ISegment[][] splitSegments)
                       throws IOException,
                              AutomationException
Divide segment into smaller segments of the specified length.

Product Availability

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

Parameters:
pSegment - A reference to a com.esri.arcgis.geometry.ISegment (in)
offset - The offset (in)
length - The length (in)
asRatio - The asRatio (in)
numSplitSegments - The numSplitSegments (out: use single element array)
splitSegments - A reference to a com.esri.arcgis.geometry.ISegment array (in/out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.