This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > GlobeCore > ESRI.ArcGIS.GlobeCore > Interfaces > IG > IGlobeDisplay Interface > IGlobeDisplay.LocateFeature Method (ArcObjects .NET 10.5 SDK) |
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
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.