com.esri.arcgis.analyst3d
Class Hit3DSet

java.lang.Object
  extended by com.esri.arcgis.analyst3d.Hit3DSet
All Implemented Interfaces:
IHit3DSet, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class Hit3DSet
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IHit3DSet

The set of hits resulting from a 3D picking operation.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires 3D Analyst Extension.

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
Hit3DSet(Object obj)
          Construct a Hit3DSet using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
 IArray getHits()
          The array of hits.
 int hashCode()
          the hashcode for this object
 void onePerLayer()
          Reduces the hit set to have only one hit per layer.
 void setHitsByRef(IArray ppHits)
          The array of hits.
 void topmost(double factor)
          Reduces the hit set to topmost hits.
 
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

Hit3DSet

public Hit3DSet(Object obj)
         throws IOException
Construct a Hit3DSet using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to Hit3DSet.
Casting to this class from the return value of a method will not work, as this class represents an abstract class in ArcObjects.
*
Hit3DSet o = (Hit3DSet)obj; // will not work

Hit3DSet o = new Hit3DSet(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server

Throws:
IOException - if there are interop problems Hit3DSet theHit3DSet = (Hit3DSet) obj;
Method Detail

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

setHitsByRef

public void setHitsByRef(IArray ppHits)
                  throws IOException,
                         AutomationException
The array of hits.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires 3D Analyst Extension.

Specified by:
setHitsByRef in interface IHit3DSet
Parameters:
ppHits - A reference to a com.esri.arcgis.system.IArray (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getHits

public IArray getHits()
               throws IOException,
                      AutomationException
The array of hits.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires 3D Analyst Extension.

Supported Platforms

Windows, Solaris, Linux

Specified by:
getHits in interface IHit3DSet
Returns:
A reference to a com.esri.arcgis.system.IArray
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

topmost

public void topmost(double factor)
             throws IOException,
                    AutomationException
Reduces the hit set to topmost hits.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires 3D Analyst Extension.

Supported Platforms

Windows, Solaris, Linux

Specified by:
topmost in interface IHit3DSet
Parameters:
factor - The factor (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

onePerLayer

public void onePerLayer()
                 throws IOException,
                        AutomationException
Reduces the hit set to have only one hit per layer.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires 3D Analyst Extension.

Supported Platforms

Windows, Solaris, Linux

Specified by:
onePerLayer in interface IHit3DSet
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.