This document is archived and information here might be outdated.  Recommended version.


IGlobeDisplay.LocateFeature Method (ArcObjects .NET 10.6 SDK)
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,
  IUnknown Pointer* ppOwner,
  IUnknown Pointer* 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 IUnknown* ppObject [out]
ppObject is a parameter of type IUnknown*

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