com.esri.arcgis.analyst3d
Class IHit3DProxy

java.lang.Object
  extended bycom.esri.arcgis.interop.Dispatch
      extended bycom.esri.arcgis.analyst3d.IHit3DProxy
All Implemented Interfaces:
java.io.Externalizable, IHit3D, java.io.Serializable

public class IHit3DProxy
extends Dispatch
implements IHit3D, java.io.Serializable

Provides access to members that control information about a hit in 3D picking.

Product Availability

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

See Also:
Serialized Form

Field Summary
static java.lang.Class targetClass
           
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF
 
Constructor Summary
  IHit3DProxy()
          For internal use only
  IHit3DProxy(java.lang.Object obj)
           
protected IHit3DProxy(java.lang.Object obj, java.lang.String iid)
           
  IHit3DProxy(java.lang.String CLSID, java.lang.String host, AuthInfo authInfo)
           
protected IHit3DProxy(java.lang.String CLSID, java.lang.String iid, java.lang.String host, AuthInfo authInfo)
           
 
Method Summary
 void addListener(java.lang.String iidStr, java.lang.Object theListener, java.lang.Object theSource)
          Adds a Java object to be a listener for a specific kind of event generated by the COM object.
 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.
 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.
 boolean isExactHit()
          Indicates whether an exact hit.
 void removeListener(java.lang.String iidStr, java.lang.Object theListener)
          Removes a Java object as a listener to events generated by a COM object.
 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 com.esri.arcgis.interop.Dispatch
bindUsingMoniker, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, hashCode, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, queryInterface, readExternal, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

targetClass

public static final java.lang.Class targetClass
Constructor Detail

IHit3DProxy

public IHit3DProxy(java.lang.String CLSID,
                   java.lang.String host,
                   AuthInfo authInfo)
            throws java.net.UnknownHostException,
                   java.io.IOException

IHit3DProxy

public IHit3DProxy()
For internal use only


IHit3DProxy

public IHit3DProxy(java.lang.Object obj)
            throws java.io.IOException

IHit3DProxy

protected IHit3DProxy(java.lang.Object obj,
                      java.lang.String iid)
               throws java.io.IOException

IHit3DProxy

protected IHit3DProxy(java.lang.String CLSID,
                      java.lang.String iid,
                      java.lang.String host,
                      AuthInfo authInfo)
               throws java.io.IOException
Method Detail

addListener

public void addListener(java.lang.String iidStr,
                        java.lang.Object theListener,
                        java.lang.Object theSource)
                 throws java.io.IOException
Description copied from class: Dispatch
Adds a Java object to be a listener for a specific kind of event generated by the COM object. when you wish to invoke method on the COM object using IDispatch (not using custom marshalling).

Overrides:
addListener in class Dispatch
Parameters:
iidStr - the ID of the outgoing interface, implemented by the listener
theListener - the object to be informed of the events
theSource - the proxy class that represents the COM class that is the source of the events
Throws:
java.io.IOException

removeListener

public void removeListener(java.lang.String iidStr,
                           java.lang.Object theListener)
                    throws java.io.IOException
Description copied from class: Dispatch
Removes a Java object as a listener to events generated by a COM object. when you wish to invoke method on the COM object using IDispatch (not using custom marshalling).

Overrides:
removeListener in class Dispatch
Parameters:
iidStr - the ID of the outgoing interface, implemented by the listener
theListener - the object that no longer wishes to be informed of the events
Throws:
java.io.IOException

setPointByRef

public void setPointByRef(IPoint ppPoint)
                   throws java.io.IOException,
                          AutomationException
Description copied from interface: IHit3D
The location of the hit.

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

getPoint

public IPoint getPoint()
                throws java.io.IOException,
                       AutomationException
Description copied from interface: IHit3D
The location of the hit.

Supported Platforms

Windows, Solaris, Linux

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

setOwnerByRef

public void setOwnerByRef(java.lang.Object ppOwner)
                   throws java.io.IOException,
                          AutomationException
Description copied from interface: IHit3D
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
Description copied from interface: IHit3D
The owner (layer) that is hit.

Supported Platforms

Windows, Solaris, Linux

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

setObjectByRef

public void setObjectByRef(java.lang.Object ppObject)
                    throws java.io.IOException,
                           AutomationException
Description copied from interface: IHit3D
The object (feature) that is hit.

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

getObject

public java.lang.Object getObject()
                           throws java.io.IOException,
                                  AutomationException
Description copied from interface: IHit3D
The object (feature) that is hit.

Supported Platforms

Windows, Solaris, Linux

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
Description copied from interface: IHit3D
The 3D distance from the observer to the hit point.

Supported Platforms

Windows, Solaris, Linux

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
Description copied from interface: IHit3D
The 3D distance from the observer to the hit point.

Supported Platforms

Windows, Solaris, Linux

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
Description copied from interface: IHit3D
The 3D distance between the hit point and the picking ray.

Supported Platforms

Windows, Solaris, Linux

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
Description copied from interface: IHit3D
The 3D distance between the hit point and the picking ray.

Supported Platforms

Windows, Solaris, Linux

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

setDepthRange

public void setDepthRange(double dMin,
                          double dMax)
                   throws java.io.IOException,
                          AutomationException
Description copied from interface: IHit3D
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
Description copied from interface: IHit3D
Returns the depth range of the hit as reported by OpenGL.

Supported Platforms

Windows, Solaris, Linux

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
Description copied from interface: IHit3D
Indicates whether an exact hit.

Supported Platforms

Windows, Solaris, Linux

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
Description copied from interface: IHit3D
Indicates whether an exact hit.

Supported Platforms

Windows, Solaris, Linux

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