Represents a model of a line segment. More...


Public Member Functions | |
| ELine () | |
| Constructs a ELine object. | |
| ELine (eVision.EPoint center, float length, float angle) | |
| Constructs a ELine object. | |
| ELine (eVision.EPoint center, float length) | |
| Constructs a ELine object. | |
| ELine (eVision.EPoint origin, eVision.EPoint end) | |
| Constructs a ELine object. | |
| ELine (eVision.ELine other) | |
| Constructs a ELine object. | |
| ELine (eVision.Legacy.ELine other) | |
| Constructs a ELine object. | |
| void | CopyTo (eVision.ELine other) |
| Copy the ELine to other. | |
| void | SetFromOriginAndEnd (eVision.EPoint origin, eVision.EPoint end) |
| Sets the geometric parameters (center coordinates, length, and rotation angle) of a ELine object. | |
| eVision.EPoint | GetPoint (float fraction) |
| Returns the coordinates of a point along the line. | |
| new void | Load (string path) |
| Load the ELine configuration. The given ESerializer must have been created for reading. | |
| new void | Load (eVision.ESerializer serializer) |
| Load the ELine configuration. The given ESerializer must have been created for reading. | |
| new void | Save (string path) |
| Save the ELine configuration. The given ESerializer must have been created for writing. | |
| new void | Save (eVision.ESerializer serializer) |
| Save the ELine configuration. The given ESerializer must have been created for writing. | |
| 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. | |
Static Public Member Functions | |
| static float | GetAngleBetweenLines (eVision.ELine line1, eVision.ELine line2) |
| Computes the angle between two lines. | |
| static float | GetDistanceBetweenPointAndLine (eVision.EPoint pt, eVision.ELine line, bool limited) |
| Computes the distance between a point and a line. | |
| static float | GetDistanceBetweenPointAndLine (eVision.EPoint pt, eVision.ELine line) |
| Computes the distance between a point and a line. | |
| static eVision.EPoint | GetProjectionOfPointOnLine (eVision.EPoint pt, eVision.ELine line, bool limited) |
| Computes the projection of a point on a line. | |
| static eVision.EPoint | GetProjectionOfPointOnLine (eVision.EPoint pt, eVision.ELine line) |
| Computes the projection of a point on a line. | |
| static int | GetIntersectionOfLines (eVision.ELine line1, eVision.ELine line2, ref eVision.EPoint intersection, bool limited) |
| Computes the intersection between two lines. | |
| static int | GetIntersectionOfLines (eVision.ELine line1, eVision.ELine line2, ref eVision.EPoint intersection) |
| Computes the intersection between two lines. | |
Properties | |
| eVision.EPoint | Center [get, set] |
| Center of the line. | |
| float | CenterX [get, set] |
| Abscissa of the center of the ELine. | |
| float | CenterY [get, set] |
| Ordinate of the center of the ELine. | |
| float | Angle [get, set] |
| Orientation of the line. | |
| float | Length [get, set] |
| Length of the ELine object. | |
| eVision.EPoint | Org [get] |
| Origin point coordinates of the ELine object. | |
| eVision.EPoint | End [get] |
| End point coordinates of the ELine object. | |
| 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 line segment.
License(s): BasicTypes
| eVision.ELine.ELine | ( | ) |
Constructs a ELine object.
| eVision.ELine.ELine | ( | eVision.EPoint | center, |
| float | length, | ||
| float | angle ) |
Constructs a ELine object.
| center | Center coordinates of the line at its nominal position. The default value is (0,0). |
| length | Nominal length of the line. The default value is 100. |
| angle | Nominal rotation angle of the line. The default value is 0. |
| eVision.ELine.ELine | ( | eVision.EPoint | center, |
| float | length ) |
Constructs a ELine object.
| center | Center coordinates of the line at its nominal position. The default value is (0,0). |
| length | Nominal length of the line. The default value is 100. |
| eVision.ELine.ELine | ( | eVision.EPoint | origin, |
| eVision.EPoint | end ) |
Constructs a ELine object.
| origin | Origin point coordinates of the line. |
| end | End point coordinates of the line. |
| eVision.ELine.ELine | ( | eVision.ELine | other | ) |
| eVision.ELine.ELine | ( | eVision.Legacy.ELine | other | ) |
| void eVision.ELine.CopyTo | ( | eVision.ELine | other | ) |
|
static |
Computes the angle between two lines.
| line1 | First line |
| line2 | Second line |
The angle returned by this function is signed in the trigonometric sense, meaning that angle(1,2) = -angle(2,1).
|
static |
Computes the distance between a point and a line.
| pt | The point. |
| line | The line. |
When the line is restricted to a segment and the orthogonal projection of the point onto the line falls outside this segment, the distance to the closest endpoint of the segment is returned instead.
|
static |
Computes the distance between a point and a line.
| pt | The point. |
| line | The line. |
| limited | Indicates if the line parameter should be considered as an infinite line or as a segment. |
When the line is restricted to a segment and the orthogonal projection of the point onto the line falls outside this segment, the distance to the closest endpoint of the segment is returned instead.
|
static |
Computes the intersection between two lines.
| line1 | First line. |
| line2 | Second line. |
| intersection | Found intersection. |
The function returns the number of intersections found. It will return -1 if the two lines are overlapping.
|
static |
Computes the intersection between two lines.
| line1 | First line. |
| line2 | Second line. |
| intersection | Found intersection. |
| limited | Indicates if the line parameters should be considered as infinite lines or as a segments. |
The function returns the number of intersections found. It will return -1 if the two lines are overlapping.
| eVision.EPoint eVision.ELine.GetPoint | ( | float | fraction | ) |
Returns the coordinates of a point along the line.
| fraction | Point location expressed as a fraction of the line length (range [-1, +1]). |
|
static |
Computes the projection of a point on a line.
| pt | The point. |
| line | The line. |
When the line is restricted to a segment and the orthogonal projection of the point onto the line falls outside this segment, the closest endpoint of the segment is returned instead.
|
static |
Computes the projection of a point on a line.
| pt | The point. |
| line | The line. |
| limited | Indicates if the line parameter should be considered as an infinite line or as a segment. |
When the line is restricted to a segment and the orthogonal projection of the point onto the line falls outside this segment, the closest endpoint of the segment is returned instead.
| new void eVision.ELine.Load | ( | eVision.ESerializer | serializer | ) |
Load the ELine configuration. The given ESerializer must have been created for reading.
| serializer | The serializer. |
| new void eVision.ELine.Load | ( | string | path | ) |
Load the ELine configuration. The given ESerializer must have been created for reading.
| path | The file path. |
| new void eVision.ELine.Save | ( | eVision.ESerializer | serializer | ) |
Save the ELine configuration. The given ESerializer must have been created for writing.
| serializer | The serializer. |
| new void eVision.ELine.Save | ( | string | path | ) |
Save the ELine configuration. The given ESerializer must have been created for writing.
| path | The file path. |
| void eVision.ELine.SetFromOriginAndEnd | ( | eVision.EPoint | origin, |
| eVision.EPoint | end ) |
Sets the geometric parameters (center coordinates, length, and rotation angle) of a ELine object.
| origin | Origin point coordinates of the line. |
| end | End point coordinates of the line. |
|
getset |
Orientation of the line.
|
get |
Available edition modes for the shape.
|
getset |
Center of the line.
|
getset |
Abscissa of the center of the ELine.
|
getset |
Ordinate of the center of the ELine.
|
get |
Textual description of the shape and its parameters.
|
get |
End point coordinates of the ELine object.
|
getset |
Length of the ELine object.
By default, the length of the line is 100, which means 100 pixels when the field of view is not calibrated, and 100 physical units in case of a calibrated field of view.
|
get |
Origin point coordinates of the ELine object.