eVision Python API
Loading...
Searching...
No Matches
eVision.EQuadrangle Class Reference

This class represents a polygon with four corners (with sub-pixel accuracy). More...

Public Member Functions

None __init__ (self)
 Constructs a eVision.EQuadrangle.
None __init__ (self, list[eVision._eVision.EPoint] corners)
 Constructs a eVision.EQuadrangle.
None __init__ (self, eVision.EPoint Corner0)
None __init__ (self, eVision.EPoint Corner0, eVision.EPoint Corner1)
None __init__ (self, eVision.EPoint Corner0, eVision.EPoint Corner1, eVision.EPoint Corner2)
None __init__ (self, eVision.EPoint Corner0, eVision.EPoint Corner1, eVision.EPoint Corner2, eVision.EPoint Corner3)
None __init__ (self, eVision.EQuadrangle other)
None SetPoint (self, int index, eVision.EPoint location)
 Sets the coordinates of a given corner of the quadrangle.
bool IsInside (self, eVision.EPoint point, bool includeEdges)
bool IsInside (self, eVision.EPoint point)
bool IsPointInside (self, eVision.EPoint point, bool includeEdges)
 Tests if a point is inside the quadrangle.
bool IsPointInside (self, eVision.EPoint point)
 Tests if a point is inside the quadrangle.
bool IsQuadrangleInside (self, eVision.EQuadrangle quadrangle, bool includeEdges)
 Tests if a quadrangle is inside the quadrangle.
bool IsQuadrangleInside (self, eVision.EQuadrangle quadrangle)
 Tests if a quadrangle is inside the quadrangle.
bool OverLaps (self, eVision.EQuadrangle other)
 Tests if the quadrangles overlap.
float ComputeOverlap (self, eVision.EQuadrangle other)
 Computes the overlap (intersection / min(area1, area2)) of this and the other eVision.EQuadrangle.
eVision.EPoint GetPoint (self, int index)
 Returns the coordinate of a given corner of the quadrangle.
float GetSideAngle (self, int sideIndex)
 Returns the angle of a given side of the quadrangle.
float GetSideLength (self, int sideIndex)
 Returns the length of a given side of the quadrangle.
float GetCornerAngle (self, int cornerIndex)
 Returns the angle of a given corner of the quadrangle.
eVision.EQuadrangle SensorToLocal (self, eVision.EFrame frame)
 Converts the eVision.EQuadrangle from the sensor reference frame to the local reference frame.
eVision.EQuadrangle LocalToSensor (self, eVision.EFrame frame)
 Converts the eVision.EQuadrangle from the local reference frame to the sensor reference frame.
None Draw (self, eVision.EDrawAdapter|None graphicContext, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals)
 Draws the quadrangle, by drawing lines between its corners.
None Draw (self, eVision.EDrawAdapter|None graphicContext, float zoomX, float zoomY, float panX, float panY)
 Draws the quadrangle, by drawing lines between its corners.
None Draw (self, eVision.EDrawAdapter|None graphicContext, float zoomX, float zoomY, float panX)
 Draws the quadrangle, by drawing lines between its corners.
None Draw (self, eVision.EDrawAdapter|None graphicContext, float zoomX, float zoomY)
 Draws the quadrangle, by drawing lines between its corners.
None Draw (self, eVision.EDrawAdapter|None graphicContext, float zoomX)
 Draws the quadrangle, by drawing lines between its corners.
