eVision C++ API 26.10.0-beta.2.dev
Loading...
Searching...
No Matches
eVision::EDrawAdapter Class Referenceabstract

Draw adapter interface used for drawing eVision objects and results. More...

#include <eVision/Easy/EDrawAdapter.h>

Inheritance diagram for eVision::EDrawAdapter:
Collaboration diagram for eVision::EDrawAdapter:

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_

Detailed Description

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

Constructor & Destructor Documentation

◆ ~EDrawAdapter()

eVision::EDrawAdapter::~EDrawAdapter ( )
throw ( )
virtual

◆ EDrawAdapter()

eVision::EDrawAdapter::EDrawAdapter ( CppWrapperInternal::InternalConstructor )

Member Function Documentation

◆ Arc() [1/2]

virtual void eVision::EDrawAdapter::Arc ( int32_t orgX,
int32_t orgY,
int32_t width,
int32_t height,
float startAngle,
float amplitude )
pure virtual

Draws an arc defined by a rectangle, angle, and amplitude.

Parameters
orgXX origin of the rectangle
orgYY origin of the rectangle
widthWidth of the rectangle
heightHeight of the rectangle
startAngleStarting angle of the arc in radians
amplitudeAmplitude of the arc in radians

Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.

◆ Arc() [2/2]

virtual void eVision::EDrawAdapter::Arc ( int32_t orgX,
int32_t orgY,
int32_t width,
int32_t height,
float startAngle,
float amplitude,
eVision::EPen pen )
pure virtual

Draws an arc defined by a rectangle, angle, and amplitude.

Parameters
orgXX origin of the rectangle
orgYY origin of the rectangle
widthWidth of the rectangle
heightHeight of the rectangle
startAngleStarting angle of the arc in radians
amplitudeAmplitude of the arc in radians
penOptional pen to use

Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.

◆ BackedText() [1/8]

void eVision::EDrawAdapter::BackedText ( const std::string & text,
int32_t x,
int32_t y )
virtual

Draws a text with a background.

Parameters
textText to draw.
xX position of the text.
yY 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.

◆ BackedText() [2/8]

void eVision::EDrawAdapter::BackedText ( const std::string & text,
int32_t x,
int32_t y,
eVision::EBrush textBrush )
virtual

Draws a text with a background.

Parameters
textText to draw.
xX position of the text.
yY position of the text.
textBrushOptional 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.

◆ BackedText() [3/8]

void eVision::EDrawAdapter::BackedText ( const std::string & text,
int32_t x,
int32_t y,
eVision::EBrush textBrush,
eVision::EBrush backgroundBrush )
virtual

Draws a text with a background.

Parameters
textText to draw.
xX position of the text.
yY position of the text.
textBrushOptional brush to use for the color of the text.
backgroundBrushOptional 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.

◆ BackedText() [4/8]

void eVision::EDrawAdapter::BackedText ( const std::string & text,
int32_t x,
int32_t y,
eVision::EBrush textBrush,
eVision::EBrush backgroundBrush,
eVision::ETextSizeConstraint constraint )
virtual

Draws a text with a background.

Parameters
textText to draw.
xX position of the text.
yY position of the text.
textBrushOptional brush to use for the color of the text.
backgroundBrushOptional brush to use for the background.
constraintText 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.

◆ BackedText() [5/8]

virtual void eVision::EDrawAdapter::BackedText ( const std::string & text,
int32_t x,
int32_t y,
float orientation )
pure virtual

Draws a text with a background.

Parameters
textText to draw.
xX position of the text.
yY position of the text.
orientationOrientation 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.

◆ BackedText() [6/8]

virtual void eVision::EDrawAdapter::BackedText ( const std::string & text,
int32_t x,
int32_t y,
float orientation,
eVision::EBrush textBrush )
pure virtual

Draws a text with a background.

Parameters
textText to draw.
xX position of the text.
yY position of the text.
orientationOrientation of the text in radians.
textBrushOptional 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.

◆ BackedText() [7/8]

