com.esri.arcgis.analyst3d
Class Hit3DSet

java.lang.Object
  extended bycom.esri.arcgis.analyst3d.Hit3DSet
All Implemented Interfaces:
IHit3DSet, java.io.Serializable

public class Hit3DSet
extends java.lang.Object
implements 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(java.lang.Object obj)
          Construct a Hit3DSet using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compare this object with another
 IHit3DSet getAsIHit3DSet()
          Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.
 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
 

Constructor Detail

Hit3DSet

public Hit3DSet(java.lang.Object obj)
         throws java.io.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 Hit3DSet theHit3DSet = (Hit3DSet) obj;

Throws:
java.io.IOException - if there are interop problems
Method Detail

getAsIHit3DSet

public IHit3DSet getAsIHit3DSet()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed.


equals

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


hashCode

public int hashCode()
the hashcode for this object


setHitsByRef

public void setHitsByRef(IArray ppHits)
                  throws java.io.IOException,
                         AutomationException
Description copied from interface: IHit3DSet
The array of hits.

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

getHits

public IArray getHits()
               throws java.io.IOException,
                      AutomationException
Description copied from interface: IHit3DSet
The array of hits.

Supported Platforms

Windows, Solaris, Linux

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

topmost

public void topmost(double factor)
             throws java.io.IOException,
                    AutomationException
Description copied from interface: IHit3DSet
Reduces the hit set to topmost hits.

Supported Platforms

Windows, Solaris, Linux

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

onePerLayer

public void onePerLayer()
                 throws java.io.IOException,
                        AutomationException
Description copied from interface: IHit3DSet
Reduces the hit set to have only one hit per layer.

Supported Platforms

Windows, Solaris, Linux

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