None Draw (self, eVision.EDrawAdapter|None graphicContext)
 Draws the quadrangle, by drawing lines between its corners.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals)
 Draws the quadrangle, by drawing lines between its corners.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Draws the quadrangle, by drawing lines between its corners.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Draws the quadrangle, by drawing lines between its corners.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, float zoomX, float zoomY)
 Draws the quadrangle, by drawing lines between its corners.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame, float zoomX)
 Draws the quadrangle, by drawing lines between its corners.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.EFrame frame)
 Draws the quadrangle, by drawing lines between its corners.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.ERGBColor color, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals)
 Draws the quadrangle, by drawing lines between its corners.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.ERGBColor color, float zoomX, float zoomY, float panX, float panY)
 Draws the quadrangle, by drawing lines between its corners.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.ERGBColor color, float zoomX, float zoomY, float panX)
 Draws the quadrangle, by drawing lines between its corners.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.ERGBColor color, float zoomX, float zoomY)
 Draws the quadrangle, by drawing lines between its corners.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.ERGBColor color, float zoomX)
 Draws the quadrangle, by drawing lines between its corners.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.ERGBColor color)
 Draws the quadrangle, by drawing lines between its corners.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.ERGBColor color, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals)
 Draws the quadrangle, by drawing lines between its corners.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.ERGBColor color, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Draws the quadrangle, by drawing lines between its corners.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.ERGBColor color, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Draws the quadrangle, by drawing lines between its corners.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.ERGBColor color, eVision.EFrame frame, float zoomX, float zoomY)
 Draws the quadrangle, by drawing lines between its corners.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.ERGBColor color, eVision.EFrame frame, float zoomX)
 Draws the quadrangle, by drawing lines between its corners.
None Draw (self, eVision.EDrawAdapter|None graphicContext, eVision.ERGBColor color, eVision.EFrame frame)
 Draws the quadrangle, by drawing lines between its corners.
eVision.EPoint GravityCenter (self)
 Returns the gravity center of the quadrangle.
float Area (self)
 Returns the area of the quadrangle.
float Perimeter (self)
 Returns the perimeter of the quadrangle.
list[eVision._eVision.EPoint] Corners (self)
 The corners of the eVision.EQuadrangle.
eVision.EPoint UpperLeftCorner (self)
 Returns the coordinates of the upper left corner of the quadrangle (the position with the minimum Y and then minimum X).
eVision.EPoint Corner0 (self)
 Corner 0 of the quadrangle.
 Corner0 (self, eVision.EPoint value)
 Corner 0 of the quadrangle.
eVision.EPoint Corner1 (self)
 Corner 1 of the quadrangle.
 Corner1 (self, eVision.EPoint value)
 Corner 1 of the quadrangle.
eVision.EPoint Corner2 (self)
 Corner 2 of the quadrangle.
 Corner2 (self, eVision.EPoint value)
 Corner 2 of the quadrangle.
eVision.EPoint Corner3 (self)
 Corner 3 of the quadrangle.
 Corner3 (self, eVision.EPoint value)
 Corner 3 of the quadrangle.

Detailed Description

This class represents a polygon with four corners (with sub-pixel accuracy).

Remarks:

A quadrangle especially arises when representing the corners of a rotated bounding box.

License(s): None

Constructor & Destructor Documentation

◆ __init__() [1/7]

None eVision.EQuadrangle.__init__ ( self)

Constructs a eVision.EQuadrangle.

The default constructor initializes all points to 0.

◆ __init__() [2/7]

None eVision.EQuadrangle.__init__ ( self,
list[eVision._eVision.EPoint] corners )

Constructs a eVision.EQuadrangle.

The default constructor initializes all points to 0.

Parameters
cornersThe corners of the eVision.EQuadrangle.

◆ __init__() [3/7]

None eVision.EQuadrangle.__init__ ( self,
eVision.EPoint Corner0 )
Parameters
Corner0Corner 0 of the quadrangle.

◆ __init__() [4/7]

None eVision.EQuadrangle.__init__ ( self,
eVision.EPoint Corner0,
eVision.EPoint Corner1 )
Parameters
Corner0Corner 0 of the quadrangle.
Corner1Corner 1 of the quadrangle.

◆ __init__() [5/7]

None eVision.EQuadrangle.__init__ ( self,
eVision.EPoint Corner0,
eVision.EPoint Corner1,
eVision.EPoint Corner2 )
Parameters
Corner0Corner 0 of the quadrangle.
Corner1Corner 1 of the quadrangle.
Corner2Corner 2 of the quadrangle.

◆ __init__() [6/7]

