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


IGlobeViewUtil.WindowToGeographic Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > GlobeCore > ESRI.ArcGIS.GlobeCore > Interfaces > IG > IGlobeViewUtil Interface > IGlobeViewUtil.WindowToGeographic Method
ArcGIS Developer Help

IGlobeViewUtil.WindowToGeographic Method

Get the geographic coordinates in the line of sight defined by the window coordinates.

[Visual Basic .NET]
Public Sub WindowToGeographic ( _
    ByVal pDisplay As IGlobeDisplay, _
    ByVal pViewer As ISceneViewer, _
    ByVal winX As Integer, _
    ByVal winY As Integer, _
    ByVal bUseZBufferValue As Boolean, _
    ByRef pLon As Double, _
    ByRef pLat As Double, _
    ByRef pAlt As Double _
)
[C#]
public void WindowToGeographic (
    IGlobeDisplay pDisplay,
    ISceneViewer pViewer,
    int winX,
    int winY,
    bool bUseZBufferValue,
    ref double pLon,
    ref double pLat,
    ref double pAlt
);
[C++]
HRESULT WindowToGeographic(
  IGlobeDisplay* pDisplay,
  ISceneViewer* pViewer,
  Long winX,
  Long winY,
  VARIANT_BOOL bUseZBufferValue,
  System.Double* pLon,
  System.Double* pLat,
  System.Double* pAlt
);
[C++]
Parameters
pDisplay [in]

pDisplay is a parameter of type IGlobeDisplay* pViewer [in]
pViewer is a parameter of type ISceneViewer* winX [in]
winX is a parameter of type int winY [in]
winY is a parameter of type int bUseZBufferValue [in]
bUseZBufferValue is a parameter of type bool pLon [out]
pLon is a parameter of type double* pLat [out]
pLat is a parameter of type double* pAlt [out]
pAlt is a parameter of type double*

Product Availability

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

See Also

IGlobeViewUtil Interface

.NET Samples

Creating a toolbar of globe tools