Click or drag to resize

ReviewManagerHitTest Method (Int32, Int32)

화면 좌표의 리뷰 유무 반환

Namespace:  VIZCore3D.NET.Manager
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public bool HitTest(
	int x,
	int y
)

Parameters

x
Type: SystemInt32
화면 좌표 X
y
Type: SystemInt32
화면 좌표 Y

Return Value

Type: Boolean
리뷰 유무
Examples
C#
// 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);
}
See Also