ViewManagerHitTest Method |
Namespace: VIZCore3D.NET.Manager
public int HitTest( int x, int y )
// VIZCore3D.NET Control private VIZCore3D.NET.VIZCore3DControl vizcore3d; private void Example() { // Event 선언 vizcore3d.View.OnViewDragDrop += View_OnViewDragDrop; } private void View_OnViewDragDrop(object sender, Event.EventManager.ViewDragDropEventArgs e) { int x = e.X; int y = e.Y; // 해당 위치 개체 조회 int index = vizcore3d.View.HitTest(x, y); if(index != -1) { VIZCore3D.NET.Data.Node node = vizcore3d.Object3D.FromIndex(index); } }