ERectangleRegion::HitTest
Detects if the cursor is placed over one of the dragging handles.
Namespace: Euresys::Open_eVision
[C++]
EEditionMode
HitTest(
int x,
int y,
float zoomX,
float zoomY,
float panX,
float panY
) const
Parameters
x
x-coordinate of the mouse cursor.
y
y-coordinate of the mouse cursor.
zoomX
Horizontal zoom factor. By default, true scale is used.
zoomY
Vertical zoom factor. By default, true scale is used.
panX
Horizontal pan offset. By default, no pan is added.
panY
Vertical pan offset. By default, no pan is added.
Remarks
Returns a handle identifier, as defined by EEditionMode
.
If zooming and/or panning were used when drawing the region, the same values must be used with ERectangleRegion::HitTest
and ERectangleRegion::Drag
.
ERectangleRegion.HitTest
Detects if the cursor is placed over one of the dragging handles.
Namespace: Euresys.Open_eVision
[C#]
EEditionMode
HitTest(
int x,
int y,
float zoomX,
float zoomY,
float panX,
float panY
)
Parameters
x
x-coordinate of the mouse cursor.
y
y-coordinate of the mouse cursor.
zoomX
Horizontal zoom factor. By default, true scale is used.
zoomY
Vertical zoom factor. By default, true scale is used.
panX
Horizontal pan offset. By default, no pan is added.
panY
Vertical pan offset. By default, no pan is added.
Remarks
Returns a handle identifier, as defined by EEditionMode
.
If zooming and/or panning were used when drawing the region, the same values must be used with ERectangleRegion.HitTest
and ERectangleRegion.Drag
.
ERectangleRegion.HitTest
Detects if the cursor is placed over one of the dragging handles.
Module: open_evision
[Python]
HitTest(
x: int
y: int
zoomX: float
zoomY: float
panX: float
panY: float
) -> EEditionMode
HitTest(
x: int
y: int
zoomX: float
zoomY: float
panX: float
) -> EEditionMode
HitTest(
x: int
y: int
zoomX: float
zoomY: float
) -> EEditionMode
HitTest(
x: int
y: int
zoomX: float
) -> EEditionMode
HitTest(
x: int
y: int
) -> EEditionMode
Parameters
x
x-coordinate of the mouse cursor.
y
y-coordinate of the mouse cursor.
zoomX
Horizontal zoom factor. By default, true scale is used.
zoomY
Vertical zoom factor. By default, true scale is used.
panX
Horizontal pan offset. By default, no pan is added.
panY
Vertical pan offset. By default, no pan is added.
Remarks
Returns a handle identifier, as defined by EEditionMode
.
If zooming and/or panning were used when drawing the region, the same values must be used with ERectangleRegion.HitTest
and ERectangleRegion.Drag
.