This class represents a polygon with four corners (with sub-pixel accuracy). More...
#include <eVision/Easy/EQuadrangle.h>
Public Member Functions | |
| EQuadrangle () | |
| Constructs a EQuadrangle. The default constructor initializes all points to 0. | |
| EQuadrangle (std::vector< eVision::EPoint > corners) | |
| Constructs a EQuadrangle. The default constructor initializes all points to 0. | |
| void | SetPoint (const uint32_t &index, const eVision::EPoint &location) |
| Sets the coordinates of a given corner of the quadrangle. | |
| bool | IsInside (const eVision::EPoint &point, bool includeEdges) const |
| bool | IsInside (const eVision::EPoint &point) const |
| bool | IsPointInside (const eVision::EPoint &point, bool includeEdges) const |
| Tests if a point is inside the quadrangle. | |
| bool | IsPointInside (const eVision::EPoint &point) const |
| Tests if a point is inside the quadrangle. | |
| bool | IsQuadrangleInside (const eVision::EQuadrangle &quadrangle, bool includeEdges) const |
| Tests if a quadrangle is inside the quadrangle. | |
| bool | IsQuadrangleInside (const eVision::EQuadrangle &quadrangle) const |
| Tests if a quadrangle is inside the quadrangle. | |
| bool | OverLaps (const eVision::EQuadrangle &other) const |
| Tests if the quadrangles overlap. | |
| float | ComputeOverlap (const eVision::EQuadrangle &other) const |
| Computes the overlap (intersection / min(area1, area2)) of this and the other EQuadrangle. | |
| eVision::EPoint | GetPoint (const uint32_t index) const |
| Returns the coordinate of a given corner of the quadrangle. | |
| float | GetSideAngle (uint32_t sideIndex) const |
| Returns the angle of a given side of the quadrangle. | |
| float | GetSideLength (uint32_t sideIndex) const |
| Returns the length of a given side of the quadrangle. | |
| float | GetCornerAngle (uint32_t cornerIndex) const |
| Returns the angle of a given corner of the quadrangle. | |
| eVision::EPoint | GetGravityCenter () const |
| Returns the gravity center of the quadrangle. | |
| float | GetArea () const |
| Returns the area of the quadrangle. | |
| float | GetPerimeter () const |
| Returns the perimeter of the quadrangle. | |
| std::vector< eVision::EPoint > | GetCorners () const |
| The corners of the EQuadrangle. | |
| eVision::EPoint | GetUpperLeftCorner () const |
| Returns the coordinates of the upper left corner of the quadrangle (the position with the minimum Y and then minimum X). | |
| eVision::EQuadrangle | SensorToLocal (const eVision::EFrame &frame) const |
| Converts the EQuadrangle from the sensor reference frame to the local reference frame. | |
| eVision::EQuadrangle | LocalToSensor (const eVision::EFrame &frame) const |
| Converts the EQuadrangle from the local reference frame to the sensor reference frame. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, float zoomX, float zoomY, float panX, float panY) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, float zoomX, float zoomY, float panX) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, float zoomX, float zoomY) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, float zoomX) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | Draw (eVision::EDrawAdapter *graphicContext) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EFrame &frame, float zoomX, float zoomY, float panX) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EFrame &frame, float zoomX, float zoomY) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EFrame &frame, float zoomX) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::EFrame &frame) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::ERGBColor &color, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::ERGBColor &color, float zoomX, float zoomY, float panX, float panY) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::ERGBColor &color, float zoomX, float zoomY, float panX) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::ERGBColor &color, float zoomX, float zoomY) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::ERGBColor &color, float zoomX) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::ERGBColor &color) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::ERGBColor &color, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::ERGBColor &color, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::ERGBColor &color, const eVision::EFrame &frame, float zoomX, float zoomY, float panX) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::ERGBColor &color, const eVision::EFrame &frame, float zoomX, float zoomY) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::ERGBColor &color, const eVision::EFrame &frame, float zoomX) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | Draw (eVision::EDrawAdapter *graphicContext, const eVision::ERGBColor &color, const eVision::EFrame &frame) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | Draw (HDC graphicContext, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | Draw (HDC graphicContext, float zoomX, float zoomY, float panX, float panY) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | Draw (HDC graphicContext, float zoomX, float zoomY, float panX) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | Draw (HDC graphicContext, float zoomX, float zoomY) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | Draw (HDC graphicContext, float zoomX) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | Draw (HDC graphicContext) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | Draw (HDC graphicContext, const eVision::ERGBColor &color, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | Draw (HDC graphicContext, const eVision::ERGBColor &color, float zoomX, float zoomY, float panX, float panY) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | Draw (HDC graphicContext, const eVision::ERGBColor &color, float zoomX, float zoomY, float panX) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | Draw (HDC graphicContext, const eVision::ERGBColor &color, float zoomX, float zoomY) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | Draw (HDC graphicContext, const eVision::ERGBColor &color, float zoomX) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | Draw (HDC graphicContext, const eVision::ERGBColor &color) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | DrawWithCurrentPen (HDC graphicContext, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | DrawWithCurrentPen (HDC graphicContext, float zoomX, float zoomY, float panX, float panY) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | DrawWithCurrentPen (HDC graphicContext, float zoomX, float zoomY, float panX) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | DrawWithCurrentPen (HDC graphicContext, float zoomX, float zoomY) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | DrawWithCurrentPen (HDC graphicContext, float zoomX) const |
| Draws the quadrangle, by drawing lines between its corners. | |
| void | DrawWithCurrentPen (HDC graphicContext) const |
| Draws the quadrangle, by drawing lines between its corners. | |
Public Attributes | |
| eVision::EPoint | Corner0 |
| Corner 0 of the quadrangle. | |
| eVision::EPoint | Corner1 |
| Corner 1 of the quadrangle. | |
| eVision::EPoint | Corner2 |
| Corner 2 of the quadrangle. | |
| eVision::EPoint | Corner3 |
| Corner 3 of the quadrangle. | |
This class represents a polygon with four corners (with sub-pixel accuracy).
A quadrangle especially arises when representing the corners of a rotated bounding box.
License(s): None
| eVision::EQuadrangle::EQuadrangle | ( | ) |
Constructs a EQuadrangle. The default constructor initializes all points to 0.
| eVision::EQuadrangle::EQuadrangle | ( | std::vector< eVision::EPoint > | corners | ) |
Constructs a EQuadrangle. The default constructor initializes all points to 0.
| corners | The corners of the EQuadrangle. |
| float eVision::EQuadrangle::ComputeOverlap | ( | const eVision::EQuadrangle & | other | ) | const |
Computes the overlap (intersection / min(area1, area2)) of this and the other EQuadrangle.
| other | The other EQuadrangle to which we compute overlap. |
| void eVision::EQuadrangle::Draw | ( | eVision::EDrawAdapter * | graphicContext | ) | const |
Draws the quadrangle, by drawing lines between its corners.
| graphicContext | Graphic context on which to draw. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EFrame & | frame ) const |
Draws the quadrangle, by drawing lines between its corners.
| graphicContext | Graphic context on which to draw. |
| frame | Frame of reference in which the quadrangle is defined. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EFrame & | frame, | ||
| float | zoomX ) const |
Draws the quadrangle, by drawing lines between its corners.
| 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. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY ) const |
Draws the quadrangle, by drawing lines between its corners.
| 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. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws the quadrangle, by drawing lines between its corners.
| 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. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws the quadrangle, by drawing lines between its corners.
| 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. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY, | ||
| bool | drawDiagonals ) const |
Draws the quadrangle, by drawing lines between its corners.
| 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. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::ERGBColor & | color ) const |
Draws the quadrangle, by drawing lines between its corners.
| graphicContext | Graphic context on which to draw. |
| color | The color in which to draw the overlay. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::ERGBColor & | color, | ||
| const eVision::EFrame & | frame ) const |
Draws the quadrangle, by drawing lines between its corners.
| 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. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::ERGBColor & | color, | ||
| const eVision::EFrame & | frame, | ||
| float | zoomX ) const |
Draws the quadrangle, by drawing lines between its corners.
| 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. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::ERGBColor & | color, | ||
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY ) const |
Draws the quadrangle, by drawing lines between its corners.
| 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. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::ERGBColor & | color, | ||
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws the quadrangle, by drawing lines between its corners.
| 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. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::ERGBColor & | color, | ||
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws the quadrangle, by drawing lines between its corners.
| 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. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::ERGBColor & | color, | ||
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY, | ||
| bool | drawDiagonals ) const |
Draws the quadrangle, by drawing lines between its corners.
| 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. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::ERGBColor & | color, | ||
| float | zoomX ) const |
Draws the quadrangle, by drawing lines between its corners.
| 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. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::ERGBColor & | color, | ||
| float | zoomX, | ||
| float | zoomY ) const |
Draws the quadrangle, by drawing lines between its corners.
| 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. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::ERGBColor & | color, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws the quadrangle, by drawing lines between its corners.
| 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. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::ERGBColor & | color, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws the quadrangle, by drawing lines between its corners.
| 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. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| const eVision::ERGBColor & | color, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY, | ||
| bool | drawDiagonals ) const |
Draws the quadrangle, by drawing lines between its corners.
| 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. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| float | zoomX ) const |
Draws the quadrangle, by drawing lines between its corners.
| graphicContext | Graphic context on which to draw. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| float | zoomX, | ||
| float | zoomY ) const |
Draws the quadrangle, by drawing lines between its corners.
| 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. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws the quadrangle, by drawing lines between its corners.
| 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. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws the quadrangle, by drawing lines between its corners.
| 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. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::Draw | ( | eVision::EDrawAdapter * | graphicContext, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY, | ||
| bool | drawDiagonals ) const |
Draws the quadrangle, by drawing lines between its corners.
| 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. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::Draw | ( | HDC | graphicContext | ) | const |
Draws the quadrangle, by drawing lines between its corners.
| graphicContext | Graphic context on which to draw. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::Draw | ( | HDC | graphicContext, |
| const eVision::ERGBColor & | color ) const |
Draws the quadrangle, by drawing lines between its corners.
| graphicContext | Graphic context on which to draw. |
| color | The color in which to draw the overlay. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::Draw | ( | HDC | graphicContext, |
| const eVision::ERGBColor & | color, | ||
| float | zoomX ) const |
Draws the quadrangle, by drawing lines between its corners.
| 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. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::Draw | ( | HDC | graphicContext, |
| const eVision::ERGBColor & | color, | ||
| float | zoomX, | ||
| float | zoomY ) const |
Draws the quadrangle, by drawing lines between its corners.
| 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. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::Draw | ( | HDC | graphicContext, |
| const eVision::ERGBColor & | color, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws the quadrangle, by drawing lines between its corners.
| 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. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::Draw | ( | HDC | graphicContext, |
| const eVision::ERGBColor & | color, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws the quadrangle, by drawing lines between its corners.
| 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. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::Draw | ( | HDC | graphicContext, |
| const eVision::ERGBColor & | color, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY, | ||
| bool | drawDiagonals ) const |
Draws the quadrangle, by drawing lines between its corners.
| 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. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::Draw | ( | HDC | graphicContext, |
| float | zoomX ) const |
Draws the quadrangle, by drawing lines between its corners.
| graphicContext | Graphic context on which to draw. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::Draw | ( | HDC | graphicContext, |
| float | zoomX, | ||
| float | zoomY ) const |
Draws the quadrangle, by drawing lines between its corners.
| 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. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::Draw | ( | HDC | graphicContext, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws the quadrangle, by drawing lines between its corners.
| 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. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::Draw | ( | HDC | graphicContext, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws the quadrangle, by drawing lines between its corners.
| 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. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::Draw | ( | HDC | graphicContext, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY, | ||
| bool | drawDiagonals ) const |
Draws the quadrangle, by drawing lines between its corners.
| 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. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::DrawWithCurrentPen | ( | HDC | graphicContext | ) | const |
Draws the quadrangle, by drawing lines between its corners.
| graphicContext | Graphic context on which to draw. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::DrawWithCurrentPen | ( | HDC | graphicContext, |
| float | zoomX ) const |
Draws the quadrangle, by drawing lines between its corners.
| graphicContext | Graphic context on which to draw. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::DrawWithCurrentPen | ( | HDC | graphicContext, |
| float | zoomX, | ||
| float | zoomY ) const |
Draws the quadrangle, by drawing lines between its corners.
| 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. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::DrawWithCurrentPen | ( | HDC | graphicContext, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws the quadrangle, by drawing lines between its corners.
| 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. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::DrawWithCurrentPen | ( | HDC | graphicContext, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws the quadrangle, by drawing lines between its corners.
| 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. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| void eVision::EQuadrangle::DrawWithCurrentPen | ( | HDC | graphicContext, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY, | ||
| bool | drawDiagonals ) const |
Draws the quadrangle, by drawing lines between its corners.
| 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. |
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 EDrawAdapter by using a instance of EWindowsDrawAdapter.
| float eVision::EQuadrangle::GetArea | ( | ) | const |
Returns the area of the quadrangle.
| float eVision::EQuadrangle::GetCornerAngle | ( | uint32_t | cornerIndex | ) | const |
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). |
| std::vector< eVision::EPoint > eVision::EQuadrangle::GetCorners | ( | ) | const |
The corners of the EQuadrangle.
If the EQuadrangle belongs to an EQRCodeGeometry object, the corners are returned in the following order: top right, top left, bottom left, bottom right. If the EQuadrangle belongs to an EBarCode or 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.
| eVision::EPoint eVision::EQuadrangle::GetGravityCenter | ( | ) | const |
Returns the gravity center of the quadrangle.
| float eVision::EQuadrangle::GetPerimeter | ( | ) | const |
Returns the perimeter of the quadrangle.
| eVision::EPoint eVision::EQuadrangle::GetPoint | ( | const uint32_t | index | ) | const |
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 | ( | uint32_t | sideIndex | ) | const |
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 | ( | uint32_t | sideIndex | ) | const |
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::GetUpperLeftCorner | ( | ) | const |
Returns the coordinates of the upper left corner of the quadrangle (the position with the minimum Y and then minimum X).
| bool eVision::EQuadrangle::IsInside | ( | const eVision::EPoint & | point | ) | const |
| bool eVision::EQuadrangle::IsInside | ( | const eVision::EPoint & | point, |
| bool | includeEdges ) const |
| bool eVision::EQuadrangle::IsPointInside | ( | const eVision::EPoint & | point | ) | const |
Tests if a point is inside the quadrangle.
| point | The point. |
| bool eVision::EQuadrangle::IsPointInside | ( | const eVision::EPoint & | point, |
| bool | includeEdges ) const |
Tests if a point is inside the quadrangle.
| point | The point. |
| includeEdges | Takes the edges as part of the interior of the EQuadrangle. Default: false. |
| bool eVision::EQuadrangle::IsQuadrangleInside | ( | const eVision::EQuadrangle & | quadrangle | ) | const |
Tests if a quadrangle is inside the quadrangle.
| quadrangle | The other quadrangle that is inside the EQuadrangle or not |
| bool eVision::EQuadrangle::IsQuadrangleInside | ( | const eVision::EQuadrangle & | quadrangle, |
| bool | includeEdges ) const |
Tests if a quadrangle is inside the quadrangle.
| quadrangle | The other quadrangle that is inside the EQuadrangle or not |
| includeEdges | Takes the edges as part of the interior of the EQuadrangle. Default: false. |
| eVision::EQuadrangle eVision::EQuadrangle::LocalToSensor | ( | const eVision::EFrame & | frame | ) | const |
Converts the EQuadrangle from the local reference frame to the sensor reference frame.
| frame | Reference frame in which the EQuadrangle is defined. |
| bool eVision::EQuadrangle::OverLaps | ( | const eVision::EQuadrangle & | other | ) | const |
Tests if the quadrangles overlap.
| other | The EQuadrangle to test. |
| eVision::EQuadrangle eVision::EQuadrangle::SensorToLocal | ( | const eVision::EFrame & | frame | ) | const |
Converts the EQuadrangle from the sensor reference frame to the local reference frame.
| frame | Reference frame in which the EQuadrangle is defined. |
| void eVision::EQuadrangle::SetPoint | ( | const uint32_t & | index, |
| const 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::Corner0 |
Corner 0 of the quadrangle.
| eVision::EPoint eVision::EQuadrangle::Corner1 |
Corner 1 of the quadrangle.
| eVision::EPoint eVision::EQuadrangle::Corner2 |
Corner 2 of the quadrangle.
| eVision::EPoint eVision::EQuadrangle::Corner3 |
Corner 3 of the quadrangle.