None eVision.EQuadrangle.__init__ ( self,
eVision.EPoint Corner0,
eVision.EPoint Corner1,
eVision.EPoint Corner2,
eVision.EPoint Corner3 )
Parameters
Corner0Corner 0 of the quadrangle.
Corner1Corner 1 of the quadrangle.
Corner2Corner 2 of the quadrangle.
Corner3Corner 3 of the quadrangle.

◆ __init__() [7/7]

None eVision.EQuadrangle.__init__ ( self,
eVision.EQuadrangle other )
Parameters
otherOther instance

Member Function Documentation

◆ Area()

float eVision.EQuadrangle.Area ( self)

Returns the area of the quadrangle.

◆ ComputeOverlap()

float eVision.EQuadrangle.ComputeOverlap ( self,
eVision.EQuadrangle other )

Computes the overlap (intersection / min(area1, area2)) of this and the other eVision.EQuadrangle.

Parameters
otherThe other eVision.EQuadrangle to which we compute overlap.

◆ Corner0() [1/2]

eVision.EPoint eVision.EQuadrangle.Corner0 ( self)

Corner 0 of the quadrangle.

◆ Corner0() [2/2]

eVision.EQuadrangle.Corner0 ( self,
eVision.EPoint value )

Corner 0 of the quadrangle.

◆ Corner1() [1/2]

eVision.EPoint eVision.EQuadrangle.Corner1 ( self)

Corner 1 of the quadrangle.

◆ Corner1() [2/2]

eVision.EQuadrangle.Corner1 ( self,
eVision.EPoint value )

Corner 1 of the quadrangle.

◆ Corner2() [1/2]

eVision.EPoint eVision.EQuadrangle.Corner2 ( self)

Corner 2 of the quadrangle.

◆ Corner2() [2/2]

eVision.EQuadrangle.Corner2 ( self,
eVision.EPoint value )

Corner 2 of the quadrangle.

◆ Corner3() [1/2]

eVision.EPoint eVision.EQuadrangle.Corner3 ( self)

Corner 3 of the quadrangle.

◆ Corner3() [2/2]

eVision.EQuadrangle.Corner3 ( self,
eVision.EPoint value )

Corner 3 of the quadrangle.

◆ Corners()

list[eVision._eVision.EPoint] eVision.EQuadrangle.Corners ( self)

The corners of the eVision.EQuadrangle.

Remarks:

If the eVision.EQuadrangle belongs to an eVision.EQRCodeGeometry object, the corners are returned in the following order: top right, top left, bottom left, bottom right. If the eVision.EQuadrangle belongs to an eVision.EasyBarCode2.EBarCode or eVision.EasyMatrixCode2.EMatrixCode object, the corners are returned in the following order: top left, top right, bottom right, bottom left. Here, top left and so on means the top left of the code, not the top left of the image.

◆ Draw() [1/24]

None eVision.EQuadrangle.Draw ( self,
eVision.EDrawAdapter | None graphicContext )

Draws the quadrangle, by drawing lines between its corners.

Remarks:

Drawing is done in the device context associated to the desired window.

Deprecation notice: All methods taking HDC as parameter are deprecated. It is recommended to use their alternative taking a eVision.EDrawAdapter by using a instance of eVision.EWindowsDrawAdapter.

Parameters
graphicContextGraphic context on which to draw.

◆ Draw() [2/24]

None eVision.EQuadrangle.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EFrame frame )

Draws the quadrangle, by drawing lines between its corners.

Remarks:

Drawing is done in the device context associated to the desired window.

Deprecation notice: All methods taking HDC as parameter are deprecated. It is recommended to use their alternative taking a eVision.EDrawAdapter by using a instance of eVision.EWindowsDrawAdapter.

Parameters
graphicContextGraphic context on which to draw.
frameFrame of reference in which the quadrangle is defined.

◆ Draw() [3/24]

None eVision.EQuadrangle.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EFrame frame,
float zoomX )

Draws the quadrangle, by drawing lines between its corners.

Remarks:

Drawing is done in the device context associated to the desired window.