virtual void eVision::EDrawAdapter::BackedText ( const std::string & text,
int32_t x,
int32_t y,
float orientation,
eVision::EBrush textBrush,
eVision::EBrush backgroundBrush )
pure virtual

Draws a text with a background.

Parameters
textText to draw.
xX position of the text.
yY position of the text.
orientationOrientation of the text in radians.
textBrushOptional brush to use for the color of the text.
backgroundBrushOptional 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.

◆ BackedText() [8/8]

virtual void eVision::EDrawAdapter::BackedText ( const std::string & text,
int32_t x,
int32_t y,
float orientation,
eVision::EBrush textBrush,
eVision::EBrush backgroundBrush,
eVision::ETextSizeConstraint constraint )
pure virtual

Draws a text with a background.

Parameters
textText to draw.
xX position of the text.
yY position of the text.
orientationOrientation of the text in radians.
textBrushOptional brush to use for the color of the text.
backgroundBrushOptional brush to use for the background.
constraintText 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.

◆ ComputeTextSize()

int32_t eVision::EDrawAdapter::ComputeTextSize ( const std::string & text,
int32_t desiredWidth )
virtual

Computes text size for given constraint. Constraint is the desired total width of the text to draw.

Parameters
textText to measure before drawing.
desiredWidthWidth constraint.

Reimplemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.

◆ DrawMask() [1/4]

void eVision::EDrawAdapter::DrawMask ( const eVision::EBaseROI & mask)
virtual

Draws a mask with a brush.

Parameters
maskMask 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.

◆ DrawMask() [2/4]

void eVision::EDrawAdapter::DrawMask ( const eVision::EBaseROI & mask,
const eVision::EBrush & brush )
virtual

Draws a mask with a brush.

Parameters
maskMask to draw
brushBrush 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.

◆ DrawMask() [3/4]

void eVision::EDrawAdapter::DrawMask ( const eVision::EBaseROI & mask,
float orgX,
float orgY,
float width,
float height )
virtual

Draws a mask with a brush.

Parameters
maskMask to draw
orgXX coordinate of the point where to draw the image.
orgYY coordinate of the point where to draw the image.
widthWidth of the destination rectangle in which to draw the image.
heightHeight 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.

◆ DrawMask() [4/4]

void eVision::EDrawAdapter::DrawMask ( const eVision::EBaseROI & mask,
float orgX,
float orgY,
float width,
float height,
const eVision::EBrush & brush )
virtual

Draws a mask with a brush.

Parameters
maskMask to draw
orgXX coordinate of the point where to draw the image.
orgYY coordinate of the point where to draw the image.
widthWidth of the destination rectangle in which to draw the image.
heightHeight of the destination rectangle in which to draw the image.
brushBrush 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.

◆ DrawPoint() [1/2]

virtual void eVision::EDrawAdapter::DrawPoint ( int32_t x1,
int32_t y1 )
pure virtual

Draws a point at the given coordinate.

Parameters
x1X coordinate
y1Y coordinate

Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.

◆ DrawPoint() [2/2]

virtual void eVision::EDrawAdapter::DrawPoint ( int32_t x1,
int32_t y1,
eVision::EPen pen )
pure virtual

Draws a point at the given coordinate.

Parameters
x1X coordinate
y1Y coordinate
penOptional pen to use

Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.

◆ Ellipse() [1/4]

void eVision::EDrawAdapter::Ellipse ( const eVision::EEllipse & ellipse)

Draws an ellipse.

Parameters
ellipsethe 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.

◆ Ellipse() [2/4]

void eVision::EDrawAdapter::Ellipse ( const eVision::EEllipse & ellipse,
eVision::EPen pen )

Draws an ellipse.

Parameters
ellipsethe ellipse to be drawn (angle is ignored).
penOptional 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.

◆ Ellipse() [3/4]

virtual void eVision::EDrawAdapter::Ellipse ( int32_t orgX,
int32_t orgY,
int32_t width,
int32_t height )
pure virtual

