Represents a model of a line segment. More...
#include <eVision/Easy/ELine.h>
Public Member Functions | |
| ELine () | |
| Constructs a ELine object. | |
| ELine (const eVision::EPoint ¢er, float length, float angle) | |
| Constructs a ELine object. | |
| ELine (const eVision::EPoint ¢er, float length) | |
| Constructs a ELine object. | |
| ELine (const eVision::EPoint &origin, const eVision::EPoint &end) | |
| Constructs a ELine object. | |
| ELine (const eVision::ELine &other) | |
| Constructs a ELine object. | |
| ELine (const eVision::Legacy::ELine &other) | |
| Constructs a ELine object. | |
| virtual | ~ELine () throw () |
| eVision::ELine & | operator= (const eVision::ELine &other) |
| Copies all the data from another ELine object into the current ELine object. | |
| void | CopyTo (eVision::ELine &other) const |
| Copy the ELine to other. | |
| eVision::EPoint | GetCenter () const |
| Center of the line. | |
| void | SetCenter (const eVision::EPoint ¢er) |
| Center of the line. | |
| void | SetCenterX (float centerX) |
| Abscissa of the center of the ELine. | |
| float | GetCenterX () const |
| Abscissa of the center of the ELine. | |
| void | SetCenterY (float centerY) |
| Ordinate of the center of the ELine. | |
| float | GetCenterY () const |
| Ordinate of the center of the ELine. | |
| float | GetAngle () const |
| Orientation of the line. | |
| void | SetAngle (float angle) |
| Orientation of the line. | |
| void | SetFromOriginAndEnd (const eVision::EPoint &origin, const eVision::EPoint &end) |
| Sets the geometric parameters (center coordinates, length, and rotation angle) of a ELine object. | |
| void | SetLength (float length) |
| Length of the ELine object. | |
| float | GetLength () const |
| Length of the ELine object. | |
| eVision::EPoint | GetOrg () const |
| Origin point coordinates of the ELine object. | |
| eVision::EPoint | GetEnd () const |
| End point coordinates of the ELine object. | |
| eVision::EPoint | GetPoint (float fraction) const |
| Returns the coordinates of a point along the line. | |
| void | DrawOrigin (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY, float panX, float panY) const |
| Draws the origin of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter. | |
| void | DrawOrigin (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY, float panX) const |
| Draws the origin of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter. | |
| void | DrawOrigin (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY) const |
| Draws the origin of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter. | |
| void | DrawOrigin (eVision::EDrawAdapter *drawAdapter, float zoomX) const |
| Draws the origin of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter. | |
| void | DrawOrigin (eVision::EDrawAdapter *drawAdapter) const |
| Draws the origin of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter. | |
| void | DrawOrigin (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY) const |
| Draws the origin of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter. | |
| void | DrawOrigin (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY, float panX) const |
| Draws the origin of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter. | |
| void | DrawOrigin (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY) const |
| Draws the origin of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter. | |
| void | DrawOrigin (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX) const |
| Draws the origin of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter. | |
| void | DrawOrigin (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame) const |
| Draws the origin of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter. | |
| void | DrawEnd (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY, float panX, float panY) const |
| Draws the end of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter. | |
| void | DrawEnd (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY, float panX) const |
| Draws the end of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter. | |
| void | DrawEnd (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY) const |
| Draws the end of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter. | |
| void | DrawEnd (eVision::EDrawAdapter *drawAdapter, float zoomX) const |
| Draws the end of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter. | |
| void | DrawEnd (eVision::EDrawAdapter *drawAdapter) const |
| Draws the end of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter. | |
| void | DrawEnd (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY) const |
| Draws the end of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter. | |
| void | DrawEnd (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY, float panX) const |
| Draws the end of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter. | |
| void | DrawEnd (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY) const |
| Draws the end of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter. | |
| void | DrawEnd (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX) const |
| Draws the end of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter. | |
| void | DrawEnd (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame) const |
| Draws the end of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter. | |
| void | DrawOriginEnd (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY, float panX, float panY) const |
| Draws both the origin and the end of the ELine object as small rectangles oriented along the line, using the current pen and brush of the draw adapter. | |
| void | DrawOriginEnd (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY, float panX) const |
| Draws both the origin and the end of the ELine object as small rectangles oriented along the line, using the current pen and brush of the draw adapter. | |
| void | DrawOriginEnd (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY) const |
| Draws both the origin and the end of the ELine object as small rectangles oriented along the line, using the current pen and brush of the draw adapter. | |
| void | DrawOriginEnd (eVision::EDrawAdapter *drawAdapter, float zoomX) const |
| Draws both the origin and the end of the ELine object as small rectangles oriented along the line, using the current pen and brush of the draw adapter. | |
| void | DrawOriginEnd (eVision::EDrawAdapter *drawAdapter) const |
| Draws both the origin and the end of the ELine object as small rectangles oriented along the line, using the current pen and brush of the draw adapter. | |
| void | DrawOriginEnd (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY) const |
| Draws both the origin and the end of the ELine object as small rectangles oriented along the line, using the current pen and brush of the draw adapter. | |
| void | DrawOriginEnd (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY, float panX) const |
| Draws both the origin and the end of the ELine object as small rectangles oriented along the line, using the current pen and brush of the draw adapter. | |
| void | DrawOriginEnd (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY) const |
| Draws both the origin and the end of the ELine object as small rectangles oriented along the line, using the current pen and brush of the draw adapter. | |
| void | DrawOriginEnd (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX) const |
| Draws both the origin and the end of the ELine object as small rectangles oriented along the line, using the current pen and brush of the draw adapter. | |
| void | DrawOriginEnd (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame) const |
| Draws both the origin and the end of the ELine object as small rectangles oriented along the line, using the current pen and brush of the draw adapter. | |
| void | Load (const std::string &path) |
| Load the ELine configuration. The given ESerializer must have been created for reading. | |
| void | Load (eVision::ESerializer *serializer) |
| Load the ELine configuration. The given ESerializer must have been created for reading. | |
| void | Save (const std::string &path) |
| Save the ELine configuration. The given ESerializer must have been created for writing. | |
| void | Save (eVision::ESerializer *serializer) |
| Save the ELine configuration. The given ESerializer must have been created for writing. | |
| virtual eVision::EEditionMode | GetAvailableEditionModes () const |
| Available edition modes for the shape. | |
| virtual std::string | GetDescription () const |
| Textual description of the shape and its parameters. | |
| ELine (CppWrapperInternal::InternalConstructor) | |
| Public Member Functions inherited from eVision::EShape | |
| virtual | ~EShape () throw () |
| void | Load (const std::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 (const std::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) const |
| Draws the EShape shape. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY, float panX, float panY) const |
| Draws the EShape shape. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY, float panX) const |
| Draws the EShape shape. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY) const |
| Draws the EShape shape. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, float zoomX) const |
| Draws the EShape shape. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter) const |
| Draws the EShape shape. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals) const |
| Draws the EShape shape. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY) const |
| Draws the EShape shape. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY, float panX) const |
| Draws the EShape shape. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY) const |
| Draws the EShape shape. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX) const |
| Draws the EShape shape. | |
| void | Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame) const |
| Draws the EShape shape. | |
| eVision::EEditionMode | HitTest (int32_t x, int32_t y, float zoomX, float zoomY, float panX, float panY) |
| Detects if the cursor is placed over one of the dragging handles. | |
| eVision::EEditionMode | HitTest (int32_t x, int32_t y, float zoomX, float zoomY, float panX) |
| Detects if the cursor is placed over one of the dragging handles. | |
| eVision::EEditionMode | HitTest (int32_t x, int32_t y, float zoomX, float zoomY) |
| Detects if the cursor is placed over one of the dragging handles. | |
| eVision::EEditionMode | HitTest (int32_t x, int32_t y, float zoomX) |
| Detects if the cursor is placed over one of the dragging handles. | |
| eVision::EEditionMode | HitTest (int32_t x, int32_t y, const 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 (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX, float zoomY, float panX) |
| Detects if the cursor is placed over one of the dragging handles. | |
| eVision::EEditionMode | HitTest (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX, float zoomY) |
| Detects if the cursor is placed over one of the dragging handles. | |
| eVision::EEditionMode | HitTest (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX) |
| Detects if the cursor is placed over one of the dragging handles. | |
| void | Drag (int32_t x, int32_t 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 (int32_t x, int32_t 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 (int32_t x, int32_t y, float zoomX, float zoomY) |
| Moves the specified handle to a new position and updates all placement parameters of the region. | |
| void | Drag (int32_t x, int32_t y, float zoomX) |
| Moves the specified handle to a new position and updates all placement parameters of the region. | |
| void | Drag (int32_t x, int32_t y) |
| Moves the specified handle to a new position and updates all placement parameters of the region. | |
| void | Drag (int32_t x, int32_t y, const 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 (int32_t x, int32_t y, const 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 (int32_t x, int32_t y, const 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 (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX) |
| Moves the specified handle to a new position and updates all placement parameters of the region. | |
| void | Drag (int32_t x, int32_t y, const eVision::EFrame &frame) |
| Moves the specified handle to a new position and updates all placement parameters of the region. | |
| void | SetEditionMode (eVision::EEditionMode modes) |
| Current edition mode for the shape. Default: EEditionMode_None. | |
| eVision::EEditionMode | GetEditionMode () const |
| Current edition mode for the shape. Default: EEditionMode_None. | |
| eVision::EFrame | ToFrame (bool useAngle, eVision::EFrameScaling frameScaling) const |
| Converts the shape to a frame. | |
| eVision::EFrame | ToFrame (bool useAngle, eVision::EFrameScaling frameScaling, const eVision::EFrame &shapeFrame) const |
| Converts the shape to a frame. | |
| std::vector< eVision::EFrame > | CreateFramesOnShape (int32_t numFrames, float startOffset, float stopOffset, eVision::EFramesOrientation orientation) const |
| Distributes EFrames evenly along this shape's path or perimeter. | |
| std::vector< eVision::EFrame > | CreateFramesOnShape (int32_t numFrames, float startOffset, float stopOffset) const |
| Distributes EFrames evenly along this shape's path or perimeter. | |
| std::vector< eVision::EFrame > | CreateFramesOnShape (int32_t numFrames, float startOffset) const |
| Distributes EFrames evenly along this shape's path or perimeter. | |
| std::vector< eVision::EFrame > | CreateFramesOnShape (int32_t numFrames) const |
| Distributes EFrames evenly along this shape's path or perimeter. | |
| EShape (CppWrapperInternal::InternalConstructor) | |
Static Public Member Functions | |
| static float | GetAngleBetweenLines (const eVision::ELine &line1, const eVision::ELine &line2) |
| Computes the angle between two lines. | |
| static float | GetDistanceBetweenPointAndLine (const eVision::EPoint &pt, const eVision::ELine &line, bool limited) |
| Computes the distance between a point and a line. | |
| static float | GetDistanceBetweenPointAndLine (const eVision::EPoint &pt, const eVision::ELine &line) |
| Computes the distance between a point and a line. | |
| static eVision::EPoint | GetProjectionOfPointOnLine (const eVision::EPoint &pt, const eVision::ELine &line, bool limited) |
| Computes the projection of a point on a line. | |
| static eVision::EPoint | GetProjectionOfPointOnLine (const eVision::EPoint &pt, const eVision::ELine &line) |
| Computes the projection of a point on a line. | |
| static int32_t | GetIntersectionOfLines (const eVision::ELine &line1, const eVision::ELine &line2, eVision::EPoint &intersection, bool limited) |
| Computes the intersection between two lines. | |
| static int32_t | GetIntersectionOfLines (const eVision::ELine &line1, const eVision::ELine &line2, eVision::EPoint &intersection) |
| Computes the intersection between two lines. | |
Additional Inherited Members | |
| Public Attributes inherited from eVision::EShape | |
| CppWrapperInternal::WrappedClass | wrappedClass_ |
Represents a model of a line segment.
License(s): BasicTypes
| eVision::ELine::ELine | ( | ) |
Constructs a ELine object.
| eVision::ELine::ELine | ( | const 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 | ( | const 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 | ( | const eVision::EPoint & | origin, |
| const eVision::EPoint & | end ) |
Constructs a ELine object.
| origin | Origin point coordinates of the line. |
| end | End point coordinates of the line. |
| eVision::ELine::ELine | ( | const eVision::ELine & | other | ) |
| eVision::ELine::ELine | ( | const eVision::Legacy::ELine & | other | ) |
|
virtual | ||||||||||||
| eVision::ELine::ELine | ( | CppWrapperInternal::InternalConstructor | ) |
| void eVision::ELine::CopyTo | ( | eVision::ELine & | other | ) | const |
| void eVision::ELine::DrawEnd | ( | eVision::EDrawAdapter * | drawAdapter | ) | const |
Draws the end of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter.
| drawAdapter | Handle of the device context on which to draw. |
| void eVision::ELine::DrawEnd | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EFrame & | frame ) const |
Draws the end of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter.
| drawAdapter | Handle of the device context on which to draw. |
| frame | Frame of reference in which the line is defined. |
| void eVision::ELine::DrawEnd | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EFrame & | frame, | ||
| float | zoomX ) const |
Draws the end of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter.
| drawAdapter | Handle of the device context on which to draw. |
| frame | Frame of reference in which the line is defined. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| void eVision::ELine::DrawEnd | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY ) const |
Draws the end of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter.
| drawAdapter | Handle of the device context on which to draw. |
| frame | Frame of reference in which the line 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. |
| void eVision::ELine::DrawEnd | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws the end of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter.
| drawAdapter | Handle of the device context on which to draw. |
| frame | Frame of reference in which the line 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. |
| void eVision::ELine::DrawEnd | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws the end of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter.
| drawAdapter | Handle of the device context on which to draw. |
| frame | Frame of reference in which the line 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. |
| void eVision::ELine::DrawEnd | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | zoomX ) const |
Draws the end of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter.
| drawAdapter | Handle of the device context on which to draw. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| void eVision::ELine::DrawEnd | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | zoomX, | ||
| float | zoomY ) const |
Draws the end of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter.
| drawAdapter | Handle of the device 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. |
| void eVision::ELine::DrawEnd | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws the end of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter.
| drawAdapter | Handle of the device 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. |
| void eVision::ELine::DrawEnd | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws the end of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter.
| drawAdapter | Handle of the device 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. |
| void eVision::ELine::DrawOrigin | ( | eVision::EDrawAdapter * | drawAdapter | ) | const |
Draws the origin of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter.
| drawAdapter | Handle of the device context on which to draw. |
| void eVision::ELine::DrawOrigin | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EFrame & | frame ) const |
Draws the origin of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter.
| drawAdapter | Handle of the device context on which to draw. |
| frame | Frame of reference in which the line is defined. |
| void eVision::ELine::DrawOrigin | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EFrame & | frame, | ||
| float | zoomX ) const |
Draws the origin of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter.
| drawAdapter | Handle of the device context on which to draw. |
| frame | Frame of reference in which the line is defined. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| void eVision::ELine::DrawOrigin | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY ) const |
Draws the origin of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter.
| drawAdapter | Handle of the device context on which to draw. |
| frame | Frame of reference in which the line 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. |
| void eVision::ELine::DrawOrigin | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws the origin of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter.
| drawAdapter | Handle of the device context on which to draw. |
| frame | Frame of reference in which the line 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. |
| void eVision::ELine::DrawOrigin | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws the origin of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter.
| drawAdapter | Handle of the device context on which to draw. |
| frame | Frame of reference in which the line 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. |
| void eVision::ELine::DrawOrigin | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | zoomX ) const |
Draws the origin of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter.
| drawAdapter | Handle of the device context on which to draw. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| void eVision::ELine::DrawOrigin | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | zoomX, | ||
| float | zoomY ) const |
Draws the origin of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter.
| drawAdapter | Handle of the device 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. |
| void eVision::ELine::DrawOrigin | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws the origin of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter.
| drawAdapter | Handle of the device 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. |
| void eVision::ELine::DrawOrigin | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws the origin of the ELine object as a small rectangle oriented along the line, using the current pen and brush of the draw adapter.
| drawAdapter | Handle of the device 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. |
| void eVision::ELine::DrawOriginEnd | ( | eVision::EDrawAdapter * | drawAdapter | ) | const |
Draws both the origin and the end of the ELine object as small rectangles oriented along the line, using the current pen and brush of the draw adapter.
| drawAdapter | Handle of the device context on which to draw. |
| void eVision::ELine::DrawOriginEnd | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EFrame & | frame ) const |
Draws both the origin and the end of the ELine object as small rectangles oriented along the line, using the current pen and brush of the draw adapter.
| drawAdapter | Handle of the device context on which to draw. |
| frame | Frame of reference in which the line is defined. |
| void eVision::ELine::DrawOriginEnd | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EFrame & | frame, | ||
| float | zoomX ) const |
Draws both the origin and the end of the ELine object as small rectangles oriented along the line, using the current pen and brush of the draw adapter.
| drawAdapter | Handle of the device context on which to draw. |
| frame | Frame of reference in which the line is defined. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| void eVision::ELine::DrawOriginEnd | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY ) const |
Draws both the origin and the end of the ELine object as small rectangles oriented along the line, using the current pen and brush of the draw adapter.
| drawAdapter | Handle of the device context on which to draw. |
| frame | Frame of reference in which the line 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. |
| void eVision::ELine::DrawOriginEnd | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws both the origin and the end of the ELine object as small rectangles oriented along the line, using the current pen and brush of the draw adapter.
| drawAdapter | Handle of the device context on which to draw. |
| frame | Frame of reference in which the line 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. |
| void eVision::ELine::DrawOriginEnd | ( | eVision::EDrawAdapter * | drawAdapter, |
| const eVision::EFrame & | frame, | ||
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws both the origin and the end of the ELine object as small rectangles oriented along the line, using the current pen and brush of the draw adapter.
| drawAdapter | Handle of the device context on which to draw. |
| frame | Frame of reference in which the line 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. |
| void eVision::ELine::DrawOriginEnd | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | zoomX ) const |
Draws both the origin and the end of the ELine object as small rectangles oriented along the line, using the current pen and brush of the draw adapter.
| drawAdapter | Handle of the device context on which to draw. |
| zoomX | Horizontal zooming factor. By default, true scale is used. |
| void eVision::ELine::DrawOriginEnd | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | zoomX, | ||
| float | zoomY ) const |
Draws both the origin and the end of the ELine object as small rectangles oriented along the line, using the current pen and brush of the draw adapter.
| drawAdapter | Handle of the device 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. |
| void eVision::ELine::DrawOriginEnd | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX ) const |
Draws both the origin and the end of the ELine object as small rectangles oriented along the line, using the current pen and brush of the draw adapter.
| drawAdapter | Handle of the device 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. |
| void eVision::ELine::DrawOriginEnd | ( | eVision::EDrawAdapter * | drawAdapter, |
| float | zoomX, | ||
| float | zoomY, | ||
| float | panX, | ||
| float | panY ) const |
Draws both the origin and the end of the ELine object as small rectangles oriented along the line, using the current pen and brush of the draw adapter.
| drawAdapter | Handle of the device 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. |
| float eVision::ELine::GetAngle | ( | ) | const |
Orientation of the line.
|
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).
|
virtual |
Available edition modes for the shape.
Implements eVision::EShape.
| eVision::EPoint eVision::ELine::GetCenter | ( | ) | const |
Center of the line.
| float eVision::ELine::GetCenterX | ( | ) | const |
Abscissa of the center of the ELine.
| float eVision::ELine::GetCenterY | ( | ) | const |
Ordinate of the center of the ELine.
|
virtual |
Textual description of the shape and its parameters.
Implements eVision::EShape.
|
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.
| eVision::EPoint eVision::ELine::GetEnd | ( | ) | const |
End point coordinates of the ELine object.
|
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.
| float eVision::ELine::GetLength | ( | ) | const |
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.
| eVision::EPoint eVision::ELine::GetOrg | ( | ) | const |
Origin point coordinates of the ELine object.
| eVision::EPoint eVision::ELine::GetPoint | ( | float | fraction | ) | const |
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.
| void eVision::ELine::Load | ( | const std::string & | path | ) |
Load the ELine configuration. The given ESerializer must have been created for reading.
| path | The file path. |
| void eVision::ELine::Load | ( | eVision::ESerializer * | serializer | ) |
Load the ELine configuration. The given ESerializer must have been created for reading.
| serializer | The serializer. |
| eVision::ELine & eVision::ELine::operator= | ( | const eVision::ELine & | other | ) |
| void eVision::ELine::Save | ( | const std::string & | path | ) |
Save the ELine configuration. The given ESerializer must have been created for writing.
| path | The file path. |
| void eVision::ELine::Save | ( | eVision::ESerializer * | serializer | ) |
Save the ELine configuration. The given ESerializer must have been created for writing.
| serializer | The serializer. |
| void eVision::ELine::SetAngle | ( | float | angle | ) |
Orientation of the line.
| angle | New orientation of the line |
| void eVision::ELine::SetCenter | ( | const eVision::EPoint & | center | ) |
Center of the line.
| center | New center of the line |
| void eVision::ELine::SetCenterX | ( | float | centerX | ) |
| void eVision::ELine::SetCenterY | ( | float | centerY | ) |
| void eVision::ELine::SetFromOriginAndEnd | ( | const eVision::EPoint & | origin, |
| const 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. |
| void eVision::ELine::SetLength | ( | float | length | ) |
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.