SelectionBoxManagerHitTest 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; // 해당 위치 선택상자(SelectionBox) 조회 int id = vizcore3d.SelectionBox.HitTest(x, y); if(id != -1) { VIZCore3D.NET.Data.SelectionBox box = vizcore3d.SelectionBox.GetItem(id); } }