Draws an ellipse.

Parameters
orgXX origin of the rectangle containing the ellipse
orgYY origin of the rectangle containing the ellipse
widthWidth of the rectangle containing the ellipse
heightHeight 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.

◆ Ellipse() [4/4]

virtual void eVision::EDrawAdapter::Ellipse ( int32_t orgX,
int32_t orgY,
int32_t width,
int32_t height,
eVision::EPen pen )
pure virtual

Draws an ellipse.

Parameters
orgXX origin of the rectangle containing the ellipse
orgYY origin of the rectangle containing the ellipse
widthWidth of the rectangle containing the ellipse
heightHeight of the rectangle containing the ellipse
penOptional 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.

◆ FilledEllipse() [1/6]

void eVision::EDrawAdapter::FilledEllipse ( const eVision::EEllipse & ellipse)

Fills an ellipse.

Parameters
ellipsethe 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.

◆ FilledEllipse() [2/6]

void eVision::EDrawAdapter::FilledEllipse ( const eVision::EEllipse & ellipse,
eVision::EPen pen )

Fills an ellipse.

Parameters
ellipsethe ellipse to be drawn.
penOptional 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.

◆ FilledEllipse() [3/6]

void eVision::EDrawAdapter::FilledEllipse ( const eVision::EEllipse & ellipse,
eVision::EPen pen,
eVision::EBrush brush )

Fills an ellipse.

Parameters
ellipsethe ellipse to be drawn.
penOptional pen to use for drawing the contour of the ellipse
brushOptional 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.

◆ FilledEllipse() [4/6]

virtual void eVision::EDrawAdapter::FilledEllipse ( int32_t orgX,
int32_t orgY,
int32_t width,
int32_t height )
pure virtual

Fills an ellipse.

Parameters
orgXX origin of the rectangle containing the ellipse
orgYY origin of the rectangle containing the ellipse
widthWidth of the rectangle containing the ellipse
heightHeight 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.

◆ FilledEllipse() [5/6]

virtual void eVision::EDrawAdapter::FilledEllipse ( int32_t orgX,
int32_t orgY,
int32_t width,
int32_t height,
eVision::EPen pen )
pure virtual

Fills an ellipse.

Parameters
orgXX origin of the rectangle containing the ellipse
orgYY origin of the rectangle containing the ellipse
widthWidth of the rectangle containing the ellipse
heightHeight of the rectangle containing the ellipse
penOptional 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.

◆ FilledEllipse() [6/6]

virtual void eVision::EDrawAdapter::FilledEllipse ( int32_t orgX,
int32_t orgY,
int32_t width,
int32_t height,
eVision::EPen pen,
eVision::EBrush brush )
pure virtual

Fills an ellipse.

Parameters
orgXX origin of the rectangle containing the ellipse
orgYY origin of the rectangle containing the ellipse
widthWidth of the rectangle containing the ellipse
heightHeight of the rectangle containing the ellipse
penOptional pen to use for drawing the contour of the ellipse
brushOptional 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.

◆ FilledPolygon() [1/6]

void eVision::EDrawAdapter::FilledPolygon ( const eVision::EPolygon & polygon)
virtual

Fills a polygon.

Parameters
polygonPolygon

◆ FilledPolygon() [2/6]

void eVision::EDrawAdapter::FilledPolygon ( const eVision::EPolygon & polygon,
eVision::EPen pen )
virtual

Fills a polygon.

Parameters
polygonPolygon
penOptional pen to use for drawing the contour of the polygon

◆ FilledPolygon() [3/6]

void eVision::EDrawAdapter::FilledPolygon ( const eVision::EPolygon & polygon,
eVision::EPen pen,
eVision::EBrush brush )
virtual

Fills a polygon.

Parameters
polygonPolygon
penOptional pen to use for drawing the contour of the polygon
brushOptional pen to use for drawing the inside of the polygon

◆ FilledPolygon() [4/6]

virtual void eVision::EDrawAdapter::FilledPolygon ( const std::vector< eVision::EPoint > & points)
pure virtual

