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.ERectangle other) | |
| Constructs a ERectangle. | |
| ERectangle (eVision.ERotatedBoundingBox other) | |
| Constructs a ERectangle. | |
| void | CopyTo (eVision.ERectangle other) |
| Copies all the data from this object to the other object. | |
| eVision.ERectangle | LocalToSensor (eVision.EFrame frame) |
| Transforms a rectangle from local to sensor coordinates. This method throws an exception if the input frame has an anisotropic scale and if the angle is non-null. | |
| eVision.ERectangle | SensorToLocal (eVision.EFrame frame) |
| Transforms a rectangle from sensor to local coordinates. This method throws an exception if the input frame has an anisotropic scale and if the angle is non-null. | |
| 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 | 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.ELine x, eVision.ELine XX, eVision.ELine y, eVision.ELine YY) |
| Retrieves each edge of a ERectangle object. | |
| bool | Contains (eVision.EPoint p) |
| Whether the specified point is inside the rectangle or not. | |
| float | ComputeOverlap (eVision.ERectangle other) |
| Computes the overlap (intersection / min(area1, area2)) of this and the other ERectangle. | |
| bool | IsEqual (eVision.ERectangle other) |
| Comparison operator. | |
| Public Member Functions inherited from eVision.EShape | |
| void | Load (string path) |
| Load the EShape configuration. The given ESerializer must have been created for reading. | |
| void | Load (eVision.ESerializer serializer) |
| Load the EShape configuration. The given ESerializer must have been created for reading. | |
| void | Save (string path) |
| Save the EShape configuration. The given ESerializer must have been created for writing. | |
| void | Save (eVision.ESerializer serializer) |
| Save the EShape configuration. The given ESerializer must have been created for writing. | |
| void | Draw (eVision.EDrawAdapter drawAdapter, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals) |
| Draws the EShape shape. | |
| void | Draw (eVision.EDrawAdapter drawAdapter, float zoomX, float zoomY, float panX, float panY) |
| Draws the EShape shape. | |
| void | Draw (eVision.EDrawAdapter drawAdapter, float zoomX, float zoomY, float panX) |
| Draws the EShape shape. | |
| void | Draw (eVision.EDrawAdapter drawAdapter, float zoomX, float zoomY) |
| Draws the EShape shape. | |
| void | Draw (eVision.EDrawAdapter drawAdapter, float zoomX) |
| Draws the EShape shape. | |
| void | Draw (eVision.EDrawAdapter drawAdapter) |
| Draws the EShape shape. | |
| void | Draw (eVision.EDrawAdapter drawAdapter, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals) |
| Draws the EShape shape. | |
| void | Draw (eVision.EDrawAdapter drawAdapter, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY) |
| Draws the EShape shape. | |
| void | Draw (eVision.EDrawAdapter drawAdapter, eVision.EFrame frame, float zoomX, float zoomY, float panX) |
| Draws the EShape shape. | |
| void | Draw (eVision.EDrawAdapter drawAdapter, eVision.EFrame frame, float zoomX, float zoomY) |
| Draws the EShape shape. | |
| void | Draw (eVision.EDrawAdapter drawAdapter, eVision.EFrame frame, float zoomX) |
| Draws the EShape shape. | |
| void | Draw (eVision.EDrawAdapter drawAdapter, eVision.EFrame frame) |
| Draws the EShape shape. | |
| eVision.EEditionMode | HitTest (int x, int y, float zoomX, float zoomY, float panX, float panY) |
| Detects if the cursor is placed over one of the dragging handles. | |
| eVision.EEditionMode | HitTest (int x, int y, float zoomX, float zoomY, float panX) |
| Detects if the cursor is placed over one of the dragging handles. | |
| eVision.EEditionMode | HitTest (int x, int y, float zoomX, float zoomY) |
| Detects if the cursor is placed over one of the dragging handles. | |
| eVision.EEditionMode | HitTest (int x, int y, float zoomX) |
| Detects if the cursor is placed over one of the dragging handles. | |
| eVision.EEditionMode | HitTest (int x, int y, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY) |
| Detects if the cursor is placed over one of the dragging handles. | |
| eVision.EEditionMode | HitTest (int x, int y, eVision.EFrame frame, float zoomX, float zoomY, float panX) |
| Detects if the cursor is placed over one of the dragging handles. | |
| eVision.EEditionMode | HitTest (int x, int y, eVision.EFrame frame, float zoomX, float zoomY) |
| Detects if the cursor is placed over one of the dragging handles. | |
| eVision.EEditionMode | HitTest (int x, int y, eVision.EFrame frame, float zoomX) |
| Detects if the cursor is placed over one of the dragging handles. | |
| void | Drag (int x, int y, float zoomX, float zoomY, float panX, float panY) |
| Moves the specified handle to a new position and updates all placement parameters of the region. | |
| void | Drag (int x, int y, float zoomX, float zoomY, float panX) |
| Moves the specified handle to a new position and updates all placement parameters of the region. | |
| void | Drag (int x, int y, float zoomX, float zoomY) |
| Moves the specified handle to a new position and updates all placement parameters of the region. | |
| void | Drag (int x, int y, float zoomX) |
| Moves the specified handle to a new position and updates all placement parameters of the region. | |
| void | Drag (int x, int y) |
| Moves the specified handle to a new position and updates all placement parameters of the region. | |
| void | Drag (int x, int y, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY) |
| Moves the specified handle to a new position and updates all placement parameters of the region. | |
| void | Drag (int x, int y, eVision.EFrame frame, float zoomX, float zoomY, float panX) |
| Moves the specified handle to a new position and updates all placement parameters of the region. | |
| void | Drag (int x, int y, eVision.EFrame frame, float zoomX, float zoomY) |
| Moves the specified handle to a new position and updates all placement parameters of the region. | |
| void | Drag (int x, int y, eVision.EFrame frame, float zoomX) |
| Moves the specified handle to a new position and updates all placement parameters of the region. | |
| void | Drag (int x, int y, eVision.EFrame frame) |
| Moves the specified handle to a new position and updates all placement parameters of the region. | |
| eVision.EFrame | ToFrame (bool useAngle, eVision.EFrameScaling frameScaling) |
| Converts the shape to a frame. | |
| eVision.EFrame | ToFrame (bool useAngle, eVision.EFrameScaling frameScaling, eVision.EFrame shapeFrame) |
| Converts the shape to a frame. | |
Properties | |
| eVision.EPoint | Center [get, set] |
| Center of the ERectangle. | |
| float | CenterX [get, set] |
| Abscissa of the center of the ERectangle. | |
| float | CenterY [get, set] |
| Ordinate of the the center of the ERectangle. | |
| float | Angle [get, set] |
| Orientation of the ERectangle. | |
| float | SizeX [get, set] |
| X size of the ERectangle. | |
| float | SizeY [get, set] |
| Y size of the ERectangle. | |
| override eVision.EEditionMode | AvailableEditionModes [get] |
| Available edition modes for the shape. | |
| override string | Description [get] |
| Textual description of the shape and its parameters. | |
| Properties inherited from eVision.EShape | |
| eVision.EEditionMode | EditionMode [get, set] |
| Current edition mode for the shape. Default: EEditionMode_None. | |
| eVision.EEditionMode | AvailableEditionModes [get] |
| Available edition modes for the shape. | |
| string | Description [get] |
| Textual description of the shape and its parameters. | |
Represents a model of a rectangle.
License(s): BasicTypes
| eVision.ERectangle.ERectangle | ( | ) |
Constructs a ERectangle.
| eVision.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.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.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.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.ERectangle.ERectangle | ( | eVision.ERectangle | other | ) |
Constructs a ERectangle.
| other | Another object to be copied in the new object. |
| eVision.ERectangle.ERectangle | ( | eVision.ERotatedBoundingBox | other | ) |
Constructs a ERectangle.
| other | Another object to be copied in the new object. |
| float eVision.ERectangle.ComputeOverlap | ( | eVision.ERectangle | other | ) |
Computes the overlap (intersection / min(area1, area2)) of this and the other ERectangle.
| other | The other ERectangle to which we compute overlap. |
| bool eVision.ERectangle.Contains | ( | eVision.EPoint | p | ) |
Whether the specified point is inside the rectangle or not.
| p | A point. |
| void eVision.ERectangle.CopyTo | ( | eVision.ERectangle | other | ) |
Copies all the data from this object to the other object.
| other | Other ERectangle object in which to copy the content of this object. |
| void eVision.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.ERectangle.GetEdges | ( | eVision.ELine | x, |
| eVision.ELine | XX, | ||
| eVision.ELine | y, | ||
| eVision.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.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.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). |
| bool eVision.ERectangle.IsEqual | ( | eVision.ERectangle | other | ) |
Comparison operator.
| other | Other ERectangle to compare to. |
The comparison is only applied on the geometrical parameters of the ERectangle and not its drawing and graphic manipulation or its frame of reference.
| eVision.ERectangle eVision.ERectangle.LocalToSensor | ( | eVision.EFrame | frame | ) |
Transforms a rectangle from local to sensor coordinates. This method throws an exception if the input frame has an anisotropic scale and if the angle is non-null.
| frame | Reference frame in which the region is defined. |
| eVision.ERectangle eVision.ERectangle.SensorToLocal | ( | eVision.EFrame | frame | ) |
Transforms a rectangle from sensor to local coordinates. This method throws an exception if the input frame has an anisotropic scale and if the angle is non-null.
| frame | Reference frame in which the region is defined. |
| void eVision.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.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.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.
|
getset |
Orientation of the ERectangle.
|
get |
Available edition modes for the shape.
|
getset |
Center of the ERectangle.
|
getset |
Abscissa of the center of the ERectangle.
|
getset |
Ordinate of the the center of the ERectangle.
|
get |
Textual description of the shape and its parameters.
|
getset |
X size of the ERectangle.
|
getset |
Y size of the ERectangle.