Deprecation notice: All methods taking HDC as parameter are deprecated. It is recommended to use their alternative taking a eVision.EDrawAdapter by using a instance of eVision.EWindowsDrawAdapter.

Parameters
graphicContextGraphic context on which to draw.
frameFrame of reference in which the quadrangle is defined.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ Draw() [4/24]

None eVision.EQuadrangle.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EFrame frame,
float zoomX,
float zoomY )

Draws the quadrangle, by drawing lines between its corners.

Remarks:

Drawing is done in the device context associated to the desired window.

Deprecation notice: All methods taking HDC as parameter are deprecated. It is recommended to use their alternative taking a eVision.EDrawAdapter by using a instance of eVision.EWindowsDrawAdapter.

Parameters
graphicContextGraphic context on which to draw.
frameFrame of reference in which the quadrangle is defined.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ Draw() [5/24]

None eVision.EQuadrangle.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX )

Draws the quadrangle, by drawing lines between its corners.

Remarks:

Drawing is done in the device context associated to the desired window.

Deprecation notice: All methods taking HDC as parameter are deprecated. It is recommended to use their alternative taking a eVision.EDrawAdapter by using a instance of eVision.EWindowsDrawAdapter.

Parameters
graphicContextGraphic context on which to draw.
frameFrame of reference in which the quadrangle is defined.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ Draw() [6/24]

None eVision.EQuadrangle.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the quadrangle, by drawing lines between its corners.

Remarks:

Drawing is done in the device context associated to the desired window.

Deprecation notice: All methods taking HDC as parameter are deprecated. It is recommended to use their alternative taking a eVision.EDrawAdapter by using a instance of eVision.EWindowsDrawAdapter.

Parameters
graphicContextGraphic context on which to draw.
frameFrame of reference in which the quadrangle is defined.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ Draw() [7/24]

None eVision.EQuadrangle.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals )

Draws the quadrangle, by drawing lines between its corners.

Remarks:

Drawing is done in the device context associated to the desired window.

Deprecation notice: All methods taking HDC as parameter are deprecated. It is recommended to use their alternative taking a eVision.EDrawAdapter by using a instance of eVision.EWindowsDrawAdapter.

Parameters
graphicContextGraphic context on which to draw.
frameFrame of reference in which the quadrangle is defined.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.
drawDiagonalsSpecifies whether or not lines are to be drawn between the 1st and 3rd corners, as well as between the 2nd and 4th corners.

◆ Draw() [8/24]

None eVision.EQuadrangle.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.ERGBColor color )

Draws the quadrangle, by drawing lines between its corners.

Remarks:

Drawing is done in the device context associated to the desired window.

Deprecation notice: All methods taking HDC as parameter are deprecated. It is recommended to use their alternative taking a eVision.EDrawAdapter by using a instance of eVision.EWindowsDrawAdapter.

Parameters
graphicContextGraphic context on which to draw.
colorThe color in which to draw the overlay.

◆ Draw() [9/24]

None eVision.EQuadrangle.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.ERGBColor color,
eVision.EFrame frame )

Draws the quadrangle, by drawing lines between its corners.

Remarks:

Drawing is done in the device context associated to the desired window.

Deprecation notice: All methods taking HDC as parameter are deprecated. It is recommended to use their alternative taking a eVision.EDrawAdapter by using a instance of eVision.EWindowsDrawAdapter.

Parameters
graphicContextGraphic context on which to draw.
colorThe color in which to draw the overlay.
frameFrame of reference in which the quadrangle is defined.

◆ Draw() [10/24]

None eVision.EQuadrangle.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.ERGBColor color,
eVision.EFrame frame,
float zoomX )

Draws the quadrangle, by drawing lines between its corners.

Remarks:

Drawing is done in the device context associated to the desired window.

Deprecation notice: All methods taking HDC as parameter are deprecated. It is recommended to use their alternative taking a eVision.EDrawAdapter by using a instance of eVision.EWindowsDrawAdapter.

