com.esri.arcgis.analyst3d
Class Hit3D

java.lang.Object
  extended by com.esri.arcgis.analyst3d.Hit3D
All Implemented Interfaces:
IHit3D, com.esri.arcgis.interop.RemoteObjRef, java.io.Serializable

public class Hit3D
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IHit3D

COM Class 'Hit3D'. Generated 3/19/2015 1:20:41 PM from 'C:\ArcGIS\COM\esri3DAnalyst.olb'

Description 'A container for information regarding a hit in 3D picking.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.analyst3d.IHit3D
IID, IIDf7873924_9a19_11d4_b270_00508bcdde28, xxDummy
 
Constructor Summary
Hit3D(java.lang.Object obj)
          Construct a Hit3D 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
 void getDepthRange(double[] pDMin, double[] pDMax)
          Returns the depth range of the hit as reported by OpenGL.
 double getDistanceToObserver()
          The 3D distance from the observer to the hit point.
 double getDistanceToRay()
          The 3D distance between the hit point and the picking ray.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 java.lang.Object getObject()
          The object (feature) that is hit.
 java.lang.Object getOwner()
          The owner (layer) that is hit.
 IPoint getPoint()
          The location of the hit.
 int hashCode()
          the hashcode for this object
 boolean isExactHit()
          Indicates whether an exact hit.
 void release()
          Release a Hit3D.
 void setDepthRange(double dMin, double dMax)
          Sets the depth range of the hit as reported by OpenGL.
 void setDistanceToObserver(double pDistanceToObs)
          The 3D distance from the observer to the hit point.
 void setDistanceToRay(double pDistanceToRay)
          The 3D distance between the hit point and the picking ray.
 void setExactHit(boolean hit)
          Indicates whether an exact hit.
 void setObjectByRef(java.lang.Object ppObject)
          The object (feature) that is hit.
 void setOwnerByRef(java.lang.Object ppOwner)
          The owner (layer) that is hit.
 void setPointByRef(IPoint ppPoint)
          The location of the hit.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Hit3D

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

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

Throws:
java.io.IOException - if there are interop problems Hit3D theHit3D = (Hit3D) obj;
Method Detail

equals

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

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a Hit3D.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

setPointByRef

public void setPointByRef(IPoint ppPoint)
                   throws java.io.IOException,
                          AutomationException
The location of the hit.

Specified by:
setPointByRef in interface IHit3D
Parameters:
ppPoint - A reference to a com.esri.arcgis.geometry.IPoint (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getPoint

public IPoint getPoint()
                throws java.io.IOException,
                       AutomationException
The location of the hit.

Specified by:
getPoint in interface IHit3D
Returns:
A reference to a com.esri.arcgis.geometry.IPoint
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setOwnerByRef

public void setOwnerByRef(java.lang.Object ppOwner)
                   throws java.io.IOException,
                          AutomationException
The owner (layer) that is hit.

Specified by:
setOwnerByRef in interface IHit3D
Parameters:
ppOwner - A reference to another Object (IUnknown) (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getOwner

public java.lang.Object getOwner()
                          throws java.io.IOException,
                                 AutomationException
The owner (layer) that is hit.

Specified by:
getOwner in interface IHit3D
Returns:
A reference to another Object (IUnknown)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setObjectByRef

public void setObjectByRef(java.lang.Object ppObject)
                    throws java.io.IOException,
                           AutomationException
The object (feature) that is hit.

Specified by:
setObjectByRef in interface IHit3D
Parameters:
ppObject - A reference to another Object (IUnknown) (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getObject

public java.lang.Object getObject()
                           throws java.io.IOException,
                                  AutomationException
The object (feature) that is hit.

Specified by:
getObject in interface IHit3D
Returns:
A reference to another Object (IUnknown)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setDistanceToObserver

public void setDistanceToObserver(double pDistanceToObs)
                           throws java.io.IOException,
                                  AutomationException
The 3D distance from the observer to the hit point.

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

getDistanceToObserver

public double getDistanceToObserver()
                             throws java.io.IOException,
                                    AutomationException
The 3D distance from the observer to the hit point.

Specified by:
getDistanceToObserver in interface IHit3D
Returns:
The pDistanceToObs
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setDistanceToRay

public void setDistanceToRay(double pDistanceToRay)
                      throws java.io.IOException,
                             AutomationException
The 3D distance between the hit point and the picking ray.

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

getDistanceToRay

public double getDistanceToRay()
                        throws java.io.IOException,
                               AutomationException
The 3D distance between the hit point and the picking ray.

Specified by:
getDistanceToRay in interface IHit3D
Returns:
The pDistanceToRay
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setDepthRange

public void setDepthRange(double dMin,
                          double dMax)
                   throws java.io.IOException,
                          AutomationException
Sets the depth range of the hit as reported by OpenGL.

Specified by:
setDepthRange in interface IHit3D
Parameters:
dMin - The dMin (in)
dMax - The dMax (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDepthRange

public void getDepthRange(double[] pDMin,
                          double[] pDMax)
                   throws java.io.IOException,
                          AutomationException
Returns the depth range of the hit as reported by OpenGL.

Specified by:
getDepthRange in interface IHit3D
Parameters:
pDMin - The pDMin (out: use single element array)
pDMax - The pDMax (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setExactHit

public void setExactHit(boolean hit)
                 throws java.io.IOException,
                        AutomationException
Indicates whether an exact hit.

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

isExactHit

public boolean isExactHit()
                   throws java.io.IOException,
                          AutomationException
Indicates whether an exact hit.

Specified by:
isExactHit in interface IHit3D
Returns:
The hit
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.