com.esri.arcgis.geometry
Class LinePolygonHelper

java.lang.Object
  extended by com.esri.arcgis.geometry.LinePolygonHelper
All Implemented Interfaces:
ILinePolygonHelper, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class LinePolygonHelper
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, ILinePolygonHelper

Helper class for processing of polygons consisting of rings formed from linear segments

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
LinePolygonHelper()
          Constructs a LinePolygonHelper using ArcGIS Engine.
LinePolygonHelper(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
LinePolygonHelper theLinePolygonHelper = (LinePolygonHelper) obj;
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 int hashCode()
          the hashcode for this object
 boolean triangulate(IPolygon pPolygon, IMultiPatch[] ppMultiPatch)
          Triangulates polygon.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef
getJintegraDispatch, release
 

Constructor Detail

LinePolygonHelper

public LinePolygonHelper()
                  throws IOException,
                         UnknownHostException
Constructs a LinePolygonHelper using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

LinePolygonHelper

public LinePolygonHelper(Object obj)
                  throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
LinePolygonHelper theLinePolygonHelper = (LinePolygonHelper) obj;

Construct a LinePolygonHelper using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to LinePolygonHelper.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems
Method Detail

getClsid

public static String getClsid()
getClsid.


equals

public boolean equals(Object o)
Compare this object with another

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

triangulate

public boolean triangulate(IPolygon pPolygon,
                           IMultiPatch[] ppMultiPatch)
                    throws IOException,
                           AutomationException
Triangulates polygon. Non-linear curves are not allowed in the polygon rings. Accepts non-simple polygons also.

Description

Converts the interior of a Polygon into a bag of triangles, and then populates the specified MultiPatch with these triangles.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
triangulate in interface ILinePolygonHelper
Parameters:
pPolygon - A reference to a com.esri.arcgis.geometry.IPolygon (in)
ppMultiPatch - A reference to a com.esri.arcgis.geometry.IMultiPatch (in/out: use single element array)
Returns:
The pbOK
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.