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


ISceneGraph.Locate Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (3DAnalyst)  

ISceneGraph.Locate Method

Locates a single object.

[Visual Basic .NET]
Public Sub Locate ( _
    ByVal pViewer As ISceneViewer, _
    ByVal x As Integer, _
    ByVal y As Integer, _
    ByVal mode As esriScenePickMode, _
    ByVal bGetTransformed As Boolean, _
    ByRef ppPt As IPoint, _
    ByRef ppOwner As Object, _
    ByRef ppObject As Object _
)
[C#]
public void Locate (
    ISceneViewer pViewer,
    int x,
    int y,
    esriScenePickMode mode,
    bool bGetTransformed,
    ref IPoint ppPt,
    ref object ppOwner,
    ref object ppObject
);
[C++]
HRESULT Locate(
  ISceneViewer* pViewer,
  long x,
  long y,
  esriScenePickMode mode,
  VARIANT_BOOL bGetTransformed,
  IPoint** ppPt,
  IUnknown Pointer* ppOwner,
  IUnknown Pointer* ppObject
);
[C++]

Parameters pViewer [in]
pViewer is a parameter of type ISceneViewer* x [in]
x is a parameter of type long y [in]
y is a parameter of type long mode [in]
mode is a parameter of type esriScenePickMode bGetTransformed [in]
bGetTransformed is a parameter of type bool ppPt [out]
ppPt is a parameter of type IPoint** 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. Requires 3D Analyst Extension.

See Also

ISceneGraph Interface

.NET Samples

Custom scene navigation commands (Code Files: Fly)