EOCR2::HitTestLine
Tests the cursor position for the presence of a line. If one is present under the cursor, it returns true and fills the EOCR2Line
object In a general content, the term object should be understood with the meaning of a class instance. In EasyObject, an object is a maximally-sized area of adjacent connected pixels belonging to the layer foreground. passed as parameter.
Namespace: Euresys::Open_eVision
[C++]
bool HitTestLine(
EOCR2Line
& line,
int x,
int y,
float zoomX,
float zoomY,
float panX,
float panY
)
bool HitTestLine(
EOCR2Line
& line,
int x,
int y,
float zoomX,
float zoomY,
float panX
)
bool HitTestLine(
EOCR2Line
& line,
int x,
int y,
float zoomX,
float zoomY
)
bool HitTestLine(
EOCR2Line
& line,
int x,
int y,
float zoomX
)
bool HitTestLine(
EOCR2Line
& line,
int x,
int y
)
Parameters
line
Object to fill if a line was detected under the cursor.
x
Horizontal position of the cursor.
y
Vertical position of the cursor.
zoomX
Horizontal zooming factor. By default, true scale is used.
zoomY
Vertical zooming factor. If set to 0
(default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panX
Horizontal panning value expressed in pixels. By default, no panning occurs.
panY
Vertical panning value expressed in pixels. By default, no panning occurs.
EOCR2.HitTestLine
Tests the cursor position for the presence of a line. If one is present under the cursor, it returns true and fills the EOCR2Line
object passed as parameter.
Namespace: Euresys.Open_eVision
[C#]
bool HitTestLine(
EOCR2Line
line,
int x,
int y,
float zoomX,
float zoomY,
float panX,
float panY
)
bool HitTestLine(
EOCR2Line
line,
int x,
int y,
float zoomX,
float zoomY,
float panX
)
bool HitTestLine(
EOCR2Line
line,
int x,
int y,
float zoomX,
float zoomY
)
bool HitTestLine(
EOCR2Line
line,
int x,
int y,
float zoomX
)
bool HitTestLine(
EOCR2Line
line,
int x,
int y
)
Parameters
line
Object to fill if a line was detected under the cursor.
x
Horizontal position of the cursor.
y
Vertical position of the cursor.
zoomX
Horizontal zooming factor. By default, true scale is used.
zoomY
Vertical zooming factor. If set to 0
(default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panX
Horizontal panning value expressed in pixels. By default, no panning occurs.
panY
Vertical panning value expressed in pixels. By default, no panning occurs.
EOCR2.HitTestLine
Tests the cursor position for the presence of a line. If one is present under the cursor, it returns true and fills the EOCR2Line
object passed as parameter.
Module: open_evision
[Python]
HitTestLine(
line: EOCR2Line
x: int
y: int
zoomX: float
zoomY: float
panX: float
panY: float
) -> bool
HitTestLine(
line: EOCR2Line
x: int
y: int
zoomX: float
zoomY: float
panX: float
) -> bool
HitTestLine(
line: EOCR2Line
x: int
y: int
zoomX: float
zoomY: float
) -> bool
HitTestLine(
line: EOCR2Line
x: int
y: int
zoomX: float
) -> bool
HitTestLine(
line: EOCR2Line
x: int
y: int
) -> bool
Parameters
line
Object to fill if a line was detected under the cursor.
x
Horizontal position of the cursor.
y
Vertical position of the cursor.
zoomX
Horizontal zooming factor. By default, true scale is used.
zoomY
Vertical zooming factor. If set to 0
(default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panX
Horizontal panning value expressed in pixels. By default, no panning occurs.
panY
Vertical panning value expressed in pixels. By default, no panning occurs.