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. | |
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
| None eVision.EQuadrangle.__init__ | ( | self | ) |
Constructs a eVision.EQuadrangle.
The default constructor initializes all points to 0.
| None eVision.EQuadrangle.__init__ | ( | self, | |
| list[eVision._eVision.EPoint] | corners ) |
Constructs a eVision.EQuadrangle.
The default constructor initializes all points to 0.
| corners | The corners of the eVision.EQuadrangle. |
| None eVision.EQuadrangle.__init__ | ( | self, | |
| eVision.EPoint | Corner0 ) |
| Corner0 | Corner 0 of the quadrangle. |
| None eVision.EQuadrangle.__init__ | ( | self, | |
| eVision.EPoint | Corner0, | ||
| eVision.EPoint | Corner1 ) |
| Corner0 | Corner 0 of the quadrangle. |
| Corner1 | Corner 1 of the quadrangle. |
| None eVision.EQuadrangle.__init__ | ( | self, | |
| eVision.EPoint | Corner0, | ||
| eVision.EPoint | Corner1, | ||
| eVision.EPoint | Corner2 ) |
| Corner0 | Corner 0 of the quadrangle. |
| Corner1 | Corner 1 of the quadrangle. |
| Corner2 | Corner 2 of the quadrangle. |
| None eVision.EQuadrangle.__init__ | ( | self, | |
| eVision.EPoint | Corner0, | ||
| eVision.EPoint | Corner1, | ||
| eVision.EPoint | Corner2, | ||
| eVision.EPoint | Corner3 ) |
| Corner0 | Corner 0 of the quadrangle. |
| Corner1 | Corner 1 of the quadrangle. |
| Corner2 | Corner 2 of the quadrangle. |
| Corner3 | Corner 3 of the quadrangle. |
| None eVision.EQuadrangle.__init__ | ( | self, | |
| eVision.EQuadrangle | other ) |
| other | Other instance |
| float eVision.EQuadrangle.Area | ( | self | ) |
Returns the area of the quadrangle.
| float eVision.EQuadrangle.ComputeOverlap | ( | self, | |
| eVision.EQuadrangle | other ) |
Computes the overlap (intersection / min(area1, area2)) of this and the other eVision.EQuadrangle.
| other | The other eVision.EQuadrangle to which we compute overlap. |
| eVision.EPoint eVision.EQuadrangle.Corner0 | ( | self | ) |
Corner 0 of the quadrangle.
| eVision.EQuadrangle.Corner0 | ( | self, | |
| eVision.EPoint | value ) |
Corner 0 of the quadrangle.
| eVision.EPoint eVision.EQuadrangle.Corner1 | ( | self | ) |
Corner 1 of the quadrangle.
| eVision.EQuadrangle.Corner1 | ( | self, | |
| eVision.EPoint | value ) |
Corner 1 of the quadrangle.
| eVision.EPoint eVision.EQuadrangle.Corner2 | ( | self | ) |
Corner 2 of the quadrangle.
| eVision.EQuadrangle.Corner2 | ( | self, | |
| eVision.EPoint | value ) |
Corner 2 of the quadrangle.
| eVision.EPoint eVision.EQuadrangle.Corner3 | ( | self | ) |
Corner 3 of the quadrangle.
| eVision.EQuadrangle.Corner3 | ( | self, | |
| eVision.EPoint | value ) |
Corner 3 of the quadrangle.
| 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.
| 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.
| graphicContext | Graphic context on which to draw. |
| 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.
| graphicContext | Graphic context on which to draw. |
| frame | Frame of reference in which the quadrangle is defined. |
| 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.
| graphicContext | Graphic context on which to draw. |
| frame | Frame of reference in which the quadrangle is defined. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| 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.
| graphicContext | Graphic context on which to draw. |
| frame | Frame of reference in which the quadrangle is defined. |
| 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. |
| 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.
| graphicContext | Graphic context on which to draw. |
| frame | Frame of reference in which the quadrangle is defined. |
| 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. |
| 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.
| graphicContext | Graphic context on which to draw. |
| frame | Frame of reference in which the quadrangle is defined. |
| 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. |
| 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.
| graphicContext | Graphic context on which to draw. |
| frame | Frame of reference in which the quadrangle is defined. |
| 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. |
| drawDiagonals | Specifies whether or not lines are to be drawn between the 1st and 3rd corners, as well as between the 2nd and 4th corners. |
| 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.
| graphicContext | Graphic context on which to draw. |
| color | The color in which to draw the overlay. |
| 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.
| graphicContext | Graphic context on which to draw. |
| color | The color in which to draw the overlay. |
| frame | Frame of reference in which the quadrangle is defined. |
| 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.
| graphicContext | Graphic context on which to draw. |
| color | The color in which to draw the overlay. |
| frame | Frame of reference in which the quadrangle is defined. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| 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.
| graphicContext | Graphic context on which to draw. |
| color | The color in which to draw the overlay. |
| frame | Frame of reference in which the quadrangle is defined. |
| 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. |
| 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.
| graphicContext | Graphic context on which to draw. |
| color | The color in which to draw the overlay. |
| frame | Frame of reference in which the quadrangle is defined. |
| 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. |
| 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.
| graphicContext | Graphic context on which to draw. |
| color | The color in which to draw the overlay. |
| frame | Frame of reference in which the quadrangle is defined. |
| 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. |
| 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.
| graphicContext | Graphic context on which to draw. |
| color | The color in which to draw the overlay. |
| frame | Frame of reference in which the quadrangle is defined. |
| 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. |
| drawDiagonals | Specifies whether or not lines are to be drawn between the 1st and 3rd corners, as well as between the 2nd and 4th corners. |
| 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.
| graphicContext | Graphic context on which to draw. |
| color | The color in which to draw the overlay. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| 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.
| graphicContext | Graphic context on which to draw. |
| color | The color in which to draw the overlay. |
| 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. |
| 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.
| graphicContext | Graphic context on which to draw. |
| color | The color in which to draw the overlay. |
| 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. |
| 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.
| graphicContext | Graphic context on which to draw. |
| color | The color in which to draw the overlay. |
| 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. |
| 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.
| graphicContext | Graphic context on which to draw. |
| color | The color in which to draw the overlay. |
| 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. |
| drawDiagonals | Specifies whether or not lines are to be drawn between the 1st and 3rd corners, as well as between the 2nd and 4th corners. |
| 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.
| graphicContext | Graphic context on which to draw. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| 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.
| graphicContext | Graphic context on which to draw. |
| 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. |
| 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.
| graphicContext | Graphic context on which to draw. |
| 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. |
| 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.
| graphicContext | Graphic context on which to draw. |
| 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. |
| 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.
| graphicContext | Graphic context on which to draw. |
| 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. |
| drawDiagonals | Specifies whether or not lines are to be drawn between the 1st and 3rd corners, as well as between the 2nd and 4th corners. |
| float eVision.EQuadrangle.GetCornerAngle | ( | self, | |
| int | cornerIndex ) |
Returns the angle of a given corner of the quadrangle.
| cornerIndex | The index of the corner of interest (must lie in the range between 0 and 3, inclusive). |
| eVision.EPoint eVision.EQuadrangle.GetPoint | ( | self, | |
| int | index ) |
Returns the coordinate of a given corner of the quadrangle.
| index | The index of the corner of interest (must lie in the range between 0 and 3, inclusive). |
| 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.
| sideIndex | The index of the side of interest (must lie in the range between 0 and 3, inclusive). |
| 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.
| sideIndex | The index of the side of interest (must lie in the range between 0 and 3, inclusive). |
| eVision.EPoint eVision.EQuadrangle.GravityCenter | ( | self | ) |
Returns the gravity center of the quadrangle.
| bool eVision.EQuadrangle.IsInside | ( | self, | |
| eVision.EPoint | point ) |
| bool eVision.EQuadrangle.IsInside | ( | self, | |
| eVision.EPoint | point, | ||
| bool | includeEdges ) |
| bool eVision.EQuadrangle.IsPointInside | ( | self, | |
| eVision.EPoint | point ) |
Tests if a point is inside the quadrangle.
| point | The point. |
| bool eVision.EQuadrangle.IsPointInside | ( | self, | |
| eVision.EPoint | point, | ||
| bool | includeEdges ) |
Tests if a point is inside the quadrangle.
| point | The point. |
| includeEdges | Takes the edges as part of the interior of the eVision.EQuadrangle. Default: false. |
| bool eVision.EQuadrangle.IsQuadrangleInside | ( | self, | |
| eVision.EQuadrangle | quadrangle ) |
Tests if a quadrangle is inside the quadrangle.
| quadrangle | The other quadrangle that is inside the eVision.EQuadrangle or not |
| bool eVision.EQuadrangle.IsQuadrangleInside | ( | self, | |
| eVision.EQuadrangle | quadrangle, | ||
| bool | includeEdges ) |
Tests if a quadrangle is inside the quadrangle.
| quadrangle | The other quadrangle that is inside the eVision.EQuadrangle or not |
| includeEdges | Takes the edges as part of the interior of the eVision.EQuadrangle. Default: false. |
| eVision.EQuadrangle eVision.EQuadrangle.LocalToSensor | ( | self, | |
| eVision.EFrame | frame ) |
Converts the eVision.EQuadrangle from the local reference frame to the sensor reference frame.
| frame | Reference frame in which the eVision.EQuadrangle is defined. |
| bool eVision.EQuadrangle.OverLaps | ( | self, | |
| eVision.EQuadrangle | other ) |
Tests if the quadrangles overlap.
| other | The eVision.EQuadrangle to test. |
| float eVision.EQuadrangle.Perimeter | ( | self | ) |
Returns the perimeter of the quadrangle.
| eVision.EQuadrangle eVision.EQuadrangle.SensorToLocal | ( | self, | |
| eVision.EFrame | frame ) |
Converts the eVision.EQuadrangle from the sensor reference frame to the local reference frame.
| frame | Reference frame in which the eVision.EQuadrangle is defined. |
| None eVision.EQuadrangle.SetPoint | ( | self, | |
| int | index, | ||
| eVision.EPoint | location ) |
Sets the coordinates of a given corner of the quadrangle.
| index | The index of the corner of interest (must lie in the range between 0 and 3, inclusive). |
| location | The coordinate. |
| 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).