ReviewManagerHitTest Method (Int32, Int32) |
Namespace: VIZCore3D.NET.Manager
public bool HitTest( int x, int y )
// VIZCore3D.NET Control private VIZCore3D.NET.VIZCore3DControl vizcore3d; private void Example() { if (vizcore3d.Model.IsOpen() == false) return; vizcore3d.View.OnViewDefaultMouseUpEvent += View_OnViewDefaultMouseUpEvent; } private void View_OnViewDefaultMouseUpEvent(object sender, MouseEventArgs e) { // Case 1) bool existReview1 = vizcore3d.Review.HitTest(e.X, e.Y); // Case 2) int reviewId = -1; bool existReview2 = vizcore3d.Review.HitTest(e.X, e.Y, ref reviewId); }