eVision .NET API
Loading...
Searching...
No Matches
eVision.EDrawAdapter Class Referenceabstract

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

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

Public Member Functions

void DrawPoint (int x1, int y1, eVision.EPen pen)
 Draws a point at the given coordinate.
void DrawPoint (int x1, int y1)
 Draws a point at the given coordinate.
void Line (int x1, int y1, int x2, int y2, eVision.EPen pen)
 Draws a line between two points.
void Line (int x1, int y1, int x2, int y2)
 Draws a line between two points.
void Arc (int orgX, int orgY, int width, int height, float startAngle, float amplitude, eVision.EPen pen)
 Draws an arc defined by a rectangle, angle, and amplitude.
void Arc (int orgX, int orgY, int width, int height, float startAngle, float amplitude)
 Draws an arc defined by a rectangle, angle, and amplitude.
void Rectangle (int orgX, int orgY, int width, int height, eVision.EPen pen)
 Draws a rectangle.
void Rectangle (int orgX, int orgY, int width, int height)
 Draws a rectangle.
void Polygon (eVision.EPoint[] points, eVision.EPen pen)
 Draws a polygon.
void Polygon (eVision.EPoint[] points)
 Draws a polygon.
virtual void Polygon (eVision.EPolygon polygon, eVision.EPen pen)
 Draws a polygon.
virtual void Polygon (eVision.EPolygon polygon)
 Draws a polygon.
void Ellipse (int orgX, int orgY, int width, int height, eVision.EPen pen)
 Draws an ellipse.
void Ellipse (int orgX, int orgY, int width, int height)
 Draws an ellipse.
void Ellipse (eVision.EEllipse ellipse, eVision.EPen pen)
 Draws an ellipse.
