STK XSend comments on this topic.
AgPickInfoData Object

Description

Single mouse pick result.

Public Properties

Public Property AltAltitude of point clicked (if available).
Public Property IsLatLonAltValidIndicate if the Lat/Lon/Alt properties are valid.
Public Property IsObjPathValidIndicate if the ObjPath property is valid.
Public Property LatLatitude of point clicked (if available).
Public Property LonLongitude of point clicked (if available).
Public Property ObjPathPath of the STK object picked if any (or empty string).

Remarks

This object is not creatable. It is used as the return value from the Map PickInfo and Globe PickInfo methods.


Note: The PickInfo() method caches its return value (for better performance). If you make multiple calls to that method, you need to extract the results from the AgPickInfoData object before making the next call, e.g.


Dim point1 As AgPickInfoData
Dim point2 As AgPickInfoData
point1 = Me.m_StkxGlobe.PickInfo(x1, y1)
point2 = Me.m_StkxGlobe.PickInfo(x2, y2)
...


At this juncture point1 and point2 both reference the same object and share the same values. To avoid this, extract the values from the result before making the second call, i.e.


Dim point As AgPickInfoData
point = Me.m_StkxGlobe.PickInfo(x1, y1)
lat1 = point.Lat
lon1 = point.Lon
point = Me.m_StkxGlobe.PickInfo(x2, y2)
lat2 = point.Lat
lon3 = point.Lon
...

See Also

© 2024 Analytical Graphics, Inc. All Rights Reserved.