Parameters
graphicContextGraphic context on which to draw.
colorThe color in which to draw the overlay.
frameFrame of reference in which the quadrangle is defined.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ Draw() [11/24]

None eVision.EQuadrangle.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.ERGBColor color,
eVision.EFrame frame,
float zoomX,
float zoomY )

Draws the quadrangle, by drawing lines between its corners.

Remarks:

Drawing is done in the device context associated to the desired window.

Deprecation notice: All methods taking HDC as parameter are deprecated. It is recommended to use their alternative taking a eVision.EDrawAdapter by using a instance of eVision.EWindowsDrawAdapter.

Parameters
graphicContextGraphic context on which to draw.
colorThe color in which to draw the overlay.
frameFrame of reference in which the quadrangle is defined.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ Draw() [12/24]

None eVision.EQuadrangle.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.ERGBColor color,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX )

Draws the quadrangle, by drawing lines between its corners.

Remarks:

Drawing is done in the device context associated to the desired window.

Deprecation notice: All methods taking HDC as parameter are deprecated. It is recommended to use their alternative taking a eVision.EDrawAdapter by using a instance of eVision.EWindowsDrawAdapter.

Parameters
graphicContextGraphic context on which to draw.
colorThe color in which to draw the overlay.
frameFrame of reference in which the quadrangle is defined.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ Draw() [13/24]

None eVision.EQuadrangle.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.ERGBColor color,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the quadrangle, by drawing lines between its corners.

Remarks:

Drawing is done in the device context associated to the desired window.

Deprecation notice: All methods taking HDC as parameter are deprecated. It is recommended to use their alternative taking a eVision.EDrawAdapter by using a instance of eVision.EWindowsDrawAdapter.

Parameters
graphicContextGraphic context on which to draw.
colorThe color in which to draw the overlay.
frameFrame of reference in which the quadrangle is defined.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ Draw() [14/24]

None eVision.EQuadrangle.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.ERGBColor color,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals )

Draws the quadrangle, by drawing lines between its corners.

Remarks:

Drawing is done in the device context associated to the desired window.

Deprecation notice: All methods taking HDC as parameter are deprecated. It is recommended to use their alternative taking a eVision.EDrawAdapter by using a instance of eVision.EWindowsDrawAdapter.

Parameters
graphicContextGraphic context on which to draw.
colorThe color in which to draw the overlay.
frameFrame of reference in which the quadrangle is defined.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.
drawDiagonalsSpecifies whether or not lines are to be drawn between the 1st and 3rd corners, as well as between the 2nd and 4th corners.

◆ Draw() [15/24]

None eVision.EQuadrangle.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.ERGBColor color,
float zoomX )

Draws the quadrangle, by drawing lines between its corners.

Remarks:

Drawing is done in the device context associated to the desired window.

Deprecation notice: All methods taking HDC as parameter are deprecated. It is recommended to use their alternative taking a eVision.EDrawAdapter by using a instance of eVision.EWindowsDrawAdapter.

Parameters
graphicContextGraphic context on which to draw.
colorThe color in which to draw the overlay.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ Draw() [16/24]

None eVision.EQuadrangle.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.ERGBColor color,
float zoomX,
float zoomY )

Draws the quadrangle, by drawing lines between its corners.

Remarks:

Drawing is done in the device context associated to the desired window.

Deprecation notice: All methods taking HDC as parameter are deprecated. It is recommended to use their alternative taking a eVision.EDrawAdapter by using a instance of eVision.EWindowsDrawAdapter.

Parameters
graphicContextGraphic context on which to draw.
colorThe color in which to draw the overlay.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ Draw() [17/24]

None eVision.EQuadrangle.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.ERGBColor color,
float zoomX,
float zoomY,
float panX )

Draws the quadrangle, by drawing lines between its corners.

Remarks:

Drawing is done in the device context associated to the desired window.

Deprecation notice: All methods taking HDC as parameter are deprecated. It is recommended to use their alternative taking a eVision.EDrawAdapter by using a instance of eVision.EWindowsDrawAdapter.