Fills a polygon.

Parameters
pointsPoints of the polygon

Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.

◆ FilledPolygon() [5/6]

virtual void eVision::EDrawAdapter::FilledPolygon ( const std::vector< eVision::EPoint > & points,
eVision::EPen pen )
pure virtual

Fills a polygon.

Parameters
pointsPoints of the polygon
penOptional pen to use for drawing the contour of the polygon

Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.

◆ FilledPolygon() [6/6]

virtual void eVision::EDrawAdapter::FilledPolygon ( const std::vector< eVision::EPoint > & points,
eVision::EPen pen,
eVision::EBrush brush )
pure virtual

Fills a polygon.

Parameters
pointsPoints of the polygon
penOptional pen to use for drawing the contour of the polygon
brushOptional pen to use for drawing the inside of the polygon

Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.

◆ FilledRectangle() [1/3]

virtual void eVision::EDrawAdapter::FilledRectangle ( int32_t orgX,
int32_t orgY,
int32_t width,
int32_t height )
pure virtual

Fills a rectangle.

Parameters
orgXX origin of the rectangle
orgYY origin of the rectangle
widthWidth of the rectangle
heightHeight of the rectangle

Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.

◆ FilledRectangle() [2/3]

virtual void eVision::EDrawAdapter::FilledRectangle ( int32_t orgX,
int32_t orgY,
int32_t width,
int32_t height,
eVision::EPen pen )
pure virtual

Fills a rectangle.

Parameters
orgXX origin of the rectangle
orgYY origin of the rectangle
widthWidth of the rectangle
heightHeight of the rectangle
penOptional pen to use for drawing the contour of the rectangle

Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.

◆ FilledRectangle() [3/3]

virtual void eVision::EDrawAdapter::FilledRectangle ( int32_t orgX,
int32_t orgY,
int32_t width,
int32_t height,
eVision::EPen pen,
eVision::EBrush brush )
pure virtual

Fills a rectangle.

Parameters
orgXX origin of the rectangle
orgYY origin of the rectangle
widthWidth of the rectangle
heightHeight of the rectangle
penOptional pen to use for drawing the contour of the rectangle
brushOptional brush to use for filling the inside of the rectangle

Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.

◆ FilledRotatedEllipse() [1/6]

void eVision::EDrawAdapter::FilledRotatedEllipse ( const eVision::EEllipse & ellipse)

Fills a rotated ellipse.

Parameters
ellipsethe ellipse to be drawn.

An ellipse with full angular amplitude is always drawn.

◆ FilledRotatedEllipse() [2/6]

void eVision::EDrawAdapter::FilledRotatedEllipse ( const eVision::EEllipse & ellipse,
eVision::EPen pen )

Fills a rotated ellipse.

Parameters
ellipsethe ellipse to be drawn.
penPen to draw the ellipse with.

An ellipse with full angular amplitude is always drawn.

◆ FilledRotatedEllipse() [3/6]

void eVision::EDrawAdapter::FilledRotatedEllipse ( const eVision::EEllipse & ellipse,
eVision::EPen pen,
eVision::EBrush brush )

Fills a rotated ellipse.

Parameters
ellipsethe ellipse to be drawn.
penPen to draw the ellipse with.
brushBrush to draw the ellipse with.

An ellipse with full angular amplitude is always drawn.

◆ FilledRotatedEllipse() [4/6]

void eVision::EDrawAdapter::FilledRotatedEllipse ( float centerX,
float centerY,
float radianAngle,
float longAxis,
float shortAxis )
virtual

Fills a rotated ellipse.

Parameters
centerXX coordinate of the ellipse center
centerYY coordinate of the ellipse center
radianAngleAngle of the rotated ellipse in radian
longAxisLong axis length
shortAxisShort axis length

An ellipse with full angular amplitude is always drawn.

◆ FilledRotatedEllipse() [5/6]

void eVision::EDrawAdapter::FilledRotatedEllipse ( float centerX,
float centerY,
float radianAngle,
float longAxis,
float shortAxis,
eVision::EPen pen )
virtual

