ArcObjects Library Reference (GlobeCore)  

IGlobeDisplay.LocateFeature Method

Find the object and location in the line of sight.

[Visual Basic .NET]
Public Sub LocateFeature ( _
    ByVal pViewer As ISceneViewer, _
    ByVal xView As Integer, _
    ByVal yView As Integer, _
    ByRef ppOwner As Object, _
    ByRef ppObject As Object _
)
[C#]
public void LocateFeature (
    ISceneViewer pViewer,
    int xView,
    int yView,
    ref object ppOwner,
    ref object ppObject
);
[C++]
HRESULT LocateFeature(
  ISceneViewer* pViewer,
  long xView,
  long yView,
  LPUNKNOWN* ppOwner,
  LPUNKNOWN* ppObject
);
[C++]

Parameters

pViewer [in]

  pViewer is a parameter of type ISceneViewer

xView [in]   xView is a parameter of type long yView [in]   yView is a parameter of type long ppOwner [out]   ppOwner is a parameter of type LPUNKNOWN ppObject [out]   ppObject is a parameter of type LPUNKNOWN

Product Availability

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

Description

This method returns a hit to the closest feature (ppObject), hit by the line of sight from the observer location in the window coordinates xView, yView in the viewer, pViewer.

ppOwner is the layer hit.

See Also

IGlobeDisplay Interface