Parameters
graphicContextGraphic context on which to draw.
colorThe color in which to draw the overlay.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ Draw() [18/24]

None eVision.EQuadrangle.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.ERGBColor color,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the quadrangle, by drawing lines between its corners.

Remarks:

Drawing is done in the device context associated to the desired window.

Deprecation notice: All methods taking HDC as parameter are deprecated. It is recommended to use their alternative taking a eVision.EDrawAdapter by using a instance of eVision.EWindowsDrawAdapter.

Parameters
graphicContextGraphic context on which to draw.
colorThe color in which to draw the overlay.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ Draw() [19/24]

None eVision.EQuadrangle.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
eVision.ERGBColor color,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals )

Draws the quadrangle, by drawing lines between its corners.

Remarks:

Drawing is done in the device context associated to the desired window.

Deprecation notice: All methods taking HDC as parameter are deprecated. It is recommended to use their alternative taking a eVision.EDrawAdapter by using a instance of eVision.EWindowsDrawAdapter.

Parameters
graphicContextGraphic context on which to draw.
colorThe color in which to draw the overlay.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.
drawDiagonalsSpecifies whether or not lines are to be drawn between the 1st and 3rd corners, as well as between the 2nd and 4th corners.

◆ Draw() [20/24]

None eVision.EQuadrangle.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
float zoomX )

Draws the quadrangle, by drawing lines between its corners.

Remarks:

Drawing is done in the device context associated to the desired window.

Deprecation notice: All methods taking HDC as parameter are deprecated. It is recommended to use their alternative taking a eVision.EDrawAdapter by using a instance of eVision.EWindowsDrawAdapter.

Parameters
graphicContextGraphic context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ Draw() [21/24]

None eVision.EQuadrangle.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
float zoomX,
float zoomY )

Draws the quadrangle, by drawing lines between its corners.

Remarks:

Drawing is done in the device context associated to the desired window.

Deprecation notice: All methods taking HDC as parameter are deprecated. It is recommended to use their alternative taking a eVision.EDrawAdapter by using a instance of eVision.EWindowsDrawAdapter.

Parameters
graphicContextGraphic context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ Draw() [22/24]

None eVision.EQuadrangle.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
float zoomX,
float zoomY,
float panX )

Draws the quadrangle, by drawing lines between its corners.

Remarks:

Drawing is done in the device context associated to the desired window.

Deprecation notice: All methods taking HDC as parameter are deprecated. It is recommended to use their alternative taking a eVision.EDrawAdapter by using a instance of eVision.EWindowsDrawAdapter.

Parameters
graphicContextGraphic context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ Draw() [23/24]

None eVision.EQuadrangle.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the quadrangle, by drawing lines between its corners.

Remarks:

Drawing is done in the device context associated to the desired window.

Deprecation notice: All methods taking HDC as parameter are deprecated. It is recommended to use their alternative taking a eVision.EDrawAdapter by using a instance of eVision.EWindowsDrawAdapter.

Parameters
graphicContextGraphic context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ Draw() [24/24]

None eVision.EQuadrangle.Draw ( self,
eVision.EDrawAdapter | None graphicContext,
float zoomX,
float zoomY,
float panX,
float panY,
bool drawDiagonals )

Draws the quadrangle, by drawing lines between its corners.

Remarks:

Drawing is done in the device context associated to the desired window.

Deprecation notice: All methods taking HDC as parameter are deprecated. It is recommended to use their alternative taking a eVision.EDrawAdapter by using a instance of eVision.EWindowsDrawAdapter.

Parameters
graphicContextGraphic context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.
drawDiagonalsSpecifies whether or not lines are to be drawn between the 1st and 3rd corners, as well as between the 2nd and 4th corners.

◆ GetCornerAngle()

float eVision.EQuadrangle.GetCornerAngle ( self,
int cornerIndex )

Returns the angle of a given corner of the quadrangle.

Parameters
cornerIndexThe index of the corner of interest (must lie in the range between 0 and 3, inclusive).

◆ GetPoint()