Fills a rotated ellipse.

Parameters
centerXX coordinate of the ellipse center
centerYY coordinate of the ellipse center
radianAngleAngle of the rotated ellipse in radian
longAxisLong axis length
shortAxisShort axis length
penPen to draw the ellipse with.

An ellipse with full angular amplitude is always drawn.

◆ FilledRotatedEllipse() [6/6]

void eVision::EDrawAdapter::FilledRotatedEllipse ( float centerX,
float centerY,
float radianAngle,
float longAxis,
float shortAxis,
eVision::EPen pen,
eVision::EBrush brush )
virtual

Fills a rotated ellipse.

Parameters
centerXX coordinate of the ellipse center
centerYY coordinate of the ellipse center
radianAngleAngle of the rotated ellipse in radian
longAxisLong axis length
shortAxisShort axis length
penPen to draw the ellipse with.
brushBrush to draw the ellipse with.

An ellipse with full angular amplitude is always drawn.

◆ GetBrush()

eVision::EBrush eVision::EDrawAdapter::GetBrush ( ) const
virtual

Default brush.

◆ GetFont()

eVision::EFont eVision::EDrawAdapter::GetFont ( ) const
virtual

Default font.

Reimplemented in eVision::EGenericDrawAdapter.

◆ GetPen()

eVision::EPen eVision::EDrawAdapter::GetPen ( ) const
virtual

Default pen.

◆ GetTextSize()

virtual eVision::EPoint eVision::EDrawAdapter::GetTextSize ( const std::string & text)
pure virtual

Size of the given text using the default font (EDrawAdapter::SetFont).

Parameters
textText

Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.

◆ Image() [1/6]

void eVision::EDrawAdapter::Image ( const eVision::EBaseROI & image)
virtual

Draws an image.

Parameters
imageImage.

Reimplemented in eVision::EGenericDrawAdapter.

◆ Image() [2/6]

virtual void eVision::EDrawAdapter::Image ( const eVision::EBaseROI & image,
float orgX,
float orgY,
float width,
float height )
pure virtual

Draws an image.

Parameters
imageImage.
orgXX coordinate of the point where to draw the image.
orgYY coordinate of the point where to draw the image.
widthWidth of the destination rectangle in which to draw the image.
heightHeight of the destination rectangle in which to draw the image.

Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.

◆ Image() [3/6]

void eVision::EDrawAdapter::Image ( const eVision::EROIBW8 & image,
eVision::EBW8Vector * pColorScale )
virtual

Draws an image.

Parameters
imageImage.
pColorScaleColor scale to draw a grayscale image with.

Reimplemented in eVision::EGenericDrawAdapter.

◆ Image() [4/6]

virtual void eVision::EDrawAdapter::Image ( const eVision::EROIBW8 & image,
eVision::EBW8Vector * pColorScale,
float orgX,
float orgY,
float width,
float height )
pure virtual

Draws an image.

Parameters
imageImage.
pColorScaleColor scale to draw a grayscale image with.
orgXX coordinate of the point where to draw the image.
orgYY coordinate of the point where to draw the image.
widthWidth of the destination rectangle in which to draw the image.
heightHeight of the destination rectangle in which to draw the image.

Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.

◆ Image() [5/6]

void eVision::EDrawAdapter::Image ( const eVision::EROIBW8 & image,
eVision::EC24Vector * pColorScale )
virtual

Draws an image.

Parameters
imageImage.
pColorScaleColor scale to draw a grayscale image with.

Reimplemented in eVision::EGenericDrawAdapter.

◆ Image() [6/6]

virtual void eVision::EDrawAdapter::Image ( const eVision::EROIBW8 & image,
eVision::EC24Vector * pColorScale,
float orgX,
float orgY,
float width,
float height )
pure virtual

Draws an image.

