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


Public Member Functions | |
| None | __init__ (self) |
| Constructs a eVision.ELine object. | |
| None | __init__ (self, eVision.EPoint center, float length, float angle) |
| Constructs a eVision.ELine object. | |
| None | __init__ (self, eVision.EPoint center, float length) |
| Constructs a eVision.ELine object. | |
| None | __init__ (self, eVision.EPoint origin, eVision.EPoint end) |
| Constructs a eVision.ELine object. | |
| None | __init__ (self, eVision.ELine other) |
| Constructs a eVision.ELine object. | |
| None | __init__ (self, eVision.Legacy.ELine other) |
| Constructs a eVision.ELine object. | |
| None | CopyTo (self, eVision.ELine other) |
| Copy the eVision.ELine to other. | |
| None | SetFromOriginAndEnd (self, eVision.EPoint origin, eVision.EPoint end) |
| Sets the geometric parameters (center coordinates, length, and rotation angle) of a eVision.ELine object. | |
| eVision.EPoint | GetPoint (self, float fraction) |
| Returns the coordinates of a point along the line. | |
| None | Load (self, str path) |
| Load the eVision.ELine configuration. | |
| None | Load (self, eVision.ESerializer|None serializer) |
| Load the eVision.ELine configuration. | |
| None | Save (self, str path) |
| Save the eVision.ELine configuration. | |
| None | Save (self, eVision.ESerializer|None serializer) |
| Save the eVision.ELine configuration. | |
| eVision.EPoint | Center (self) |
| Center of the line. | |
| Center (self, eVision.EPoint value) | |
| Center of the line. | |
| float | CenterX (self) |
| Abscissa of the center of the eVision.ELine. | |
| CenterX (self, float value) | |
| Abscissa of the center of the eVision.ELine. | |
| float | CenterY (self) |
| Ordinate of the center of the eVision.ELine. | |
| CenterY (self, float value) | |
| Ordinate of the center of the eVision.ELine. | |
| float | Angle (self) |
| Orientation of the line. | |
| Angle (self, float value) | |
| Orientation of the line. | |
| float | Length (self) |
| Length of the eVision.ELine object. | |
| Length (self, float value) | |
| Length of the eVision.ELine object. | |
| eVision.EPoint | Org (self) |
| Origin point coordinates of the eVision.ELine object. | |
| eVision.EPoint | End (self) |
| End point coordinates of the eVision.ELine object. | |
| eVision.EEditionMode | AvailableEditionModes (self) |
| Available edition modes for the shape. | |
| str | Description (self) |
| Textual description of the shape and its parameters. | |
| Public Member Functions inherited from eVision.EShape | |
| None | Draw (self, eVision.EDrawAdapter|None drawAdapter, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals) |
| Draws the eVision.EShape shape. | |
| None | Draw (self, eVision.EDrawAdapter|None drawAdapter, float zoomX, float zoomY, float panX, float panY) |
| Draws the eVision.EShape shape. | |
| None | Draw (self, eVision.EDrawAdapter|None drawAdapter, float zoomX, float zoomY, float panX) |
| Draws the eVision.EShape shape. | |
| None | Draw (self, eVision.EDrawAdapter|None drawAdapter, float zoomX, float zoomY) |
| Draws the eVision.EShape shape. | |
| None | Draw (self, eVision.EDrawAdapter|None drawAdapter, float zoomX) |
| Draws the eVision.EShape shape. | |
| None | Draw (self, eVision.EDrawAdapter|None drawAdapter) |
| Draws the eVision.EShape shape. | |
| None | Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals) |
| Draws the eVision.EShape shape. | |
| None | Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY) |
| Draws the eVision.EShape shape. | |
| None | Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX, float zoomY, float panX) |
| Draws the eVision.EShape shape. | |
| None | Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX, float zoomY) |
| Draws the eVision.EShape shape. | |
| None | Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX) |
| Draws the eVision.EShape shape. | |
| None | Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame) |
| Draws the eVision.EShape shape. | |
| eVision.EEditionMode | HitTest (self, 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 (self, 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 (self, int x, int y, float zoomX, float zoomY) |
| Detects if the cursor is placed over one of the dragging handles. | |
| eVision.EEditionMode | HitTest (self, int x, int y, float zoomX) |
| Detects if the cursor is placed over one of the dragging handles. | |
| eVision.EEditionMode | HitTest (self, 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 (self, 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 (self, 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 (self, int x, int y, eVision.EFrame frame, float zoomX) |
| Detects if the cursor is placed over one of the dragging handles. | |
| None | Drag (self, 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. | |
| None | Drag (self, 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. | |
| None | Drag (self, int x, int y, float zoomX, float zoomY) |
| Moves the specified handle to a new position and updates all placement parameters of the region. | |
| None | Drag (self, int x, int y, float zoomX) |
| Moves the specified handle to a new position and updates all placement parameters of the region. | |
| None | Drag (self, int x, int y) |
| Moves the specified handle to a new position and updates all placement parameters of the region. | |
| None | Drag (self, 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. | |
| None | Drag (self, 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. | |
| None | Drag (self, 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. | |
| None | Drag (self, 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. | |
| None | Drag (self, 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 (self, bool useAngle, eVision.EFrameScaling frameScaling) |
| Converts the shape to a frame. | |
| eVision.EFrame | ToFrame (self, bool useAngle, eVision.EFrameScaling frameScaling, eVision.EFrame shapeFrame) |
| Converts the shape to a frame. | |
| eVision.EEditionMode | EditionMode (self) |
| Current edition mode for the shape. | |
| EditionMode (self, eVision.EEditionMode value) | |
| Current edition mode for the shape. | |
Static Public Member Functions | |
| float | GetAngleBetweenLines (eVision.ELine line1, eVision.ELine line2) |
| Computes the angle between two lines. | |
| float | GetDistanceBetweenPointAndLine (eVision.EPoint pt, eVision.ELine line, bool limited) |
| Computes the distance between a point and a line. | |
| float | GetDistanceBetweenPointAndLine (eVision.EPoint pt, eVision.ELine line) |
| Computes the distance between a point and a line. | |
| eVision.EPoint | GetProjectionOfPointOnLine (eVision.EPoint pt, eVision.ELine line, bool limited) |
| Computes the projection of a point on a line. | |
| eVision.EPoint | GetProjectionOfPointOnLine (eVision.EPoint pt, eVision.ELine line) |
| Computes the projection of a point on a line. | |
| int | GetIntersectionOfLines (eVision.ELine line1, eVision.ELine line2, eVision.EPoint intersection, bool limited) |
| Computes the intersection between two lines. | |
| int | GetIntersectionOfLines (eVision.ELine line1, eVision.ELine line2, eVision.EPoint intersection) |
| Computes the intersection between two lines. | |
Represents a model of a line segment.
Remarks:
License(s): BasicTypes
| None eVision.ELine.__init__ | ( | self | ) |
Constructs a eVision.ELine object.
| None eVision.ELine.__init__ | ( | self, | |
| eVision.EPoint | center, | ||
| float | length, | ||
| float | angle ) |
Constructs a eVision.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. |
| None eVision.ELine.__init__ | ( | self, | |
| eVision.EPoint | center, | ||
| float | length ) |
Constructs a eVision.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. |
| None eVision.ELine.__init__ | ( | self, | |
| eVision.EPoint | origin, | ||
| eVision.EPoint | end ) |
Constructs a eVision.ELine object.
| origin | Origin point coordinates of the line. |
| end | End point coordinates of the line. |
| None eVision.ELine.__init__ | ( | self, | |
| eVision.ELine | other ) |
Constructs a eVision.ELine object.
| other | Another eVision.ELine object to be copied in the new eVision.ELine object. |
| None eVision.ELine.__init__ | ( | self, | |
| eVision.Legacy.ELine | other ) |
Constructs a eVision.ELine object.
| other | Another eVision.ELine object to be copied in the new eVision.ELine object. |
| float eVision.ELine.Angle | ( | self | ) |
Orientation of the line.
| eVision.ELine.Angle | ( | self, | |
| float | value ) |
Orientation of the line.
| eVision.EEditionMode eVision.ELine.AvailableEditionModes | ( | self | ) |
Available edition modes for the shape.
Reimplemented from eVision.EShape.
| eVision.EPoint eVision.ELine.Center | ( | self | ) |
Center of the line.
| eVision.ELine.Center | ( | self, | |
| eVision.EPoint | value ) |
Center of the line.
| float eVision.ELine.CenterX | ( | self | ) |
Abscissa of the center of the eVision.ELine.
| eVision.ELine.CenterX | ( | self, | |
| float | value ) |
Abscissa of the center of the eVision.ELine.
| float eVision.ELine.CenterY | ( | self | ) |
Ordinate of the center of the eVision.ELine.
| eVision.ELine.CenterY | ( | self, | |
| float | value ) |
Ordinate of the center of the eVision.ELine.
| None eVision.ELine.CopyTo | ( | self, | |
| eVision.ELine | other ) |
Copy the eVision.ELine to other.
| other | eVision.ELine object in which the current eVision.ELine object data have to be copied. |
| str eVision.ELine.Description | ( | self | ) |
Textual description of the shape and its parameters.
Reimplemented from eVision.EShape.
| eVision.EPoint eVision.ELine.End | ( | self | ) |
End point coordinates of the eVision.ELine object.
|
static |
Computes the angle between two lines.
Remarks:
The angle returned by this function is signed in the trigonometric sense, meaning that angle(1,2) = -angle(2,1).
| line1 | First line |
| line2 | Second line |
|
static |
Computes the distance between a point and a line.
Remarks:
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.
| pt | The point. |
| line | The line. |
|
static |
Computes the distance between a point and a line.
Remarks:
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.
| pt | The point. |
| line | The line. |
| limited | Indicates if the line parameter should be considered as an infinite line or as a segment. |
|
static |
Computes the intersection between two lines.
Remarks:
The function returns the number of intersections found. It will return -1 if the two lines are overlapping.
| line1 | First line. |
| line2 | Second line. |
| intersection | Found intersection. |
|
static |
Computes the intersection between two lines.
Remarks:
The function returns the number of intersections found. It will return -1 if the two lines are overlapping.
| 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. |
| eVision.EPoint eVision.ELine.GetPoint | ( | self, | |
| 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.
Remarks:
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.
| pt | The point. |
| line | The line. |
|
static |
Computes the projection of a point on a line.
Remarks:
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.
| pt | The point. |
| line | The line. |
| limited | Indicates if the line parameter should be considered as an infinite line or as a segment. |
| float eVision.ELine.Length | ( | self | ) |
Length of the eVision.ELine object.
Remarks:
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.
| eVision.ELine.Length | ( | self, | |
| float | value ) |
Length of the eVision.ELine object.
Remarks:
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.
| None eVision.ELine.Load | ( | self, | |
| eVision.ESerializer | None | serializer ) |
Load the eVision.ELine configuration.
The given eVision.ESerializer must have been created for reading.
| serializer | The serializer. |
Reimplemented from eVision.EShape.
| None eVision.ELine.Load | ( | self, | |
| str | path ) |
Load the eVision.ELine configuration.
The given eVision.ESerializer must have been created for reading.
| path | The file path. |
Reimplemented from eVision.EShape.
| eVision.EPoint eVision.ELine.Org | ( | self | ) |
Origin point coordinates of the eVision.ELine object.
| None eVision.ELine.Save | ( | self, | |
| eVision.ESerializer | None | serializer ) |
Save the eVision.ELine configuration.
The given eVision.ESerializer must have been created for writing.
| serializer | The serializer. |
Reimplemented from eVision.EShape.
| None eVision.ELine.Save | ( | self, | |
| str | path ) |
Save the eVision.ELine configuration.
The given eVision.ESerializer must have been created for writing.
| path | The file path. |
Reimplemented from eVision.EShape.
| None eVision.ELine.SetFromOriginAndEnd | ( | self, | |
| eVision.EPoint | origin, | ||
| eVision.EPoint | end ) |
Sets the geometric parameters (center coordinates, length, and rotation angle) of a eVision.ELine object.
| origin | Origin point coordinates of the line. |
| end | End point coordinates of the line. |