eVision.EPoint eVision.EQuadrangle.GetPoint ( self,
int index )

Returns the coordinate of a given corner of the quadrangle.

Parameters
indexThe index of the corner of interest (must lie in the range between 0 and 3, inclusive).

◆ GetSideAngle()

float eVision.EQuadrangle.GetSideAngle ( self,
int sideIndex )

Returns the angle of a given side of the quadrangle.

Side i is the line between corner i and corner (i+1)%4.

Parameters
sideIndexThe index of the side of interest (must lie in the range between 0 and 3, inclusive).

◆ GetSideLength()

float eVision.EQuadrangle.GetSideLength ( self,
int sideIndex )

Returns the length of a given side of the quadrangle.

Side i is the line between corner i and corner (i+1)%4.

Parameters
sideIndexThe index of the side of interest (must lie in the range between 0 and 3, inclusive).

◆ GravityCenter()

eVision.EPoint eVision.EQuadrangle.GravityCenter ( self)

Returns the gravity center of the quadrangle.

◆ IsInside() [1/2]

bool eVision.EQuadrangle.IsInside ( self,
eVision.EPoint point )

◆ IsInside() [2/2]

bool eVision.EQuadrangle.IsInside ( self,
eVision.EPoint point,
bool includeEdges )

◆ IsPointInside() [1/2]

bool eVision.EQuadrangle.IsPointInside ( self,
eVision.EPoint point )

Tests if a point is inside the quadrangle.

Parameters
pointThe point.

◆ IsPointInside() [2/2]

bool eVision.EQuadrangle.IsPointInside ( self,
eVision.EPoint point,
bool includeEdges )

Tests if a point is inside the quadrangle.

Parameters
pointThe point.
includeEdgesTakes the edges as part of the interior of the eVision.EQuadrangle. Default: false.

◆ IsQuadrangleInside() [1/2]

bool eVision.EQuadrangle.IsQuadrangleInside ( self,
eVision.EQuadrangle quadrangle )

Tests if a quadrangle is inside the quadrangle.

Parameters
quadrangleThe other quadrangle that is inside the eVision.EQuadrangle or not

◆ IsQuadrangleInside() [2/2]

bool eVision.EQuadrangle.IsQuadrangleInside ( self,
eVision.EQuadrangle quadrangle,
bool includeEdges )

Tests if a quadrangle is inside the quadrangle.

Parameters
quadrangleThe other quadrangle that is inside the eVision.EQuadrangle or not
includeEdgesTakes the edges as part of the interior of the eVision.EQuadrangle. Default: false.

◆ LocalToSensor()

eVision.EQuadrangle eVision.EQuadrangle.LocalToSensor ( self,
eVision.EFrame frame )

Converts the eVision.EQuadrangle from the local reference frame to the sensor reference frame.

Parameters
frameReference frame in which the eVision.EQuadrangle is defined.

◆ OverLaps()

bool eVision.EQuadrangle.OverLaps ( self,
eVision.EQuadrangle other )

Tests if the quadrangles overlap.

Parameters
otherThe eVision.EQuadrangle to test.

◆ Perimeter()

float eVision.EQuadrangle.Perimeter ( self)

Returns the perimeter of the quadrangle.

◆ SensorToLocal()

eVision.EQuadrangle eVision.EQuadrangle.SensorToLocal ( self,
eVision.EFrame frame )

Converts the eVision.EQuadrangle from the sensor reference frame to the local reference frame.

Parameters
frameReference frame in which the eVision.EQuadrangle is defined.

◆ SetPoint()

None eVision.EQuadrangle.SetPoint ( self,
int index,
eVision.EPoint location )

Sets the coordinates of a given corner of the quadrangle.

Parameters
indexThe index of the corner of interest (must lie in the range between 0 and 3, inclusive).
locationThe coordinate.

◆ UpperLeftCorner()

eVision.EPoint eVision.EQuadrangle.UpperLeftCorner ( self)

Returns the coordinates of the upper left corner of the quadrangle (the position with the minimum Y and then minimum X).