Parameters
imageImage.
pColorScaleColor scale to draw a grayscale image with.
orgXX coordinate of the point where to draw the image.
orgYY coordinate of the point where to draw the image.
widthWidth of the destination rectangle in which to draw the image.
heightHeight of the destination rectangle in which to draw the image.

Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.

◆ Line() [1/2]

virtual void eVision::EDrawAdapter::Line ( int32_t x1,
int32_t y1,
int32_t x2,
int32_t y2 )
pure virtual

Draws a line between two points.

Parameters
x1X coordinate of line origin point
y1Y coordinate of line origin point
x2X coordinate of line end point
y2Y coordinate of line end point

Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.

◆ Line() [2/2]

virtual void eVision::EDrawAdapter::Line ( int32_t x1,
int32_t y1,
int32_t x2,
int32_t y2,
eVision::EPen pen )
pure virtual

Draws a line between two points.

Parameters
x1X coordinate of line origin point
y1Y coordinate of line origin point
x2X coordinate of line end point
y2Y coordinate of line end point
penOptional pen to use

Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.

◆ Polygon() [1/4]

void eVision::EDrawAdapter::Polygon ( const eVision::EPolygon & polygon)
virtual

Draws a polygon.

Parameters
polygonPolygon

◆ Polygon() [2/4]

void eVision::EDrawAdapter::Polygon ( const eVision::EPolygon & polygon,
eVision::EPen pen )
virtual

Draws a polygon.

Parameters
polygonPolygon
penOptional pen to use

◆ Polygon() [3/4]

virtual void eVision::EDrawAdapter::Polygon ( const std::vector< eVision::EPoint > & points)
pure virtual

Draws a polygon.

Parameters
pointsPoints of the polygon

Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.

◆ Polygon() [4/4]

virtual void eVision::EDrawAdapter::Polygon ( const std::vector< eVision::EPoint > & points,
eVision::EPen pen )
pure virtual

Draws a polygon.

Parameters
pointsPoints of the polygon
penOptional pen to use

Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.

◆ Rectangle() [1/2]

virtual void eVision::EDrawAdapter::Rectangle ( int32_t orgX,
int32_t orgY,
int32_t width,
int32_t height )
pure virtual

Draws a rectangle.

Parameters
orgXX origin of the rectangle
orgYY origin of the rectangle
widthWidth of the rectangle
heightHeight of the rectangle

Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.

◆ Rectangle() [2/2]

virtual void eVision::EDrawAdapter::Rectangle ( int32_t orgX,
int32_t orgY,
int32_t width,
int32_t height,
eVision::EPen pen )
pure virtual

Draws a rectangle.

Parameters
orgXX origin of the rectangle
orgYY origin of the rectangle
widthWidth of the rectangle
heightHeight of the rectangle
penOptional pen to use

Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.

◆ RotatedEllipse() [1/4]

void eVision::EDrawAdapter::RotatedEllipse ( const eVision::EEllipse & ellipse,
bool drawDiagonals )

Draws a rotated ellipse.

Parameters
ellipsethe ellipse to be drawn.
drawDiagonalsWhether to draw the diagonal

An ellipse with full angular amplitude is always drawn.

◆ RotatedEllipse() [2/4]

void eVision::EDrawAdapter::RotatedEllipse ( const eVision::EEllipse & ellipse,
bool drawDiagonals,
eVision::EPen pen )

Draws a rotated ellipse.

Parameters
ellipsethe ellipse to be drawn.
drawDiagonalsWhether to draw the diagonal
penPen to draw the ellipse with.

An ellipse with full angular amplitude is always drawn.

◆ RotatedEllipse() [3/4]

void eVision::EDrawAdapter::RotatedEllipse ( float centerX,
float centerY,
float radianAngle,
float longAxis,
float shortAxis,
bool drawDiagonals )
virtual

Draws a rotated ellipse.

Parameters
centerXX coordinate of the ellipse center
centerYY coordinate of the ellipse center
radianAngleAngle of the rotated ellipse in radian
longAxisLong axis length
shortAxisShort axis length
drawDiagonalsWhether to draw the diagonal

