How to get coordinates in Petrel 2d Mapwindow through mouse click event?

StackOverflow https://stackoverflow.com/questions/22224102

  •  10-06-2023
  •  | 
  •  

Вопрос

How to get coordinates dynamically in Petrel 2d Mapwindow through mouse click event?

Это было полезно?

Решение

If you implement a custom WindowMode, you can access the coordinates via the PickedPoint API. The "World" property will give you the X-Y coordinates in world space, and the Z is determined by the domain object (if any) under the mouse cursor.

There is also a separate window-based coordinate system that uses fixed spacing X and Y coordinates based on the Map viewport.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top