Represents a model of a rectangle. More...


Public Member Functions | |
| ERectangle () | |
| Constructs a ERectangle. | |
| ERectangle (eVision.EPoint center, float sizeX, float sizeY, float angle) | |
| Constructs a ERectangle. | |
| ERectangle (eVision.EPoint center, float sizeX, float sizeY) | |
| Constructs a ERectangle. | |
| ERectangle (eVision.EPoint origin, eVision.EPoint end) | |
| Constructs a ERectangle. | |
| ERectangle (eVision.EPoint origin, eVision.EPoint middle, eVision.EPoint end) | |
| Constructs a ERectangle. | |
| ERectangle (eVision.Legacy.ERectangle other) | |
| Constructs a ERectangle. | |
| void | CopyTo (eVision.Legacy.ERectangle other) |
| Copies all the data of the current ERectangle object into another ERectangle object, and returns it. | |
| void | SetFromOppositeCorners (eVision.EPoint origin, eVision.EPoint end) |
| Sets the geometric parameters (center coordinates, size, and rotation angle) of an ERectangle object. | |
| void | SetFromThreeCorners (eVision.EPoint origin, eVision.EPoint middle, eVision.EPoint end) |
| Sets the geometric parameters (center coordinates, size, and rotation angle) of an ERectangle object. | |
| void | SetFromTwoPoints (eVision.EPoint origin, eVision.EPoint end) |
| Sets the geometric parameters (center coordinates, size, and rotation angle) of an ERectangle object. | |
| void | SetFromOriginMiddleEnd (eVision.EPoint origin, eVision.EPoint middle, eVision.EPoint end) |
| Sets the geometric parameters (center coordinates, size, and rotation angle) of an ERectangle object. | |
| void | SetSize (float sizeX, float sizeY) |
| Sets the size of a ERectangle object. | |
| eVision.EPoint | GetPoint (float fractionX, float fractionY) |
| Returns the coordinates of a particular point, specified by its location in the ERectangle area. | |
| void | GetMidEdges (ref eVision.EPoint x, ref eVision.EPoint XX, ref eVision.EPoint y, ref eVision.EPoint YY) |
| Retrieves the center coordinates of each edge of a ERectangle object. | |
| void | GetCorners (ref eVision.EPoint xy, ref eVision.EPoint XXy, ref eVision.EPoint xYY, ref eVision.EPoint XXYY) |
| Retrieves the coordinates of each corner of a ERectangle object. | |
| void | GetEdges (eVision.Legacy.ELine x, eVision.Legacy.ELine XX, eVision.Legacy.ELine y, eVision.Legacy.ELine YY) |
| Retrieves each edge of a ERectangle object. | |
| Public Member Functions inherited from eVision.Legacy.EFrame | |
| EFrame () | |
| Constructs a EFrame object. | |
| EFrame (float centerX, float centerY, float angle, float scale) | |
| Constructs a EFrame object. | |
| EFrame (float centerX, float centerY, float angle) | |
| Constructs a EFrame object. | |
| EFrame (float centerX, float centerY) | |
| Constructs a EFrame object. | |
| EFrame (eVision.EPoint center, float angle, float scale) | |
| Constructs a EFrame object. | |
| EFrame (eVision.Legacy.EFrame frame) | |
| Constructs a EFrame object. | |
| void | CopyTo (eVision.Legacy.EFrame other) |
| Copies all the data from the current EFrame object into another EFrame object, and returns it. | |
| eVision.EPoint | LocalToGlobal (eVision.EPoint local) |
| Transforms a geometrical element from local to global coordinates (local to world). | |
| eVision.Legacy.EFrame | LocalToGlobal (eVision.Legacy.EFrame local) |
| Transforms a geometrical element from local to global coordinates (local to world). | |
| eVision.Legacy.ELine | LocalToGlobal (eVision.Legacy.ELine local) |
| Transforms a geometrical element from local to global coordinates (local to world). | |
| eVision.Legacy.ECircle | LocalToGlobal (eVision.Legacy.ECircle local) |
| Transforms a geometrical element from local to global coordinates (local to world). | |
| eVision.EPoint | GlobalToLocal (eVision.EPoint global) |
| Transforms a geometrical element from global to local coordinates (world to local). | |
| eVision.Legacy.EFrame | GlobalToLocal (eVision.Legacy.EFrame global) |
| Transforms a geometrical element from global to local coordinates (world to local). | |
| void | Load (string path) |
| Load the EFrame configuration. The given ESerializer must have been created for reading. | |
| void | Load (eVision.ESerializer serializer) |
| Load the EFrame configuration. The given ESerializer must have been created for reading. | |
| void | Save (string path) |
| Save the EFrame configuration. The given ESerializer must have been created for writing. | |
| void | Save (eVision.ESerializer serializer) |
| Save the EFrame configuration. The given ESerializer must have been created for writing. | |
| void | SetCenterXY (float centerX, float centerY) |
| Sets the center coordinates of a EFrame object. | |
| eVision.EPoint | MidPoint (eVision.EPoint Point) |
| Returns the middle coordinate between this EFrame object's center and another EFrame object's center. | |
| eVision.EPoint | Rotate (float angle) |
| Returns another EPoint object containing the coordinates of the rotated center point. | |
| float | Square () |
| Compute the sum of the squared coordinates of the center of a EFrame. | |
| float | Modulus () |
| Compute the euclidean modulus of the center of a EFrame. | |
| float | Argument () |
| Compute the polar argument of the center of EFrame object. | |
| float | Dot (eVision.EPoint Point) |
| Compute the dot product of the centers of two EFrame objects. | |
| float | Cross (eVision.EPoint Point) |
| Compute the cross product of the centers of two EFrame objects. | |
| float | Area (eVision.EPoint Point) |
| Compute the oriented area of the parallelogram built on the centers of two EFrame. | |
| eVision.EPoint | Project (eVision.Legacy.ELine shape) |
| Compute the orthogonal projection of the center of a EFrame on another shape. | |
| eVision.EPoint | Project (eVision.Legacy.ECircle shape) |
| Compute the orthogonal projection of the center of a EFrame on another shape. | |
| float | SquaredDistance (eVision.EPoint Point) |
| Compute the squared distance between the centers of two EFrame. | |
| eVision.EPoint | Move (float angle, float distance) |
| Return the position by moving the center along angle by distance. | |
| virtual float | Distance (eVision.EPoint point) |
| Returns the distance between the addressed point and the center of EFrame object. | |
| virtual float | Distance (eVision.Legacy.ELine line, bool segmentOnly) |
| Returns the distance between the addressed point and the center of EFrame object. | |
| virtual float | Distance (eVision.Legacy.ELine line) |
| Returns the distance between the addressed point and the center of EFrame object. | |
| virtual float | Distance (eVision.Legacy.ECircle circle, bool arcOnly) |
| Returns the distance between the addressed point and the center of EFrame object. | |
| virtual float | Distance (eVision.Legacy.ECircle circle) |
| Returns the distance between the addressed point and the center of EFrame object. | |
Properties | |
| float | SizeX [get] |
| X size of the ERectangle. | |
| float | SizeY [get] |
| Y size of the ERectangle. | |
| Properties inherited from eVision.Legacy.EFrame | |
| float | Angle [get, set] |
| Orientation of the frame. | |
| float | Scale [get, set] |
| Horizontal sensor resolution, in pixels per unit. | |
| float | CenterX [get] |
| Abscissa of the origin point of the frame. | |
| float | CenterY [get] |
| Ordinate of the origin point of the frame. | |
| virtual eVision.EPoint | Center [get, set] |
| Center. | |
| float | X [get, set] |
| Abscissa (X coordinate) of the EFrame object. | |
| float | Y [get, set] |
| Ordinate (Y coordinate) of the EFrame object. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from eVision.Legacy.EFrame | |
| static eVision.EPoint | operator+ (eVision.Legacy.EFrame extraArgument, eVision.EPoint point) |
| Returns the addition of the point to the center of the EFrame. | |
| static eVision.EPoint | operator- (eVision.Legacy.EFrame extraArgument, eVision.EPoint point) |
| Returns the substraction of the center of the EFrame with the given point. | |
| static eVision.EPoint | operator* (eVision.Legacy.EFrame extraArgument, float scalar) |
| Returns the multiplication of the center of the EFrame with the given multiplier. | |
| static eVision.EPoint | operator/ (eVision.Legacy.EFrame extraArgument, float scalar) |
| Returns the division of the center of the EFrame with the given divisor. | |
Represents a model of a rectangle.
License(s): BasicTypes
| eVision.Legacy.ERectangle.ERectangle | ( | ) |
Constructs a ERectangle.
| eVision.Legacy.ERectangle.ERectangle | ( | eVision.EPoint | center, |
| float | sizeX, | ||
| float | sizeY, | ||
| float | angle ) |
Constructs a ERectangle.
| center | Center coordinates of the rectangle at its nominal position. The default value is (0,0). |
| sizeX | Nominal size X/Y of the rectangle. Both default values are 100. |
| sizeY | Nominal size X/Y of the rectangle. Both default values are 100. |
| angle | Nominal rotation angle of the rectangle. The default value is 0. |
| eVision.Legacy.ERectangle.ERectangle | ( | eVision.EPoint | center, |
| float | sizeX, | ||
| float | sizeY ) |
Constructs a ERectangle.
| center | Center coordinates of the rectangle at its nominal position. The default value is (0,0). |
| sizeX | Nominal size X/Y of the rectangle. Both default values are 100. |
| sizeY | Nominal size X/Y of the rectangle. Both default values are 100. |
| eVision.Legacy.ERectangle.ERectangle | ( | eVision.EPoint | origin, |
| eVision.EPoint | end ) |
Constructs a ERectangle.
| origin | Upper left point coordinates of the rectangle. |
| end | Lower right point coordinates of the rectangle. |
| eVision.Legacy.ERectangle.ERectangle | ( | eVision.EPoint | origin, |
| eVision.EPoint | middle, | ||
| eVision.EPoint | end ) |
Constructs a ERectangle.
| origin | Upper left point coordinates of the rectangle. |
| middle | A third corner point coordinates. |
| end | Lower right point coordinates of the rectangle. |
| eVision.Legacy.ERectangle.ERectangle | ( | eVision.Legacy.ERectangle | other | ) |
Constructs a ERectangle.
| other | Another ERectangle object to be copied in the new ERectangle object. |
| void eVision.Legacy.ERectangle.CopyTo | ( | eVision.Legacy.ERectangle | other | ) |
Copies all the data of the current ERectangle object into another ERectangle object, and returns it.
| other | Pointer to the ERectangle object in which the current ERectangle object data have to be copied. |
In the overload taking a pointer, in case of a NULL pointer, a new ERectangle object will be created and returned.
| void eVision.Legacy.ERectangle.GetCorners | ( | ref eVision.EPoint | xy, |
| ref eVision.EPoint | XXy, | ||
| ref eVision.EPoint | xYY, | ||
| ref eVision.EPoint | XXYY ) |
Retrieves the coordinates of each corner of a ERectangle object.
| xy | Coordinates of the lower leftmost corner of the ERectangle object. |
| XXy | Coordinates of the lower rightmost corner of the ERectangle object. |
| xYY | Coordinates of the upper leftmost corner of the ERectangle object. |
| XXYY | Coordinates of the upper rightmost corner of the ERectangle object. |
| void eVision.Legacy.ERectangle.GetEdges | ( | eVision.Legacy.ELine | x, |
| eVision.Legacy.ELine | XX, | ||
| eVision.Legacy.ELine | y, | ||
| eVision.Legacy.ELine | YY ) |
Retrieves each edge of a ERectangle object.
| x | Leftmost edge of the ERectangle object. |
| XX | Rightmost edge of the ERectangle object. |
| y | Lower edge of the ERectangle object. |
| YY | Upper edge of the ERectangle object. |
| void eVision.Legacy.ERectangle.GetMidEdges | ( | ref eVision.EPoint | x, |
| ref eVision.EPoint | XX, | ||
| ref eVision.EPoint | y, | ||
| ref eVision.EPoint | YY ) |
Retrieves the center coordinates of each edge of a ERectangle object.
| x | Center coordinates of the leftmost edge of the ERectangle object. |
| XX | Center coordinates of the rightmost edge of the ERectangle object. |
| y | Center coordinates of the lower edge of the ERectangle object. |
| YY | Center coordinates of the upper edge of the ERectangle object. |
| eVision.EPoint eVision.Legacy.ERectangle.GetPoint | ( | float | fractionX, |
| float | fractionY ) |
Returns the coordinates of a particular point, specified by its location in the ERectangle area.
| fractionX | Point location expressed as a fraction of the ERectangle vertical edges (range -1, +1). |
| fractionY | Point location expressed as a fraction of the ERectangle horizontal edges (range -1, +1). |
| void eVision.Legacy.ERectangle.SetFromOppositeCorners | ( | eVision.EPoint | origin, |
| eVision.EPoint | end ) |
Sets the geometric parameters (center coordinates, size, and rotation angle) of an ERectangle object.
| origin | Upper left point coordinates of the rectangle. |
| end | Lower right point coordinates of the rectangle. |
| void eVision.Legacy.ERectangle.SetFromOriginMiddleEnd | ( | eVision.EPoint | origin, |
| eVision.EPoint | middle, | ||
| eVision.EPoint | end ) |
Sets the geometric parameters (center coordinates, size, and rotation angle) of an ERectangle object.
| origin | Upper left point coordinates of the rectangle. |
| middle | A third corner point coordinates. |
| end | Lower right point coordinates of the rectangle. |
Use ERectangle.SetFromThreeCorners instead.
Deprecated in version 25.10. Scheduled to be removed in version 27.6.
| void eVision.Legacy.ERectangle.SetFromThreeCorners | ( | eVision.EPoint | origin, |
| eVision.EPoint | middle, | ||
| eVision.EPoint | end ) |
Sets the geometric parameters (center coordinates, size, and rotation angle) of an ERectangle object.
| origin | Upper left point coordinates of the rectangle. |
| middle | A third corner point coordinates. |
| end | Lower right point coordinates of the rectangle. |
| void eVision.Legacy.ERectangle.SetFromTwoPoints | ( | eVision.EPoint | origin, |
| eVision.EPoint | end ) |
Sets the geometric parameters (center coordinates, size, and rotation angle) of an ERectangle object.
| origin | Upper left point coordinates of the rectangle. |
| end | Lower right point coordinates of the rectangle. |
Use ERectangle.SetFromOppositeCorners instead.
Deprecated in version 25.10. Scheduled to be removed in version 27.6.
| void eVision.Legacy.ERectangle.SetSize | ( | float | sizeX, |
| float | sizeY ) |
Sets the size of a ERectangle object.
| sizeX | Nominal size X of the ERectangle object. Default values is 100. |
| sizeY | Nominal size Y of the ERectangle object. Default values is 100. |
A ERectangle object is fully defined knowing its nominal position (given by the coordinates of its center), its nominal size, its rotation angle and its outline tolerance. By default, the width and height values are 100, which means 100 pixels when the field of view is not calibrated and 100 "units" in case of a calibrated field of view.
|
get |
X size of the ERectangle.
|
get |
Y size of the ERectangle.