An ellipse with full angular amplitude is always drawn.

◆ RotatedEllipse() [4/4]

void eVision::EDrawAdapter::RotatedEllipse ( float centerX,
float centerY,
float radianAngle,
float longAxis,
float shortAxis,
bool drawDiagonals,
eVision::EPen pen )
virtual

Draws a rotated ellipse.

Parameters
centerXX coordinate of the ellipse center
centerYY coordinate of the ellipse center
radianAngleAngle of the rotated ellipse in radian
longAxisLong axis length
shortAxisShort axis length
drawDiagonalsWhether to draw the diagonal
penPen to draw the ellipse with.

An ellipse with full angular amplitude is always drawn.

◆ SetBrush()

void eVision::EDrawAdapter::SetBrush ( const eVision::EBrush & brush)
virtual

Default brush.

Parameters
brushBrush.

Reimplemented in eVision::EExternalDrawAdapter, and eVision::EWindowsDrawAdapter.

◆ SetFont()

void eVision::EDrawAdapter::SetFont ( const eVision::EFont & font)
virtual

Default font.

Parameters
fontFont.

Reimplemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.

◆ SetPen()

void eVision::EDrawAdapter::SetPen ( const eVision::EPen & pen)
virtual

Default pen.

Parameters
penPen.

Reimplemented in eVision::EExternalDrawAdapter, and eVision::EWindowsDrawAdapter.

◆ Text() [1/6]

void eVision::EDrawAdapter::Text ( const std::string & text,
int32_t x,
int32_t y )
virtual

Draws a text.

Parameters
textText to draw.
xX position of the text.
yY 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.

◆ Text() [2/6]

void eVision::EDrawAdapter::Text ( const std::string & text,
int32_t x,
int32_t y,
eVision::EBrush textBrush )
virtual

Draws a text.

Parameters
textText to draw.
xX position of the text.
yY position of the text.
textBrushOptional 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.

◆ Text() [3/6]

void eVision::EDrawAdapter::Text ( const std::string & text,
int32_t x,
int32_t y,
eVision::EBrush textBrush,
eVision::ETextSizeConstraint constraint )
virtual

Draws a text.

Parameters
textText to draw.
xX position of the text.
yY position of the text.
textBrushOptional brush to use for the color of the text.
constraintText 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.

◆ Text() [4/6]

virtual void eVision::EDrawAdapter::Text ( const std::string & text,
int32_t x,
int32_t y,
float orientation )
pure virtual

Draws a text.

Parameters
textText to draw.
xX position of the text.
yY position of the text.
orientationOrientation 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.

◆ Text() [5/6]

virtual void eVision::EDrawAdapter::Text ( const std::string & text,
int32_t x,
int32_t y,
float orientation,
eVision::EBrush textBrush )
pure virtual

Draws a text.

Parameters
textText to draw.
xX position of the text.
yY position of the text.
orientationOrientation of the text in radians.
textBrushOptional 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.

◆ Text() [6/6]

virtual void eVision::EDrawAdapter::Text ( const std::string & text,
int32_t x,
int32_t y,
float orientation,
eVision::EBrush textBrush,
eVision::ETextSizeConstraint constraint )
pure virtual

Draws a text.

Parameters
textText to draw.
xX position of the text.
yY position of the text.
orientationOrientation of the text in radians.
textBrushOptional brush to use for the color of the text.
constraintText 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.

◆ UseCurrentBrush()

virtual void eVision::EDrawAdapter::UseCurrentBrush ( )
pure virtual

Use the current pen set in the drawing framework.

Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.

◆ UseCurrentPen()

virtual void eVision::EDrawAdapter::UseCurrentPen ( )
pure virtual

Use the current pen set in the drawing framework.

Implemented in eVision::EExternalDrawAdapter, eVision::EGenericDrawAdapter, and eVision::EWindowsDrawAdapter.

Member Data Documentation

◆ wrappedClass_

CppWrapperInternal::WrappedClass eVision::EDrawAdapter::wrappedClass_