void Ellipse (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 (eVision.EEllipse ellipse, bool drawDiagonals, eVision.EPen pen)
 Draws a rotated ellipse.
void RotatedEllipse (eVision.EEllipse ellipse, bool drawDiagonals)
 Draws a rotated ellipse.
void FilledRectangle (int orgX, int orgY, int width, int height, eVision.EPen pen, eVision.EBrush brush)
 Fills a rectangle.
void FilledRectangle (int orgX, int orgY, int width, int height, eVision.EPen pen)
 Fills a rectangle.
void FilledRectangle (int orgX, int orgY, int width, int height)
 Fills a rectangle.
void FilledEllipse (int orgX, int orgY, int width, int height, eVision.EPen pen, eVision.EBrush brush)
 Fills an ellipse.
void FilledEllipse (int orgX, int orgY, int width, int height, eVision.EPen pen)
 Fills an ellipse.
void FilledEllipse (int orgX, int orgY, int width, int height)
 Fills an ellipse.
void FilledEllipse (eVision.EEllipse ellipse, eVision.EPen pen, eVision.EBrush brush)
 Fills an ellipse.
void FilledEllipse (eVision.EEllipse ellipse, eVision.EPen pen)
 Fills an ellipse.
void FilledEllipse (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 (eVision.EEllipse ellipse, eVision.EPen pen, eVision.EBrush brush)
 Fills a rotated ellipse.
void FilledRotatedEllipse (eVision.EEllipse ellipse, eVision.EPen pen)
 Fills a rotated ellipse.
void FilledRotatedEllipse (eVision.EEllipse ellipse)
 Fills a rotated ellipse.
void FilledPolygon (eVision.EPoint[] points, eVision.EPen pen, eVision.EBrush brush)
 Fills a polygon.
void FilledPolygon (eVision.EPoint[] points, eVision.EPen pen)
 Fills a polygon.
void FilledPolygon (eVision.EPoint[] points)
 Fills a polygon.
virtual void FilledPolygon (eVision.EPolygon polygon, eVision.EPen pen, eVision.EBrush brush)
 Fills a polygon.
virtual void FilledPolygon (eVision.EPolygon polygon, eVision.EPen pen)
 Fills a polygon.
virtual void FilledPolygon (eVision.EPolygon polygon)
 Fills a polygon.
virtual void Text (string text, int x, int y, eVision.EBrush textBrush, eVision.ETextSizeConstraint constraint)
 Draws a text.
virtual void Text (string text, int x, int y, eVision.EBrush textBrush)
 Draws a text.
virtual void Text (string text, int x, int y)
 Draws a text.
void Text (string text, int x, int y, float orientation, eVision.EBrush textBrush, eVision.ETextSizeConstraint constraint)
 Draws a text.
void Text (string text, int x, int y, float orientation, eVision.EBrush textBrush)
 Draws a text.
void Text (string text, int x, int y, float orientation)
 Draws a text.
virtual void BackedText (string text, int x, int y, eVision.EBrush textBrush, eVision.EBrush backgroundBrush, eVision.ETextSizeConstraint constraint)
 Draws a text with a background.
virtual void BackedText (string text, int x, int y, eVision.EBrush textBrush, eVision.EBrush backgroundBrush)
 Draws a text with a background.
virtual void BackedText (string text, int x, int y, eVision.EBrush textBrush)
 Draws a text with a background.
virtual void BackedText (string text, int x, int y)
 Draws a text with a background.
void BackedText (string text, int x, int y, float orientation, eVision.EBrush textBrush, eVision.EBrush backgroundBrush, eVision.ETextSizeConstraint constraint)
 Draws a text with a background.
void BackedText (string text, int x, int y, float orientation, eVision.EBrush textBrush, eVision.EBrush backgroundBrush)
 Draws a text with a background.
void BackedText (string text, int x, int y, float orientation, eVision.EBrush textBrush)
 Draws a text with a background.
void BackedText (string text, int x, int y, float orientation)
 Draws a text with a background.
virtual void Image (eVision.EBaseROI image)
 Draws an image.
virtual void Image (eVision.EROIBW8 image, eVision.EBW8Vector pColorScale)
 Draws an image.
virtual void Image (eVision.EROIBW8 image, eVision.EC24Vector pColorScale)
 Draws an image.
void Image (eVision.EBaseROI image, float orgX, float orgY, float width, float height)
 Draws an image.
void Image (eVision.EROIBW8 image, eVision.EC24Vector pColorScale, float orgX, float orgY, float width, float height)
 Draws an image.
void Image (eVision.EROIBW8 image, eVision.EBW8Vector pColorScale, float orgX, float orgY, float width, float height)
 Draws an image.
virtual void DrawMask (eVision.EBaseROI mask, eVision.EBrush brush)
 Draws a mask with a brush.
virtual void DrawMask (eVision.EBaseROI mask)
 Draws a mask with a brush.
virtual void DrawMask (eVision.EBaseROI mask, float orgX, float orgY, float width, float height, eVision.EBrush brush)
 Draws a mask with a brush.
virtual void DrawMask (eVision.EBaseROI mask, float orgX, float orgY, float width, float height)
 Draws a mask with a brush.
eVision.EPoint GetTextSize (string text)
 Size of the given text using the default font (EDrawAdapter.Font).
void UseCurrentPen ()
 Use the current pen set in the drawing framework.
void UseCurrentBrush ()
 Use the current pen set in the drawing framework.
virtual int ComputeTextSize (string text, int desiredWidth)
 Computes text size for given constraint. Constraint is the desired total width of the text to draw.

Properties

virtual eVision.EPen Pen [get, set]
 Default pen.
virtual eVision.EBrush Brush [get, set]
 Default brush.
virtual eVision.EFont Font [get, set]
 Default font.

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.Pen) and default brush (EDrawAdapter.Brush) 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

Member Function Documentation

◆ Arc() [1/2]

void eVision.EDrawAdapter.Arc ( int orgX,
int orgY,
int width,
int height,
float startAngle,
float amplitude )
abstract

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

◆ Arc() [2/2]

void eVision.EDrawAdapter.Arc ( int orgX,
int orgY,
int width,
int height,
float startAngle,
float amplitude,
eVision.EPen pen )
abstract

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

◆ BackedText() [1/8]

virtual void eVision.EDrawAdapter.BackedText ( string text,
int x,
int 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]

virtual void eVision.EDrawAdapter.BackedText ( string text,
int x,
int 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]

virtual void eVision.EDrawAdapter.BackedText ( string text,
int x,
int 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]

virtual void eVision.EDrawAdapter.BackedText ( string text,
int x,
int 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]

void eVision.EDrawAdapter.BackedText ( string text,
int x,
int y,
float orientation )
abstract

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.

◆ BackedText() [6/8]

void eVision.EDrawAdapter.BackedText ( string text,
int x,
int y,
float orientation,
eVision.EBrush textBrush )
abstract

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.

◆ BackedText() [7/8]

void eVision.EDrawAdapter.BackedText ( string text,
int x,
int y,
float orientation,
eVision.EBrush textBrush,
eVision.EBrush backgroundBrush )
abstract

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.

◆ BackedText() [8/8]

void eVision.EDrawAdapter.BackedText ( string text,
int x,
int y,
float orientation,
eVision.EBrush textBrush,
eVision.EBrush backgroundBrush,
eVision.ETextSizeConstraint constraint )
abstract

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.

◆ ComputeTextSize()

virtual int eVision.EDrawAdapter.ComputeTextSize ( string text,
int 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]

virtual void eVision.EDrawAdapter.DrawMask ( 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]

virtual void eVision.EDrawAdapter.DrawMask ( eVision.EBaseROI mask,
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]

virtual void eVision.EDrawAdapter.DrawMask ( 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]

virtual void eVision.EDrawAdapter.DrawMask ( eVision.EBaseROI mask,
float orgX,
float orgY,
float width,
float height,
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]

void eVision.EDrawAdapter.DrawPoint ( int x1,
int y1 )
abstract

Draws a point at the given coordinate.

Parameters
x1X coordinate
y1Y coordinate

◆ DrawPoint() [2/2]

void eVision.EDrawAdapter.DrawPoint ( int x1,
int y1,
eVision.EPen pen )
abstract

Draws a point at the given coordinate.

Parameters
x1X coordinate
y1Y coordinate
penOptional pen to use

◆ Ellipse() [1/4]

void eVision.EDrawAdapter.Ellipse ( 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 ( 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]

void eVision.EDrawAdapter.Ellipse ( int orgX,
int orgY,
int width,
int height )
abstract

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.

◆ Ellipse() [4/4]

void eVision.EDrawAdapter.Ellipse ( int orgX,
int orgY,
int width,
int height,
eVision.EPen pen )
abstract

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.

◆ FilledEllipse() [1/6]

void eVision.EDrawAdapter.FilledEllipse ( 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 ( 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 ( 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]

void eVision.EDrawAdapter.FilledEllipse ( int orgX,
int orgY,
int width,
int height )
abstract

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.

◆ FilledEllipse() [5/6]

void eVision.EDrawAdapter.FilledEllipse ( int orgX,
int orgY,
int width,
int height,
eVision.EPen pen )
abstract

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.

◆ FilledEllipse() [6/6]

void eVision.EDrawAdapter.FilledEllipse ( int orgX,
int orgY,
int width,
int height,
eVision.EPen pen,
eVision.EBrush brush )
abstract

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.

◆ FilledPolygon() [1/6]

void eVision.EDrawAdapter.FilledPolygon ( eVision.EPoint[] points)
abstract

Fills a polygon.

Parameters
pointsPoints of the polygon

◆ FilledPolygon() [2/6]

void eVision.EDrawAdapter.FilledPolygon ( eVision.EPoint[] points,
eVision.EPen pen )
abstract

Fills a polygon.

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

◆ FilledPolygon() [3/6]

void eVision.EDrawAdapter.FilledPolygon ( eVision.EPoint[] points,
eVision.EPen pen,
eVision.EBrush brush )
abstract

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

◆ FilledPolygon() [4/6]

virtual void eVision.EDrawAdapter.FilledPolygon ( eVision.EPolygon polygon)
virtual

Fills a polygon.

Parameters
polygonPolygon

◆ FilledPolygon() [5/6]

virtual void eVision.EDrawAdapter.FilledPolygon ( eVision.EPolygon polygon,
eVision.EPen pen )
virtual

Fills a polygon.

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

◆ FilledPolygon() [6/6]

virtual void eVision.EDrawAdapter.FilledPolygon ( 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

◆ FilledRectangle() [1/3]

void eVision.EDrawAdapter.FilledRectangle ( int orgX,
int orgY,
int width,
int height )
abstract

Fills a rectangle.

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

◆ FilledRectangle() [2/3]

void eVision.EDrawAdapter.FilledRectangle ( int orgX,
int orgY,
int width,
int height,
eVision.EPen pen )
abstract

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

◆ FilledRectangle() [3/3]

void eVision.EDrawAdapter.FilledRectangle ( int orgX,
int orgY,
int width,
int height,
eVision.EPen pen,
eVision.EBrush brush )
abstract

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

◆ FilledRotatedEllipse() [1/6]

void eVision.EDrawAdapter.FilledRotatedEllipse ( 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 ( 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 ( 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]

virtual 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]

virtual 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]

virtual 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.

◆ GetTextSize()

eVision.EPoint eVision.EDrawAdapter.GetTextSize ( string text)
abstract

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

Parameters
textText

◆ Image() [1/6]

virtual void eVision.EDrawAdapter.Image ( eVision.EBaseROI image)
virtual

Draws an image.

Parameters
imageImage.

Reimplemented in eVision.EGenericDrawAdapter.

◆ Image() [2/6]

void eVision.EDrawAdapter.Image ( eVision.EBaseROI image,
float orgX,
float orgY,
float width,
float height )
abstract

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.

◆ Image() [3/6]

virtual void eVision.EDrawAdapter.Image ( 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]

void eVision.EDrawAdapter.Image ( eVision.EROIBW8 image,
eVision.EBW8Vector pColorScale,
float orgX,
float orgY,
float width,
float height )
abstract

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.

◆ Image() [5/6]

virtual void eVision.EDrawAdapter.Image ( 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]

void eVision.EDrawAdapter.Image ( eVision.EROIBW8 image,
eVision.EC24Vector pColorScale,
float orgX,
float orgY,
float width,
float height )
abstract

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.

◆ Line() [1/2]

void eVision.EDrawAdapter.Line ( int x1,
int y1,
int x2,
int y2 )
abstract

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

◆ Line() [2/2]

void eVision.EDrawAdapter.Line ( int x1,
int y1,
int x2,
int y2,
eVision.EPen pen )
abstract

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

◆ Polygon() [1/4]

void eVision.EDrawAdapter.Polygon ( eVision.EPoint[] points)
abstract

Draws a polygon.

Parameters
pointsPoints of the polygon

◆ Polygon() [2/4]

void eVision.EDrawAdapter.Polygon ( eVision.EPoint[] points,
eVision.EPen pen )
abstract

Draws a polygon.

Parameters
pointsPoints of the polygon
penOptional pen to use

◆ Polygon() [3/4]

virtual void eVision.EDrawAdapter.Polygon ( eVision.EPolygon polygon)
virtual

Draws a polygon.

Parameters
polygonPolygon

◆ Polygon() [4/4]

virtual void eVision.EDrawAdapter.Polygon ( eVision.EPolygon polygon,
eVision.EPen pen )
virtual

Draws a polygon.

Parameters
polygonPolygon
penOptional pen to use

◆ Rectangle() [1/2]

void eVision.EDrawAdapter.Rectangle ( int orgX,
int orgY,
int width,
int height )
abstract

Draws a rectangle.

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

◆ Rectangle() [2/2]

void eVision.EDrawAdapter.Rectangle ( int orgX,
int orgY,
int width,
int height,
eVision.EPen pen )
abstract

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

◆ RotatedEllipse() [1/4]

void eVision.EDrawAdapter.RotatedEllipse ( 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 ( 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]

virtual 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]

virtual 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.

◆ Text() [1/6]

virtual void eVision.EDrawAdapter.Text ( string text,
int x,
int 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]

virtual void eVision.EDrawAdapter.Text ( string text,
int x,
int 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]

virtual void eVision.EDrawAdapter.Text ( string text,
int x,
int 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]

void eVision.EDrawAdapter.Text ( string text,
int x,
int y,
float orientation )
abstract

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.

◆ Text() [5/6]

void eVision.EDrawAdapter.Text ( string text,
int x,
int y,
float orientation,
eVision.EBrush textBrush )
abstract

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.

◆ Text() [6/6]

void eVision.EDrawAdapter.Text ( string text,
int x,
int y,
float orientation,
eVision.EBrush textBrush,
eVision.ETextSizeConstraint constraint )
abstract

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.

◆ UseCurrentBrush()

void eVision.EDrawAdapter.UseCurrentBrush ( )
abstract

Use the current pen set in the drawing framework.

◆ UseCurrentPen()

void eVision.EDrawAdapter.UseCurrentPen ( )
abstract

Use the current pen set in the drawing framework.

Property Documentation

◆ Brush

virtual eVision.EBrush eVision.EDrawAdapter.Brush
getset

Default brush.

◆ Font

virtual eVision.EFont eVision.EDrawAdapter.Font
getset

Default font.

◆ Pen

virtual eVision.EPen eVision.EDrawAdapter.Pen
getset

Default pen.