Draw adapter interface used for drawing eVision objects and results. More...
#include <eVision/Easy/EDrawAdapter.h>
Public Member Functions | |
| virtual | ~EDrawAdapter () throw () |
| virtual void | DrawPoint (int32_t x1, int32_t y1, eVision::EPen pen)=0 |
| Draws a point at the given coordinate. | |
| virtual void | DrawPoint (int32_t x1, int32_t y1)=0 |
| Draws a point at the given coordinate. | |
| virtual void | Line (int32_t x1, int32_t y1, int32_t x2, int32_t y2, eVision::EPen pen)=0 |
| Draws a line between two points. | |
| virtual void | Line (int32_t x1, int32_t y1, int32_t x2, int32_t y2)=0 |
| Draws a line between two points. | |
| virtual void | Arc (int32_t orgX, int32_t orgY, int32_t width, int32_t height, float startAngle, float amplitude, eVision::EPen pen)=0 |
| Draws an arc defined by a rectangle, angle, and amplitude. | |
| virtual void | Arc (int32_t orgX, int32_t orgY, int32_t width, int32_t height, float startAngle, float amplitude)=0 |
| Draws an arc defined by a rectangle, angle, and amplitude. | |
| virtual void | Rectangle (int32_t orgX, int32_t orgY, int32_t width, int32_t height, eVision::EPen pen)=0 |
| Draws a rectangle. | |
| virtual void | Rectangle (int32_t orgX, int32_t orgY, int32_t width, int32_t height)=0 |
| Draws a rectangle. | |
| virtual void | Polygon (const std::vector< eVision::EPoint > &points, eVision::EPen pen)=0 |
| Draws a polygon. | |
| virtual void | Polygon (const std::vector< eVision::EPoint > &points)=0 |
| Draws a polygon. | |
| virtual void | Polygon (const eVision::EPolygon &polygon, eVision::EPen pen) |
| Draws a polygon. | |
| virtual void | Polygon (const eVision::EPolygon &polygon) |
| Draws a polygon. | |
| virtual void | Ellipse (int32_t orgX, int32_t orgY, int32_t width, int32_t height, eVision::EPen pen)=0 |
| Draws an ellipse. | |
| virtual void | Ellipse (int32_t orgX, int32_t orgY, int32_t width, int32_t height)=0 |
| Draws an ellipse. | |
| void | Ellipse (const eVision::EEllipse &ellipse, eVision::EPen pen) |
| Draws an ellipse. | |
| void | Ellipse (const eVision::EEllipse &ellipse) |
| Draws an ellipse. | |
| virtual void | RotatedEllipse (float centerX, float centerY, float radianAngle, float longAxis, float shortAxis, bool drawDiagonals, eVision::EPen pen) |
| Draws a rotated ellipse. | |
| virtual void | RotatedEllipse (float centerX, float centerY, float radianAngle, float longAxis, float shortAxis, bool drawDiagonals) |
| Draws a rotated ellipse. | |
| void | RotatedEllipse (const eVision::EEllipse &ellipse, bool drawDiagonals, eVision::EPen pen) |
| Draws a rotated ellipse. | |
| void | RotatedEllipse (const eVision::EEllipse &ellipse, bool drawDiagonals) |
| Draws a rotated ellipse. | |
| virtual void | FilledRectangle (int32_t orgX, int32_t orgY, int32_t width, int32_t height, eVision::EPen pen, eVision::EBrush brush)=0 |
| Fills a rectangle. | |
| virtual void | FilledRectangle (int32_t orgX, int32_t orgY, int32_t width, int32_t height, eVision::EPen pen)=0 |
| Fills a rectangle. | |
| virtual void | FilledRectangle (int32_t orgX, int32_t orgY, int32_t width, int32_t height)=0 |
| Fills a rectangle. | |
| virtual void | FilledEllipse (int32_t orgX, int32_t orgY, int32_t width, int32_t height, eVision::EPen pen, eVision::EBrush brush)=0 |
| Fills an ellipse. | |
| virtual void | FilledEllipse (int32_t orgX, int32_t orgY, int32_t width, int32_t height, eVision::EPen pen)=0 |
| Fills an ellipse. | |
| virtual void | FilledEllipse (int32_t orgX, int32_t orgY, int32_t width, int32_t height)=0 |
| Fills an ellipse. | |
| void | FilledEllipse (const eVision::EEllipse &ellipse, eVision::EPen pen, eVision::EBrush brush) |
| Fills an ellipse. | |
| void | FilledEllipse (const eVision::EEllipse &ellipse, eVision::EPen pen) |
| Fills an ellipse. | |
| void | FilledEllipse (const eVision::EEllipse &ellipse) |
| Fills an ellipse. | |
| virtual void | FilledRotatedEllipse (float centerX, float centerY, float radianAngle, float longAxis, float shortAxis, eVision::EPen pen, eVision::EBrush brush) |
| Fills a rotated ellipse. | |
| virtual void | FilledRotatedEllipse (float centerX, float centerY, float radianAngle, float longAxis, float shortAxis, eVision::EPen pen) |
| Fills a rotated ellipse. | |
| virtual void | FilledRotatedEllipse (float centerX, float centerY, float radianAngle, float longAxis, float shortAxis) |
| Fills a rotated ellipse. | |
| void | FilledRotatedEllipse (const eVision::EEllipse &ellipse, eVision::EPen pen, eVision::EBrush brush) |
| Fills a rotated ellipse. | |
| void | FilledRotatedEllipse (const eVision::EEllipse &ellipse, eVision::EPen pen) |
| Fills a rotated ellipse. | |
| void | FilledRotatedEllipse (const eVision::EEllipse &ellipse) |
| Fills a rotated ellipse. | |
| virtual void | FilledPolygon (const std::vector< eVision::EPoint > &points, eVision::EPen pen, eVision::EBrush brush)=0 |
| Fills a polygon. | |
| virtual void | FilledPolygon (const std::vector< eVision::EPoint > &points, eVision::EPen pen)=0 |
| Fills a polygon. | |
| virtual void | FilledPolygon (const std::vector< eVision::EPoint > &points)=0 |
| Fills a polygon. | |
| virtual void | FilledPolygon (const eVision::EPolygon &polygon, eVision::EPen pen, eVision::EBrush brush) |
| Fills a polygon. | |
| virtual void | FilledPolygon (const eVision::EPolygon &polygon, eVision::EPen pen) |
| Fills a polygon. | |
| virtual void | FilledPolygon (const eVision::EPolygon &polygon) |
| Fills a polygon. | |
| virtual void | Text (const std::string &text, int32_t x, int32_t y, eVision::EBrush textBrush, eVision::ETextSizeConstraint constraint) |
| Draws a text. | |
| virtual void | Text (const std::string &text, int32_t x, int32_t y, eVision::EBrush textBrush) |
| Draws a text. | |
| virtual void | Text (const std::string &text, int32_t x, int32_t y) |
| Draws a text. | |
| virtual void | Text (const std::string &text, int32_t x, int32_t y, float orientation, eVision::EBrush textBrush, eVision::ETextSizeConstraint constraint)=0 |
| Draws a text. | |
| virtual void | Text (const std::string &text, int32_t x, int32_t y, float orientation, eVision::EBrush textBrush)=0 |
| Draws a text. | |
| virtual void | Text (const std::string &text, int32_t x, int32_t y, float orientation)=0 |
| Draws a text. | |
| virtual void | BackedText (const std::string &text, int32_t x, int32_t y, eVision::EBrush textBrush, eVision::EBrush backgroundBrush, eVision::ETextSizeConstraint constraint) |
| Draws a text with a background. | |
| virtual void | BackedText (const std::string &text, int32_t x, int32_t y, eVision::EBrush textBrush, eVision::EBrush backgroundBrush) |
| Draws a text with a background. | |
| virtual void | BackedText (const std::string &text, int32_t x, int32_t y, eVision::EBrush textBrush) |
| Draws a text with a background. | |
| virtual void | BackedText (const std::string &text, int32_t x, int32_t y) |
| Draws a text with a background. | |
| virtual void | BackedText (const std::string &text, int32_t x, int32_t y, float orientation, eVision::EBrush textBrush, eVision::EBrush backgroundBrush, eVision::ETextSizeConstraint constraint)=0 |
| Draws a text with a background. | |
| virtual void | BackedText (const std::string &text, int32_t x, int32_t y, float orientation, eVision::EBrush textBrush, eVision::EBrush backgroundBrush)=0 |
| Draws a text with a background. | |
| virtual void | BackedText (const std::string &text, int32_t x, int32_t y, float orientation, eVision::EBrush textBrush)=0 |
| Draws a text with a background. | |
| virtual void | BackedText (const std::string &text, int32_t x, int32_t y, float orientation)=0 |
| Draws a text with a background. | |
| virtual void | Image (const eVision::EBaseROI &image) |
| Draws an image. | |
| virtual void | Image (const eVision::EROIBW8 &image, eVision::EBW8Vector *pColorScale) |
| Draws an image. | |
| virtual void | Image (const eVision::EROIBW8 &image, eVision::EC24Vector *pColorScale) |
| Draws an image. | |
| virtual void | Image (const eVision::EBaseROI &image, float orgX, float orgY, float width, float height)=0 |
| Draws an image. | |
| virtual void | Image (const eVision::EROIBW8 &image, eVision::EC24Vector *pColorScale, float orgX, float orgY, float width, float height)=0 |
| Draws an image. | |
| virtual void | Image (const eVision::EROIBW8 &image, eVision::EBW8Vector *pColorScale, float orgX, float orgY, float width, float height)=0 |
| Draws an image. | |
| virtual void | DrawMask (const eVision::EBaseROI &mask, const eVision::EBrush &brush) |
| Draws a mask with a brush. | |
| virtual void | DrawMask (const eVision::EBaseROI &mask) |
| Draws a mask with a brush. | |
| virtual void | DrawMask (const eVision::EBaseROI &mask, float orgX, float orgY, float width, float height, const eVision::EBrush &brush) |
| Draws a mask with a brush. | |
| virtual void | DrawMask (const eVision::EBaseROI &mask, float orgX, float orgY, float width, float height) |
| Draws a mask with a brush. | |
| virtual eVision::EPoint | GetTextSize (const std::string &text)=0 |
| Size of the given text using the default font (EDrawAdapter::SetFont). | |
| virtual void | UseCurrentPen ()=0 |
| Use the current pen set in the drawing framework. | |
| virtual void | UseCurrentBrush ()=0 |
| Use the current pen set in the drawing framework. | |
| virtual void | SetPen (const eVision::EPen &pen) |
| Default pen. | |
| virtual eVision::EPen | GetPen () const |
| Default pen. | |
| virtual void | SetBrush (const eVision::EBrush &brush) |
| Default brush. | |
| virtual eVision::EBrush | GetBrush () const |
| Default brush. | |
| virtual void | SetFont (const eVision::EFont &font) |
| Default font. | |
| virtual eVision::EFont | GetFont () const |
| Default font. | |
| virtual int32_t | ComputeTextSize (const std::string &text, int32_t desiredWidth) |
| Computes text size for given constraint. Constraint is the desired total width of the text to draw. | |
| EDrawAdapter (CppWrapperInternal::InternalConstructor) | |
Public Attributes | |
| CppWrapperInternal::WrappedClass | wrappedClass_ |
Draw adapter interface used for drawing eVision objects and results.
The interface contains various primitives to draw images and various shapes (line, rectangle, ellipse, polygon). It draws the contours of shapes using a EPen and fills the inside of a shape with a EBrush. It has a default pen (EDrawAdapter::SetPen) and default brush (EDrawAdapter::SetBrush) but they can be overridden using the optional pen and brush arguments of shape primitives. If no default pen and brush are set and no optional pen and brush are specified when calling a shape primitives, the shape will not be drawn. For the "Fill" primitives, no pen will result in no contours being drawn around the shape and no brush is equivalent to the corresponding "Draw" primitive.
License(s): None
|
virtual | ||||||||||||
| eVision::EDrawAdapter::EDrawAdapter | ( | CppWrapperInternal::InternalConstructor | ) |
|
pure virtual |
Draws an arc defined by a rectangle, angle, and amplitude.
| orgX | X origin of the rectangle |
| orgY | Y origin of the rectangle |
| width | Width of the rectangle |
| height | Height of the rectangle |
| startAngle | Starting angle of the arc in radians |
| amplitude | Amplitude of the arc in radians |
Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.
|
pure virtual |
Draws an arc defined by a rectangle, angle, and amplitude.
| orgX | X origin of the rectangle |
| orgY | Y origin of the rectangle |
| width | Width of the rectangle |
| height | Height of the rectangle |
| startAngle | Starting angle of the arc in radians |
| amplitude | Amplitude of the arc in radians |
| pen | Optional pen to use |
Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.
|
virtual |
Draws a text with a background.
| text | Text to draw. |
| x | X position of the text. |
| y | Y position of the text. |
If desiredWidth is greater than 0, current font size will be ignored and a new one will be temporally set so that the whole drawn text fills in desiredWidth pixels.
Reimplemented in eVision::EGenericDrawAdapter.
|
virtual |
Draws a text with a background.
| text | Text to draw. |
| x | X position of the text. |
| y | Y position of the text. |
| textBrush | Optional brush to use for the color of the text. |
If desiredWidth is greater than 0, current font size will be ignored and a new one will be temporally set so that the whole drawn text fills in desiredWidth pixels.
Reimplemented in eVision::EGenericDrawAdapter.
|
virtual |
Draws a text with a background.
| text | Text to draw. |
| x | X position of the text. |
| y | Y position of the text. |
| textBrush | Optional brush to use for the color of the text. |
| backgroundBrush | Optional brush to use for the background. |
If desiredWidth is greater than 0, current font size will be ignored and a new one will be temporally set so that the whole drawn text fills in desiredWidth pixels.
Reimplemented in eVision::EGenericDrawAdapter.
|
virtual |
Draws a text with a background.
| text | Text to draw. |
| x | X position of the text. |
| y | Y position of the text. |
| textBrush | Optional brush to use for the color of the text. |
| backgroundBrush | Optional brush to use for the background. |
| constraint | Text size constraint. By default, no constraint is to be applied. |
If desiredWidth is greater than 0, current font size will be ignored and a new one will be temporally set so that the whole drawn text fills in desiredWidth pixels.
Reimplemented in eVision::EGenericDrawAdapter.
|
pure virtual |
Draws a text with a background.
| text | Text to draw. |
| x | X position of the text. |
| y | Y position of the text. |
| orientation | Orientation of the text in radians. |
If desiredWidth is greater than 0, current font size will be ignored and a new one will be temporally set so that the whole drawn text fills in desiredWidth pixels.
Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.
|
pure virtual |
Draws a text with a background.
| text | Text to draw. |
| x | X position of the text. |
| y | Y position of the text. |
| orientation | Orientation of the text in radians. |
| textBrush | Optional brush to use for the color of the text. |
If desiredWidth is greater than 0, current font size will be ignored and a new one will be temporally set so that the whole drawn text fills in desiredWidth pixels.
Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.
|
pure virtual |
Draws a text with a background.
| text | Text to draw. |
| x | X position of the text. |
| y | Y position of the text. |
| orientation | Orientation of the text in radians. |
| textBrush | Optional brush to use for the color of the text. |
| backgroundBrush | Optional brush to use for the background. |
If desiredWidth is greater than 0, current font size will be ignored and a new one will be temporally set so that the whole drawn text fills in desiredWidth pixels.
Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.
|
pure virtual |
Draws a text with a background.
| text | Text to draw. |
| x | X position of the text. |
| y | Y position of the text. |
| orientation | Orientation of the text in radians. |
| textBrush | Optional brush to use for the color of the text. |
| backgroundBrush | Optional brush to use for the background. |
| constraint | Text size constraint. By default, no constraint is to be applied. |
If desiredWidth is greater than 0, current font size will be ignored and a new one will be temporally set so that the whole drawn text fills in desiredWidth pixels.
Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.
|
virtual |
Computes text size for given constraint. Constraint is the desired total width of the text to draw.
| text | Text to measure before drawing. |
| desiredWidth | Width constraint. |
Reimplemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.
|
virtual |
Draws a mask with a brush.
| mask | Mask to draw |
The type of the mask image must be BW8, BW16, or BW32.
The default implementation converts the mask into a EImageC24A image using the brush and draws this image.
|
virtual |
Draws a mask with a brush.
| mask | Mask to draw |
| brush | Brush to draw the mask with. |
The type of the mask image must be BW8, BW16, or BW32.
The default implementation converts the mask into a EImageC24A image using the brush and draws this image.
|
virtual |
Draws a mask with a brush.
| mask | Mask to draw |
| orgX | X coordinate of the point where to draw the image. |
| orgY | Y coordinate of the point where to draw the image. |
| width | Width of the destination rectangle in which to draw the image. |
| height | Height of the destination rectangle in which to draw the image. |
The type of the mask image must be BW8, BW16, or BW32.
The default implementation converts the mask into a EImageC24A image using the brush and draws this image.
|
virtual |
Draws a mask with a brush.
| mask | Mask to draw |
| orgX | X coordinate of the point where to draw the image. |
| orgY | Y coordinate of the point where to draw the image. |
| width | Width of the destination rectangle in which to draw the image. |
| height | Height of the destination rectangle in which to draw the image. |
| brush | Brush to draw the mask with. |
The type of the mask image must be BW8, BW16, or BW32.
The default implementation converts the mask into a EImageC24A image using the brush and draws this image.
|
pure virtual |
Draws a point at the given coordinate.
| x1 | X coordinate |
| y1 | Y coordinate |
Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.
|
pure virtual |
Draws a point at the given coordinate.
| x1 | X coordinate |
| y1 | Y coordinate |
| pen | Optional pen to use |
Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.
| void eVision::EDrawAdapter::Ellipse | ( | const eVision::EEllipse & | ellipse | ) |
Draws an ellipse.
| ellipse | the ellipse to be drawn (angle is ignored). |
This method only draws axis-aligned ellipses, if the given ellipse has an angle, it is ignored. To draw rotated ellipses, use EDrawAdapter::RotatedEllipse instead. An ellipse with full angular amplitude is always drawn.
| void eVision::EDrawAdapter::Ellipse | ( | const eVision::EEllipse & | ellipse, |
| eVision::EPen | pen ) |
Draws an ellipse.
| ellipse | the ellipse to be drawn (angle is ignored). |
| pen | Optional pen to use |
This method only draws axis-aligned ellipses, if the given ellipse has an angle, it is ignored. To draw rotated ellipses, use EDrawAdapter::RotatedEllipse instead. An ellipse with full angular amplitude is always drawn.
|
pure virtual |
Draws an ellipse.
| orgX | X origin of the rectangle containing the ellipse |
| orgY | Y origin of the rectangle containing the ellipse |
| width | Width of the rectangle containing the ellipse |
| height | Height of the rectangle containing the ellipse |
This method only draws axis-aligned ellipses, if the given ellipse has an angle, it is ignored. To draw rotated ellipses, use EDrawAdapter::RotatedEllipse instead. An ellipse with full angular amplitude is always drawn.
Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.
|
pure virtual |
Draws an ellipse.
| orgX | X origin of the rectangle containing the ellipse |
| orgY | Y origin of the rectangle containing the ellipse |
| width | Width of the rectangle containing the ellipse |
| height | Height of the rectangle containing the ellipse |
| pen | Optional pen to use |
This method only draws axis-aligned ellipses, if the given ellipse has an angle, it is ignored. To draw rotated ellipses, use EDrawAdapter::RotatedEllipse instead. An ellipse with full angular amplitude is always drawn.
Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.
| void eVision::EDrawAdapter::FilledEllipse | ( | const eVision::EEllipse & | ellipse | ) |
Fills an ellipse.
| ellipse | the ellipse to be drawn. |
This method only draws axis-aligned ellipses, if the given ellipse has an angle, it is ignored. To draw filled and rotated ellipses, use EDrawAdapter::FilledRotatedEllipse instead. An ellipse with full angular amplitude is always drawn.
| void eVision::EDrawAdapter::FilledEllipse | ( | const eVision::EEllipse & | ellipse, |
| eVision::EPen | pen ) |
Fills an ellipse.
| ellipse | the ellipse to be drawn. |
| pen | Optional pen to use for drawing the contour of the ellipse |
This method only draws axis-aligned ellipses, if the given ellipse has an angle, it is ignored. To draw filled and rotated ellipses, use EDrawAdapter::FilledRotatedEllipse instead. An ellipse with full angular amplitude is always drawn.
| void eVision::EDrawAdapter::FilledEllipse | ( | const eVision::EEllipse & | ellipse, |
| eVision::EPen | pen, | ||
| eVision::EBrush | brush ) |
Fills an ellipse.
| ellipse | the ellipse to be drawn. |
| pen | Optional pen to use for drawing the contour of the ellipse |
| brush | Optional pen to use for drawing the inside of the ellipse |
This method only draws axis-aligned ellipses, if the given ellipse has an angle, it is ignored. To draw filled and rotated ellipses, use EDrawAdapter::FilledRotatedEllipse instead. An ellipse with full angular amplitude is always drawn.
|
pure virtual |
Fills an ellipse.
| orgX | X origin of the rectangle containing the ellipse |
| orgY | Y origin of the rectangle containing the ellipse |
| width | Width of the rectangle containing the ellipse |
| height | Height of the rectangle containing the ellipse |
This method only draws axis-aligned ellipses, if the given ellipse has an angle, it is ignored. To draw filled and rotated ellipses, use EDrawAdapter::FilledRotatedEllipse instead. An ellipse with full angular amplitude is always drawn.
Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.
|
pure virtual |
Fills an ellipse.
| orgX | X origin of the rectangle containing the ellipse |
| orgY | Y origin of the rectangle containing the ellipse |
| width | Width of the rectangle containing the ellipse |
| height | Height of the rectangle containing the ellipse |
| pen | Optional pen to use for drawing the contour of the ellipse |
This method only draws axis-aligned ellipses, if the given ellipse has an angle, it is ignored. To draw filled and rotated ellipses, use EDrawAdapter::FilledRotatedEllipse instead. An ellipse with full angular amplitude is always drawn.
Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.
|
pure virtual |
Fills an ellipse.
| orgX | X origin of the rectangle containing the ellipse |
| orgY | Y origin of the rectangle containing the ellipse |
| width | Width of the rectangle containing the ellipse |
| height | Height of the rectangle containing the ellipse |
| pen | Optional pen to use for drawing the contour of the ellipse |
| brush | Optional pen to use for drawing the inside of the ellipse |
This method only draws axis-aligned ellipses, if the given ellipse has an angle, it is ignored. To draw filled and rotated ellipses, use EDrawAdapter::FilledRotatedEllipse instead. An ellipse with full angular amplitude is always drawn.
Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.
|
virtual |
Fills a polygon.
| polygon | Polygon |
|
virtual |
Fills a polygon.
| polygon | Polygon |
| pen | Optional pen to use for drawing the contour of the polygon |
|
virtual |
Fills a polygon.
| polygon | Polygon |
| pen | Optional pen to use for drawing the contour of the polygon |
| brush | Optional pen to use for drawing the inside of the polygon |
|
pure virtual |
Fills a polygon.
| points | Points of the polygon |
Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.
|
pure virtual |
Fills a polygon.
| points | Points of the polygon |
| pen | Optional pen to use for drawing the contour of the polygon |
Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.
|
pure virtual |
Fills a polygon.
| points | Points of the polygon |
| pen | Optional pen to use for drawing the contour of the polygon |
| brush | Optional pen to use for drawing the inside of the polygon |
Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.
|
pure virtual |
Fills a rectangle.
| orgX | X origin of the rectangle |
| orgY | Y origin of the rectangle |
| width | Width of the rectangle |
| height | Height of the rectangle |
Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.
|
pure virtual |
Fills a rectangle.
| orgX | X origin of the rectangle |
| orgY | Y origin of the rectangle |
| width | Width of the rectangle |
| height | Height of the rectangle |
| pen | Optional pen to use for drawing the contour of the rectangle |
Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.
|
pure virtual |
Fills a rectangle.
| orgX | X origin of the rectangle |
| orgY | Y origin of the rectangle |
| width | Width of the rectangle |
| height | Height of the rectangle |
| pen | Optional pen to use for drawing the contour of the rectangle |
| brush | Optional brush to use for filling the inside of the rectangle |
Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.
| void eVision::EDrawAdapter::FilledRotatedEllipse | ( | const eVision::EEllipse & | ellipse | ) |
Fills a rotated ellipse.
| ellipse | the ellipse to be drawn. |
An ellipse with full angular amplitude is always drawn.
| void eVision::EDrawAdapter::FilledRotatedEllipse | ( | const eVision::EEllipse & | ellipse, |
| eVision::EPen | pen ) |
Fills a rotated ellipse.
| ellipse | the ellipse to be drawn. |
| pen | Pen to draw the ellipse with. |
An ellipse with full angular amplitude is always drawn.
| void eVision::EDrawAdapter::FilledRotatedEllipse | ( | const eVision::EEllipse & | ellipse, |
| eVision::EPen | pen, | ||
| eVision::EBrush | brush ) |
Fills a rotated ellipse.
| ellipse | the ellipse to be drawn. |
| pen | Pen to draw the ellipse with. |
| brush | Brush to draw the ellipse with. |
An ellipse with full angular amplitude is always drawn.
|
virtual |
Fills a rotated ellipse.
| centerX | X coordinate of the ellipse center |
| centerY | Y coordinate of the ellipse center |
| radianAngle | Angle of the rotated ellipse in radian |
| longAxis | Long axis length |
| shortAxis | Short axis length |
An ellipse with full angular amplitude is always drawn.
|
virtual |
Fills a rotated ellipse.
| centerX | X coordinate of the ellipse center |
| centerY | Y coordinate of the ellipse center |
| radianAngle | Angle of the rotated ellipse in radian |
| longAxis | Long axis length |
| shortAxis | Short axis length |
| pen | Pen to draw the ellipse with. |
An ellipse with full angular amplitude is always drawn.
|
virtual |
Fills a rotated ellipse.
| centerX | X coordinate of the ellipse center |
| centerY | Y coordinate of the ellipse center |
| radianAngle | Angle of the rotated ellipse in radian |
| longAxis | Long axis length |
| shortAxis | Short axis length |
| pen | Pen to draw the ellipse with. |
| brush | Brush to draw the ellipse with. |
An ellipse with full angular amplitude is always drawn.
|
virtual |
Default brush.
|
virtual |
Default font.
Reimplemented in eVision::EGenericDrawAdapter.
|
virtual |
Default pen.
|
pure virtual |
Size of the given text using the default font (EDrawAdapter::SetFont).
| text | Text |
Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.
|
virtual |
|
pure virtual |
Draws an image.
| image | Image. |
| orgX | X coordinate of the point where to draw the image. |
| orgY | Y coordinate of the point where to draw the image. |
| width | Width of the destination rectangle in which to draw the image. |
| height | Height of the destination rectangle in which to draw the image. |
Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.
|
virtual |
Draws an image.
| image | Image. |
| pColorScale | Color scale to draw a grayscale image with. |
Reimplemented in eVision::EGenericDrawAdapter.
|
pure virtual |
Draws an image.
| image | Image. |
| pColorScale | Color scale to draw a grayscale image with. |
| orgX | X coordinate of the point where to draw the image. |
| orgY | Y coordinate of the point where to draw the image. |
| width | Width of the destination rectangle in which to draw the image. |
| height | Height of the destination rectangle in which to draw the image. |
Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.
|
virtual |
Draws an image.
| image | Image. |
| pColorScale | Color scale to draw a grayscale image with. |
Reimplemented in eVision::EGenericDrawAdapter.
|
pure virtual |
Draws an image.
| image | Image. |
| pColorScale | Color scale to draw a grayscale image with. |
| orgX | X coordinate of the point where to draw the image. |
| orgY | Y coordinate of the point where to draw the image. |
| width | Width of the destination rectangle in which to draw the image. |
| height | Height of the destination rectangle in which to draw the image. |
Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.
|
pure virtual |
Draws a line between two points.
| x1 | X coordinate of line origin point |
| y1 | Y coordinate of line origin point |
| x2 | X coordinate of line end point |
| y2 | Y coordinate of line end point |
Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.
|
pure virtual |
Draws a line between two points.
| x1 | X coordinate of line origin point |
| y1 | Y coordinate of line origin point |
| x2 | X coordinate of line end point |
| y2 | Y coordinate of line end point |
| pen | Optional pen to use |
Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.
|
virtual |
Draws a polygon.
| polygon | Polygon |
|
virtual |
Draws a polygon.
| polygon | Polygon |
| pen | Optional pen to use |
|
pure virtual |
Draws a polygon.
| points | Points of the polygon |
Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.
|
pure virtual |
Draws a polygon.
| points | Points of the polygon |
| pen | Optional pen to use |
Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.
|
pure virtual |
Draws a rectangle.
| orgX | X origin of the rectangle |
| orgY | Y origin of the rectangle |
| width | Width of the rectangle |
| height | Height of the rectangle |
Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.
|
pure virtual |
Draws a rectangle.
| orgX | X origin of the rectangle |
| orgY | Y origin of the rectangle |
| width | Width of the rectangle |
| height | Height of the rectangle |
| pen | Optional pen to use |
Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.
| void eVision::EDrawAdapter::RotatedEllipse | ( | const eVision::EEllipse & | ellipse, |
| bool | drawDiagonals ) |
Draws a rotated ellipse.
| ellipse | the ellipse to be drawn. |
| drawDiagonals | Whether to draw the diagonal |
An ellipse with full angular amplitude is always drawn.
| void eVision::EDrawAdapter::RotatedEllipse | ( | const eVision::EEllipse & | ellipse, |
| bool | drawDiagonals, | ||
| eVision::EPen | pen ) |
Draws a rotated ellipse.
| ellipse | the ellipse to be drawn. |
| drawDiagonals | Whether to draw the diagonal |
| pen | Pen to draw the ellipse with. |
An ellipse with full angular amplitude is always drawn.
|
virtual |
Draws a rotated ellipse.
| centerX | X coordinate of the ellipse center |
| centerY | Y coordinate of the ellipse center |
| radianAngle | Angle of the rotated ellipse in radian |
| longAxis | Long axis length |
| shortAxis | Short axis length |
| drawDiagonals | Whether to draw the diagonal |
An ellipse with full angular amplitude is always drawn.
|
virtual |
Draws a rotated ellipse.
| centerX | X coordinate of the ellipse center |
| centerY | Y coordinate of the ellipse center |
| radianAngle | Angle of the rotated ellipse in radian |
| longAxis | Long axis length |
| shortAxis | Short axis length |
| drawDiagonals | Whether to draw the diagonal |
| pen | Pen to draw the ellipse with. |
An ellipse with full angular amplitude is always drawn.
|
virtual |
Default brush.
| brush | Brush. |
Reimplemented in eVision::EExternalDrawAdapter, and eVision::EWindowsDrawAdapter.
|
virtual |
Default font.
| font | Font. |
Reimplemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.
|
virtual |
Default pen.
| pen | Pen. |
Reimplemented in eVision::EExternalDrawAdapter, and eVision::EWindowsDrawAdapter.
|
virtual |
Draws a text.
| text | Text to draw. |
| x | X position of the text. |
| y | Y position of the text. |
If desiredWidth is greater than 0, current font size will be ignored and a new one will be temporally set so that the whole drawn text fills in desiredWidth pixels.
Reimplemented in eVision::EGenericDrawAdapter.
|
virtual |
Draws a text.
| text | Text to draw. |
| x | X position of the text. |
| y | Y position of the text. |
| textBrush | Optional brush to use for the color of the text. |
If desiredWidth is greater than 0, current font size will be ignored and a new one will be temporally set so that the whole drawn text fills in desiredWidth pixels.
Reimplemented in eVision::EGenericDrawAdapter.
|
virtual |
Draws a text.
| text | Text to draw. |
| x | X position of the text. |
| y | Y position of the text. |
| textBrush | Optional brush to use for the color of the text. |
| constraint | Text size constraint. By default, no constraint is to be applied. |
If desiredWidth is greater than 0, current font size will be ignored and a new one will be temporally set so that the whole drawn text fills in desiredWidth pixels.
Reimplemented in eVision::EGenericDrawAdapter.
|
pure virtual |
Draws a text.
| text | Text to draw. |
| x | X position of the text. |
| y | Y position of the text. |
| orientation | Orientation of the text in radians. |
If desiredWidth is greater than 0, current font size will be ignored and a new one will be temporally set so that the whole drawn text fills in desiredWidth pixels.
Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.
|
pure virtual |
Draws a text.
| text | Text to draw. |
| x | X position of the text. |
| y | Y position of the text. |
| orientation | Orientation of the text in radians. |
| textBrush | Optional brush to use for the color of the text. |
If desiredWidth is greater than 0, current font size will be ignored and a new one will be temporally set so that the whole drawn text fills in desiredWidth pixels.
Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.
|
pure virtual |
Draws a text.
| text | Text to draw. |
| x | X position of the text. |
| y | Y position of the text. |
| orientation | Orientation of the text in radians. |
| textBrush | Optional brush to use for the color of the text. |
| constraint | Text size constraint. By default, no constraint is to be applied. |
If desiredWidth is greater than 0, current font size will be ignored and a new one will be temporally set so that the whole drawn text fills in desiredWidth pixels.
Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.
|
pure virtual |
Use the current pen set in the drawing framework.
Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.
|
pure virtual |
Use the current pen set in the drawing framework.
Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.
| CppWrapperInternal::WrappedClass eVision::EDrawAdapter::wrappedClass_ |