com.esri.arcgis.geometry
Interface IHitTest3D

All Superinterfaces:
Serializable
All Known Implementing Classes:
Envelope, MultiPatch, Multipoint, Point, Polygon, Polyline

public interface IHitTest3D
extends Serializable

Provides access to members that locate a part of a geometry closest to a point.

Product Availability

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


Method Summary
 boolean hitTest3D(IPoint queryPoint, double searchRadius, int geometryPart, IPoint hitPoint, double[] hitDistance, int[] hitPartIndex, int[] hitSegmentIndex)
          Locates a part of a geometry closest to a query point.
 boolean hitTestCone(IRay pQueryRay, double minAngle, int geometryPart, IPoint pHitPoint, double[] pHitDistance, int[] pHitPartIndex, int[] pHitSegmentIndex)
          Locates a part of a geometry closest to a query ray.
 

Method Detail

hitTest3D

boolean hitTest3D(IPoint queryPoint,
                  double searchRadius,
                  int geometryPart,
                  IPoint hitPoint,
                  double[] hitDistance,
                  int[] hitPartIndex,
                  int[] hitSegmentIndex)
                  throws IOException,
                         AutomationException
Locates a part of a geometry closest to a query point. Any located part must be within searchRadius units from the query point.

Product Availability

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

Parameters:
queryPoint - A reference to a com.esri.arcgis.geometry.IPoint (in)
searchRadius - The searchRadius (in)
geometryPart - A com.esri.arcgis.geometry.esriGeometryHitPartType constant (in)
hitPoint - A reference to a com.esri.arcgis.geometry.IPoint (in)
hitDistance - The hitDistance (in/out: use single element array)
hitPartIndex - The hitPartIndex (in/out: use single element array)
hitSegmentIndex - The hitSegmentIndex (in/out: use single element array)
Returns:
The bHit
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

hitTestCone

boolean hitTestCone(IRay pQueryRay,
                    double minAngle,
                    int geometryPart,
                    IPoint pHitPoint,
                    double[] pHitDistance,
                    int[] pHitPartIndex,
                    int[] pHitSegmentIndex)
                    throws IOException,
                           AutomationException
Locates a part of a geometry closest to a query ray.

Product Availability

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

Parameters:
pQueryRay - A reference to a com.esri.arcgis.geometry.IRay (in)
minAngle - The minAngle (in)
geometryPart - A com.esri.arcgis.geometry.esriGeometryHitPartType constant (in)
pHitPoint - A reference to a com.esri.arcgis.geometry.IPoint (in)
pHitDistance - The pHitDistance (in/out: use single element array)
pHitPartIndex - The pHitPartIndex (in/out: use single element array)
pHitSegmentIndex - The pHitSegmentIndex (in/out: use single element array)
Returns:
The pbHit
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.