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

Manages a complete context for a ERegion (Arbitrary Shaped ROI). More...

#include <eVision/Easy/ERegion.h>

Inheritance diagram for eVision::ERegion:
Collaboration diagram for eVision::ERegion:

Public Member Functions

 ERegion ()
 Constructs an ERegion context.
 ERegion (const eVision::ERegion &other)
 Constructs an ERegion context.
 ERegion (const eVision::EROIBW8 &roi, eVision::EBW8 threshold)
 Constructs an ERegion context.
 ERegion (const eVision::EROIBW16 &roi, eVision::EBW16 threshold)
 Constructs an ERegion context.
 ERegion (const std::vector< eVision::ERun > &runs)
 Constructs an ERegion context.
virtual ~ERegion () throw ()
eVision::ERegion & operator= (const eVision::ERegion &other)
 Assignment operator.
bool operator== (const eVision::ERegion &other) const
 Checks if this ERegion instance is strictly equal to another (order of the runs included).
bool operator!= (const eVision::ERegion &other) const
 Checks if this ERegion instance is not strictly equal to another (order of the runs included).
std::vector< eVision::ERun > GetRuns () const
 Runs of the region.
void SetRuns (const std::vector< eVision::ERun > &runs)
 Runs of the region.
eVision::ERegion FillHoles () const
 Returns a new ERegion::ERegion whose holes are filled.
virtual int32_t GetBoundingBoxOrgX () const
 Bounding box origin abscissa.
virtual int32_t GetBoundingBoxOrgY () const
 Bounding box origin ordinate.
virtual int32_t GetBoundingBoxWidth () const
 Bounding box width.
virtual int32_t GetBoundingBoxHeight () const
 Bounding box height.
virtual int32_t GetArea () const
 Area of the ERegion.
void Prepare (const eVision::EROIBW8 &roi) const
 Computes the values necessary for the ERegion to be used during processing.
void Prepare (const eVision::EROIBW16 &roi) const
 Computes the values necessary for the ERegion to be used during processing.
void Prepare (const eVision::EROIBW32 &roi) const
 Computes the values necessary for the ERegion to be used during processing.
void Prepare (const eVision::EROIBW32f &roi) const
 Computes the values necessary for the ERegion to be used during processing.
void Prepare (const eVision::EROIC24 &roi) const
 Computes the values necessary for the ERegion to be used during processing.
void Prepare (const eVision::EROIC24A &roi) const
 Computes the values necessary for the ERegion to be used during processing.
void Prepare (const eVision::EROIC48 &roi) const
 Computes the values necessary for the ERegion to be used during processing.
void Prepare (int width, int height) const
 Computes the values necessary for the ERegion to be used during processing.
void Prepare (int orgX, int orgY, int width, int height) const
 Computes the values necessary for the ERegion to be used during processing.
void Prepare () const
 Computes the values necessary for the ERegion to be used during processing.
eVision::ERegion LocalToSensor (const eVision::EFrame &frame) const
 Converts the region from the local reference frame to the sensor reference frame.
eVision::ERegion SensorToLocal (const eVision::EFrame &frame) const
 Converts the region from the sensor reference frame to the local reference frame.
void ToImage (eVision::EImageC24 &img, eVision::EC24 background, eVision::EC24 foreground) const
 Exports the ERegion to a mask-type image.
void ToImage (eVision::EImageC24A &img, eVision::EC24A background, eVision::EC24A foreground) const
 Exports the ERegion to a mask-type image.
void ToImage (eVision::EImageBW8 &img, eVision::EBW8 background, eVision::EBW8 foreground) const
 Exports the ERegion to a mask-type image.
void ToImage (eVision::EImageBW16 &img, eVision::EBW16 background, eVision::EBW16 foreground) const
 Exports the ERegion to a mask-type image.
eVision::ERegion TranslateRuns (int dx, int dy) const
 Creates a new ERegion by translating the region runs.
virtual std::unique_ptr< eVision::ERegion > Translate (float dx, float dy) const
 Creates a new region by translating the ERegion.
virtual std::unique_ptr< eVision::ERegion > Scale (float scale) const
 Creates a new region by scaling the ERegion.
virtual std::unique_ptr< eVision::ERegion > Scale (float scaleX, float scaleY) const
 Creates a new region by scaling the ERegion.
virtual std::unique_ptr< eVision::ERegion > Rotate (float angle) const
 Creates a new region by rotating the ERegion.
virtual std::unique_ptr< eVision::ERegion > Transform (float scaleX, float scaleY, float angle, float dx, float dy) const
 Creates a new ERegion by scaling, rotating and then translating the ERegion.
eVision::ERegion CropRuns (int orgX, int orgY, int width, int height) const
 Creates a new ERegion by cropping the ERegion runs within a given area.
eVision::ERegion Grow (int radius) const
 Creates a new ERegion by growing the ERegion runs with a dilation using a circular structuring element.
eVision::ERegion Shrink (int radius) const
 Creates a new ERegion by shrinking the ERegion runs with an erosion using a circular structuring element.
eVision::ERegion Contour (int thickness, bool centered) const
 Creates a new ERegion containing the contour of the ERegion.
eVision::ERegion Contour (int thickness) const
 Creates a new ERegion containing the contour of the ERegion.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY) const
 Draws the ERegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY, float panX) const
 Draws the ERegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY) const
 Draws the ERegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX) const
 Draws the ERegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame) const
 Draws the ERegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, const eVision::ERGBColor &color, float opacity, float zoomX, float zoomY, float panX, float panY) const
 Draws the ERegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, const eVision::ERGBColor &color, float opacity, float zoomX, float zoomY, float panX) const
 Draws the ERegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, const eVision::ERGBColor &color, float opacity, float zoomX, float zoomY) const
 Draws the ERegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, const eVision::ERGBColor &color, float opacity, float zoomX) const
 Draws the ERegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, const eVision::ERGBColor &color, float opacity) const
 Draws the ERegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, const eVision::ERGBColor &color) const
 Draws the ERegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY, float panX, float panY) const
 Draws the ERegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY, float panX) const
 Draws the ERegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY) const
 Draws the ERegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, float zoomX) const
 Draws the ERegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter) const
 Draws the ERegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::ERGBColor &color, float opacity, float zoomX, float zoomY, float panX, float panY) const
 Draws the ERegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::ERGBColor &color, float opacity, float zoomX, float zoomY, float panX) const
 Draws the ERegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::ERGBColor &color, float opacity, float zoomX, float zoomY) const
 Draws the ERegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::ERGBColor &color, float opacity, float zoomX) const
 Draws the ERegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::ERGBColor &color, float opacity) const
 Draws the ERegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::ERGBColor &color) const
 Draws the ERegion shape.
void Draw (HDC graphicContext, float opacity, float zoomX, float zoomY, float panX, float panY) const
 Draws the ERegion shape.
void Draw (HDC graphicContext, float opacity, float zoomX, float zoomY, float panX) const
 Draws the ERegion shape.
void Draw (HDC graphicContext, float opacity, float zoomX, float zoomY) const
 Draws the ERegion shape.
void Draw (HDC graphicContext, float opacity, float zoomX) const
 Draws the ERegion shape.
void Draw (HDC graphicContext, float opacity) const
 Draws the ERegion shape.
void Draw (HDC graphicContext) const
 Draws the ERegion shape.
void Draw (HDC graphicContext, const eVision::ERGBColor &color, float opacity, float zoomX, float zoomY, float panX, float panY) const
 Draws the ERegion shape.
void Draw (HDC graphicContext, const eVision::ERGBColor &color, float opacity, float zoomX, float zoomY, float panX) const
 Draws the ERegion shape.
void Draw (HDC graphicContext, const eVision::ERGBColor &color, float opacity, float zoomX, float zoomY) const
 Draws the ERegion shape.
void Draw (HDC graphicContext, const eVision::ERGBColor &color, float opacity, float zoomX) const
 Draws the ERegion shape.
void Draw (HDC graphicContext, const eVision::ERGBColor &color, float opacity) const
 Draws the ERegion shape.
void Draw (HDC graphicContext, const eVision::ERGBColor &color) const
 Draws the ERegion shape.
void DrawWithCurrentPen (HDC graphicContext, float opacity, float zoomX, float zoomY, float panX, float panY) const
 Draws the ERegion area.
void DrawWithCurrentPen (HDC graphicContext, float opacity, float zoomX, float zoomY, float panX) const
 Draws the ERegion area.
void DrawWithCurrentPen (HDC graphicContext, float opacity, float zoomX, float zoomY) const
 Draws the ERegion area.
void DrawWithCurrentPen (HDC graphicContext, float opacity, float zoomX) const
 Draws the ERegion area.
void DrawWithCurrentPen (HDC graphicContext, float opacity) const
 Draws the ERegion area.
void DrawWithCurrentPen (HDC graphicContext) const
 Draws the ERegion area.
void DrawContour (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY) const
 Draws the ERegion contour.
void DrawContour (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY, float panX) const
 Draws the ERegion contour.
void DrawContour (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY) const
 Draws the ERegion contour.
void DrawContour (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX) const
 Draws the ERegion contour.
void DrawContour (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame) const
 Draws the ERegion contour.
void DrawContour (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, const eVision::ERGBColor &color, float zoomX, float zoomY, float panX, float panY) const
 Draws the ERegion contour.
void DrawContour (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, const eVision::ERGBColor &color, float zoomX, float zoomY, float panX) const
 Draws the ERegion contour.
void DrawContour (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, const eVision::ERGBColor &color, float zoomX, float zoomY) const
 Draws the ERegion contour.
void DrawContour (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, const eVision::ERGBColor &color, float zoomX) const
 Draws the ERegion contour.
void DrawContour (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, const eVision::ERGBColor &color) const
 Draws the ERegion contour.
void DrawContour (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY, float panX, float panY) const
 Draws the ERegion contour.
void DrawContour (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY, float panX) const
 Draws the ERegion contour.
void DrawContour (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY) const
 Draws the ERegion contour.
void DrawContour (eVision::EDrawAdapter *drawAdapter, float zoomX) const
 Draws the ERegion contour.
void DrawContour (eVision::EDrawAdapter *drawAdapter) const
 Draws the ERegion contour.
void DrawContour (eVision::EDrawAdapter *drawAdapter, const eVision::ERGBColor &color, float zoomX, float zoomY, float panX, float panY) const
 Draws the ERegion contour.
void DrawContour (eVision::EDrawAdapter *drawAdapter, const eVision::ERGBColor &color, float zoomX, float zoomY, float panX) const
 Draws the ERegion contour.
void DrawContour (eVision::EDrawAdapter *drawAdapter, const eVision::ERGBColor &color, float zoomX, float zoomY) const
 Draws the ERegion contour.
void DrawContour (eVision::EDrawAdapter *drawAdapter, const eVision::ERGBColor &color, float zoomX) const
 Draws the ERegion contour.
void DrawContour (eVision::EDrawAdapter *drawAdapter, const eVision::ERGBColor &color) const
 Draws the ERegion contour.
void DrawContour (HDC graphicContext, float zoomX, float zoomY, float panX, float panY) const
 Draws the ERegion contour.
void DrawContour (HDC graphicContext, float zoomX, float zoomY, float panX) const
 Draws the ERegion contour.
void DrawContour (HDC graphicContext, float zoomX, float zoomY) const
 Draws the ERegion contour.
void DrawContour (HDC graphicContext, float zoomX) const
 Draws the ERegion contour.
void DrawContour (HDC graphicContext) const
 Draws the ERegion contour.
void DrawContour (HDC graphicContext, const eVision::ERGBColor &color, float zoomX, float zoomY, float panX, float panY) const
 Draws the ERegion contour.
void DrawContour (HDC graphicContext, const eVision::ERGBColor &color, float zoomX, float zoomY, float panX) const
 Draws the ERegion contour.
void DrawContour (HDC graphicContext, const eVision::ERGBColor &color, float zoomX, float zoomY) const
 Draws the ERegion contour.
void DrawContour (HDC graphicContext, const eVision::ERGBColor &color, float zoomX) const
 Draws the ERegion contour.
void DrawContour (HDC graphicContext, const eVision::ERGBColor &color) const
 Draws the ERegion contour.
void DrawContourWithCurrentPen (HDC hdc, float zoomX, float zoomY, float panX, float panY) const
 Draws the ERegion contour with the current pen.
void DrawHandles (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY) const
 Draws the region handles.
void DrawHandles (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY, float panX) const
 Draws the region handles.
void DrawHandles (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY) const
 Draws the region handles.
void DrawHandles (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX) const
 Draws the region handles.
void DrawHandles (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame) const
 Draws the region handles.
void DrawHandles (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, const eVision::ERGBColor &color, float zoomX, float zoomY, float panX, float panY) const
 Draws the region handles.
void DrawHandles (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, const eVision::ERGBColor &color, float zoomX, float zoomY, float panX) const
 Draws the region handles.
void DrawHandles (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, const eVision::ERGBColor &color, float zoomX, float zoomY) const
 Draws the region handles.
void DrawHandles (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, const eVision::ERGBColor &color, float zoomX) const
 Draws the region handles.
void DrawHandles (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, const eVision::ERGBColor &color) const
 Draws the region handles.
void DrawHandles (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY, float panX, float panY) const
 Draws the region handles.
void DrawHandles (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY, float panX) const
 Draws the region handles.
void DrawHandles (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY) const
 Draws the region handles.
void DrawHandles (eVision::EDrawAdapter *drawAdapter, float zoomX) const
 Draws the region handles.
void DrawHandles (eVision::EDrawAdapter *drawAdapter) const
 Draws the region handles.
void DrawHandles (eVision::EDrawAdapter *drawAdapter, const eVision::ERGBColor &color, float zoomX, float zoomY, float panX, float panY) const
 Draws the region handles.
void DrawHandles (eVision::EDrawAdapter *drawAdapter, const eVision::ERGBColor &color, float zoomX, float zoomY, float panX) const
 Draws the region handles.
void DrawHandles (eVision::EDrawAdapter *drawAdapter, const eVision::ERGBColor &color, float zoomX, float zoomY) const
 Draws the region handles.
void DrawHandles (eVision::EDrawAdapter *drawAdapter, const eVision::ERGBColor &color, float zoomX) const
 Draws the region handles.
void DrawHandles (eVision::EDrawAdapter *drawAdapter, const eVision::ERGBColor &color) const
 Draws the region handles.
void DrawHandles (HDC hdc, float zoomX, float zoomY, float panX, float panY) const
 Draws the region handles.
void DrawHandles (HDC hdc, float zoomX, float zoomY, float panX) const
 Draws the region handles.
void DrawHandles (HDC hdc, float zoomX, float zoomY) const
 Draws the region handles.
void DrawHandles (HDC hdc, float zoomX) const
 Draws the region handles.
void DrawHandles (HDC hdc) const
 Draws the region handles.
void DrawHandles (HDC hdc, const eVision::ERGBColor &color, float zoomX, float zoomY, float panX, float panY) const
 Draws the region handles.
void DrawHandles (HDC hdc, const eVision::ERGBColor &color, float zoomX, float zoomY, float panX) const
 Draws the region handles.
void DrawHandles (HDC hdc, const eVision::ERGBColor &color, float zoomX, float zoomY) const
 Draws the region handles.
void DrawHandles (HDC hdc, const eVision::ERGBColor &color, float zoomX) const
 Draws the region handles.
void DrawHandles (HDC hdc, const eVision::ERGBColor &color) const
 Draws the region handles.
void DrawHandlesWithCurrentPen (HDC hdc, float zoomX, float zoomY, float panX, float panY) const
 Draws the region handles with the current pen.
void DrawHandlesWithCurrentPen (HDC hdc, float zoomX, float zoomY, float panX) const
 Draws the region handles with the current pen.
void DrawHandlesWithCurrentPen (HDC hdc, float zoomX, float zoomY) const
 Draws the region handles with the current pen.
void DrawHandlesWithCurrentPen (HDC hdc, float zoomX) const
 Draws the region handles with the current pen.
void DrawHandlesWithCurrentPen (HDC hdc) const
 Draws the region handles with the current pen.
virtual eVision::EEditionMode HitTest (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY) const
 Detects if the cursor is placed over one of the dragging handles.
virtual eVision::EEditionMode HitTest (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX, float zoomY, float panX) const
 Detects if the cursor is placed over one of the dragging handles.
virtual eVision::EEditionMode HitTest (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX, float zoomY) const
 Detects if the cursor is placed over one of the dragging handles.
virtual eVision::EEditionMode HitTest (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX) const
 Detects if the cursor is placed over one of the dragging handles.
virtual eVision::EEditionMode HitTest (int32_t x, int32_t y, const eVision::EFrame &frame) const
 Detects if the cursor is placed over one of the dragging handles.
eVision::EEditionMode HitTest (int32_t x, int32_t y, float zoomX, float zoomY, float panX, float panY) const
 Detects if the cursor is placed over one of the dragging handles.
eVision::EEditionMode HitTest (int32_t x, int32_t y, float zoomX, float zoomY, float panX) const
 Detects if the cursor is placed over one of the dragging handles.
eVision::EEditionMode HitTest (int32_t x, int32_t y, float zoomX, float zoomY) const
 Detects if the cursor is placed over one of the dragging handles.
eVision::EEditionMode HitTest (int32_t x, int32_t y, float zoomX) const
 Detects if the cursor is placed over one of the dragging handles.
eVision::EEditionMode HitTest (int32_t x, int32_t y) const
 Detects if the cursor is placed over one of the dragging handles.
virtual void Drag (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY)
 Moves the specified handle to a new position and updates all placement parameters of the region.
virtual void Drag (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX, float zoomY, float panX)
 Moves the specified handle to a new position and updates all placement parameters of the region.
virtual void Drag (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX, float zoomY)
 Moves the specified handle to a new position and updates all placement parameters of the region.
virtual void Drag (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX)
 Moves the specified handle to a new position and updates all placement parameters of the region.
virtual void Drag (int32_t x, int32_t y, const eVision::EFrame &frame)
 Moves the specified handle to a new position and updates all placement parameters of the region.
void Drag (int32_t x, int32_t y, float zoomX, float zoomY, float panX, float panY)
 Moves the specified handle to a new position and updates all placement parameters of the region.
void Drag (int32_t x, int32_t y, float zoomX, float zoomY, float panX)
 Moves the specified handle to a new position and updates all placement parameters of the region.
void Drag (int32_t x, int32_t y, float zoomX, float zoomY)
 Moves the specified handle to a new position and updates all placement parameters of the region.
void Drag (int32_t x, int32_t y, float zoomX)
 Moves the specified handle to a new position and updates all placement parameters of the region.
void Drag (int32_t x, int32_t y)
 Moves the specified handle to a new position and updates all placement parameters of the region.
void SetEditionMode (eVision::EEditionMode mode)
 Graphical edition mode.
eVision::EEditionMode GetEditionMode () const
 Graphical edition mode.
virtual eVision::EEditionMode GetAvailableEditionModes () const
 Returns all possible edition modes of the region.
virtual void Load (const std::string &path)
 Loads the ERegion. The given ESerializer must have been created for reading.
virtual void Load (eVision::ESerializer *serializer)
 Loads the ERegion. The given ESerializer must have been created for reading.
virtual void Save (const std::string &path)
 Saves the ERegion. The given ESerializer must have been created for writing.
virtual void Save (eVision::ESerializer *serializer)
 Saves the ERegion. The given ESerializer must have been created for writing.
virtual bool IsPointInRegion (const eVision::EPoint &point) const
 Checks if a point is inside the rasterized region.
virtual std::unique_ptr< eVision::ERegion > Clone () const
 Clones the ERegion, if this object is an ERegion subclass, the returned region will be as well.
 ERegion (CppWrapperInternal::InternalConstructor)

Static Public Member Functions

static eVision::ERegion Union (const eVision::ERegion &region1, const eVision::ERegion &region2)
 Creates a new ERegion by combining two ERegion.
static eVision::ERegion Intersection (const eVision::ERegion &region1, const eVision::ERegion &region2)
 Creates a new ERegion by intersecting two ERegion.
static eVision::ERegion Subtraction (const eVision::ERegion &region1, const eVision::ERegion &region2)
 Creates a new ERegion by subtracting one ERegion from another.
static std::unique_ptr< eVision::ERegion > Make (const std::string &file)
 Makes a typed region based on the serialized file.
static std::unique_ptr< eVision::ERegion > Make (eVision::ESerializer *serializer)
 Makes a typed region based on the serialized file.

Public Attributes

CppWrapperInternal::WrappedClass wrappedClass_

Detailed Description

Manages a complete context for a ERegion (Arbitrary Shaped ROI).

License(s): BasicTypes

Constructor & Destructor Documentation

◆ ERegion() [1/6]

eVision::ERegion::ERegion ( )

Constructs an ERegion context.

◆ ERegion() [2/6]

eVision::ERegion::ERegion ( const eVision::ERegion & other)

Constructs an ERegion context.

Parameters
otherERegion context to copy.

◆ ERegion() [3/6]

eVision::ERegion::ERegion ( const eVision::EROIBW8 & roi,
eVision::EBW8 threshold )

Constructs an ERegion context.

Parameters
roiMask ROI.
thresholdMask Threshold (a pixel belongs to the ERegion if its value is >= threshold).

◆ ERegion() [4/6]

eVision::ERegion::ERegion ( const eVision::EROIBW16 & roi,
eVision::EBW16 threshold )

Constructs an ERegion context.

Parameters
roiMask ROI.
thresholdMask Threshold (a pixel belongs to the ERegion if its value is >= threshold).

◆ ERegion() [5/6]

eVision::ERegion::ERegion ( const std::vector< eVision::ERun > & runs)

Constructs an ERegion context.

Parameters
runsList of ERun.

◆ ~ERegion()

eVision::ERegion::~ERegion ( )
throw ( )
virtual

◆ ERegion() [6/6]

eVision::ERegion::ERegion ( CppWrapperInternal::InternalConstructor )

Member Function Documentation

◆ Clone()

std::unique_ptr< eVision::ERegion > eVision::ERegion::Clone ( ) const
virtual

Clones the ERegion, if this object is an ERegion subclass, the returned region will be as well.

Reimplemented in eVision::ECircleRegion, eVision::EEllipseRegion, eVision::EPolygonRegion, and eVision::ERectangleRegion.

◆ Contour() [1/2]

eVision::ERegion eVision::ERegion::Contour ( int thickness) const

Creates a new ERegion containing the contour of the ERegion.

Parameters
thicknessThe thickness of the returned contour of the ERegion border. A negative value will compute the inner contour and a positive one will compute the outer contour using the absolute value of thickness as thickness.

If thickness is even and centered is true, the thickness will be increased by 1.

◆ Contour() [2/2]

eVision::ERegion eVision::ERegion::Contour ( int thickness,
bool centered ) const

Creates a new ERegion containing the contour of the ERegion.

Parameters
thicknessThe thickness of the returned contour of the ERegion border. A negative value will compute the inner contour and a positive one will compute the outer contour using the absolute value of thickness as thickness.
centeredIf true, the contour will be centered with the border of the ERegion. If false, the contour will be either the inner or outer one depending on the sign of thickness

If thickness is even and centered is true, the thickness will be increased by 1.

◆ CropRuns()

eVision::ERegion eVision::ERegion::CropRuns ( int orgX,
int orgY,
int width,
int height ) const

Creates a new ERegion by cropping the ERegion runs within a given area.

Parameters
orgXX origin of the cropping area.
orgYY origin of the cropping area.
widthWidth of the cropping area.
heightHeight of the cropping area.

◆ Drag() [1/10]

void eVision::ERegion::Drag ( int32_t x,
int32_t y )

Moves the specified handle to a new position and updates all placement parameters of the region.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.

If zooming and/or panning were used when drawing the region, the same values must be used with ERegion::HitTest and ERegion::Drag.

◆ Drag() [2/10]

void eVision::ERegion::Drag ( int32_t x,
int32_t y,
const eVision::EFrame & frame )
virtual

Moves the specified handle to a new position and updates all placement parameters of the region.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame to transform coordinates with.

If zooming and/or panning were used when drawing the region, the same values must be used with ERegion::HitTest and ERegion::Drag.

Reimplemented in eVision::ECircleRegion, eVision::EEllipseRegion, eVision::EPolygonRegion, and eVision::ERectangleRegion.

◆ Drag() [3/10]

void eVision::ERegion::Drag ( int32_t x,
int32_t y,
const eVision::EFrame & frame,
float zoomX )
virtual

Moves the specified handle to a new position and updates all placement parameters of the region.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame to transform coordinates with.
zoomXHorizontal zoom factor. By default, true scale is used.

If zooming and/or panning were used when drawing the region, the same values must be used with ERegion::HitTest and ERegion::Drag.

Reimplemented in eVision::ECircleRegion, eVision::EEllipseRegion, eVision::EPolygonRegion, and eVision::ERectangleRegion.

◆ Drag() [4/10]

void eVision::ERegion::Drag ( int32_t x,
int32_t y,
const eVision::EFrame & frame,
float zoomX,
float zoomY )
virtual

Moves the specified handle to a new position and updates all placement parameters of the region.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame to transform coordinates with.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.

If zooming and/or panning were used when drawing the region, the same values must be used with ERegion::HitTest and ERegion::Drag.

Reimplemented in eVision::ECircleRegion, eVision::EEllipseRegion, eVision::EPolygonRegion, and eVision::ERectangleRegion.

◆ Drag() [5/10]

void eVision::ERegion::Drag ( int32_t x,
int32_t y,
const eVision::EFrame & frame,
float zoomX,
float zoomY,
float panX )
virtual

Moves the specified handle to a new position and updates all placement parameters of the region.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame to transform coordinates with.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.
panXHorizontal pan offset. By default, no pan is added.

If zooming and/or panning were used when drawing the region, the same values must be used with ERegion::HitTest and ERegion::Drag.

Reimplemented in eVision::ECircleRegion, eVision::EEllipseRegion, eVision::EPolygonRegion, and eVision::ERectangleRegion.

◆ Drag() [6/10]

void eVision::ERegion::Drag ( int32_t x,
int32_t y,
const eVision::EFrame & frame,
float zoomX,
float zoomY,
float panX,
float panY )
virtual

Moves the specified handle to a new position and updates all placement parameters of the region.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame to transform coordinates with.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.
panXHorizontal pan offset. By default, no pan is added.
panYVertical pan offset. By default, no pan is added.

If zooming and/or panning were used when drawing the region, the same values must be used with ERegion::HitTest and ERegion::Drag.

Reimplemented in eVision::ECircleRegion, eVision::EEllipseRegion, eVision::EPolygonRegion, and eVision::ERectangleRegion.

◆ Drag() [7/10]

void eVision::ERegion::Drag ( int32_t x,
int32_t y,
float zoomX )

Moves the specified handle to a new position and updates all placement parameters of the region.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
zoomXHorizontal zoom factor. By default, true scale is used.

If zooming and/or panning were used when drawing the region, the same values must be used with ERegion::HitTest and ERegion::Drag.

◆ Drag() [8/10]

void eVision::ERegion::Drag ( int32_t x,
int32_t y,
float zoomX,
float zoomY )

Moves the specified handle to a new position and updates all placement parameters of the region.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.

If zooming and/or panning were used when drawing the region, the same values must be used with ERegion::HitTest and ERegion::Drag.

◆ Drag() [9/10]

void eVision::ERegion::Drag ( int32_t x,
int32_t y,
float zoomX,
float zoomY,
float panX )

Moves the specified handle to a new position and updates all placement parameters of the region.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.
panXHorizontal pan offset. By default, no pan is added.

If zooming and/or panning were used when drawing the region, the same values must be used with ERegion::HitTest and ERegion::Drag.

◆ Drag() [10/10]

void eVision::ERegion::Drag ( int32_t x,
int32_t y,
float zoomX,
float zoomY,
float panX,
float panY )

Moves the specified handle to a new position and updates all placement parameters of the region.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.
panXHorizontal pan offset. By default, no pan is added.
panYVertical pan offset. By default, no pan is added.

If zooming and/or panning were used when drawing the region, the same values must be used with ERegion::HitTest and ERegion::Drag.

◆ Draw() [1/34]

void eVision::ERegion::Draw ( eVision::EDrawAdapter * drawAdapter) const

Draws the ERegion shape.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).

◆ Draw() [2/34]

void eVision::ERegion::Draw ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame ) const

Draws the ERegion shape.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
frameFrame on which to draw the shape.

◆ Draw() [3/34]

void eVision::ERegion::Draw ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
const eVision::ERGBColor & color ) const

Draws the ERegion shape.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
frameFrame on which to draw the shape.
colorThe color in which to draw the ERegion.

◆ Draw() [4/34]

void eVision::ERegion::Draw ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
const eVision::ERGBColor & color,
float opacity ) const

Draws the ERegion shape.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
frameFrame on which to draw the shape.
colorThe color in which to draw the ERegion.
opacityOpacity of the drawn area (range: 0.0 to 1.0).

◆ Draw() [5/34]

void eVision::ERegion::Draw ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
const eVision::ERGBColor & color,
float opacity,
float zoomX ) const

Draws the ERegion shape.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
frameFrame on which to draw the shape.
colorThe color in which to draw the ERegion.
opacityOpacity of the drawn area (range: 0.0 to 1.0).
zoomXHorizontal zooming factor. By default, true scale is used.

◆ Draw() [6/34]

void eVision::ERegion::Draw ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
const eVision::ERGBColor & color,
float opacity,
float zoomX,
float zoomY ) const

Draws the ERegion shape.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
frameFrame on which to draw the shape.
colorThe color in which to draw the ERegion.
opacityOpacity of the drawn area (range: 0.0 to 1.0).
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ Draw() [7/34]

void eVision::ERegion::Draw ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
const eVision::ERGBColor & color,
float opacity,
float zoomX,
float zoomY,
float panX ) const

Draws the ERegion shape.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
frameFrame on which to draw the shape.
colorThe color in which to draw the ERegion.
opacityOpacity of the drawn area (range: 0.0 to 1.0).
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ Draw() [8/34]

void eVision::ERegion::Draw ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
const eVision::ERGBColor & color,
float opacity,
float zoomX,
float zoomY,
float panX,
float panY ) const

Draws the ERegion shape.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
frameFrame on which to draw the shape.
colorThe color in which to draw the ERegion.
opacityOpacity of the drawn area (range: 0.0 to 1.0).
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ Draw() [9/34]

void eVision::ERegion::Draw ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
float zoomX ) const

Draws the ERegion shape.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
frameFrame on which to draw the shape.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ Draw() [10/34]

void eVision::ERegion::Draw ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
float zoomX,
float zoomY ) const

Draws the ERegion shape.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
frameFrame on which to draw the shape.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ Draw() [11/34]

void eVision::ERegion::Draw ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
float zoomX,
float zoomY,
float panX ) const

Draws the ERegion shape.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
frameFrame on which to draw the shape.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ Draw() [12/34]

void eVision::ERegion::Draw ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
float zoomX,
float zoomY,
float panX,
float panY ) const

Draws the ERegion shape.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
frameFrame on which to draw the shape.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ Draw() [13/34]

void eVision::ERegion::Draw ( eVision::EDrawAdapter * drawAdapter,
const eVision::ERGBColor & color ) const

Draws the ERegion shape.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
colorThe color in which to draw the ERegion.

◆ Draw() [14/34]

void eVision::ERegion::Draw ( eVision::EDrawAdapter * drawAdapter,
const eVision::ERGBColor & color,
float opacity ) const

Draws the ERegion shape.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
colorThe color in which to draw the ERegion.
opacityOpacity of the drawn area (range: 0.0 to 1.0).

◆ Draw() [15/34]

void eVision::ERegion::Draw ( eVision::EDrawAdapter * drawAdapter,
const eVision::ERGBColor & color,
float opacity,
float zoomX ) const

Draws the ERegion shape.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
colorThe color in which to draw the ERegion.
opacityOpacity of the drawn area (range: 0.0 to 1.0).
zoomXHorizontal zooming factor. By default, true scale is used.

◆ Draw() [16/34]

void eVision::ERegion::Draw ( eVision::EDrawAdapter * drawAdapter,
const eVision::ERGBColor & color,
float opacity,
float zoomX,
float zoomY ) const

Draws the ERegion shape.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
colorThe color in which to draw the ERegion.
opacityOpacity of the drawn area (range: 0.0 to 1.0).
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ Draw() [17/34]

void eVision::ERegion::Draw ( eVision::EDrawAdapter * drawAdapter,
const eVision::ERGBColor & color,
float opacity,
float zoomX,
float zoomY,
float panX ) const

Draws the ERegion shape.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
colorThe color in which to draw the ERegion.
opacityOpacity of the drawn area (range: 0.0 to 1.0).
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ Draw() [18/34]

void eVision::ERegion::Draw ( eVision::EDrawAdapter * drawAdapter,
const eVision::ERGBColor & color,
float opacity,
float zoomX,
float zoomY,
float panX,
float panY ) const

Draws the ERegion shape.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
colorThe color in which to draw the ERegion.
opacityOpacity of the drawn area (range: 0.0 to 1.0).
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ Draw() [19/34]

void eVision::ERegion::Draw ( eVision::EDrawAdapter * drawAdapter,
float zoomX ) const

Draws the ERegion shape.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
zoomXHorizontal zooming factor. By default, true scale is used.

◆ Draw() [20/34]

void eVision::ERegion::Draw ( eVision::EDrawAdapter * drawAdapter,
float zoomX,
float zoomY ) const

Draws the ERegion shape.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ Draw() [21/34]

void eVision::ERegion::Draw ( eVision::EDrawAdapter * drawAdapter,
float zoomX,
float zoomY,
float panX ) const

Draws the ERegion shape.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ Draw() [22/34]

void eVision::ERegion::Draw ( eVision::EDrawAdapter * drawAdapter,
float zoomX,
float zoomY,
float panX,
float panY ) const

Draws the ERegion shape.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ Draw() [23/34]

void eVision::ERegion::Draw ( HDC graphicContext) const

Draws the ERegion shape.

Parameters
graphicContextHandle of the device context on which to draw.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [24/34]

void eVision::ERegion::Draw ( HDC graphicContext,
const eVision::ERGBColor & color ) const

Draws the ERegion shape.

Parameters
graphicContextHandle of the device context on which to draw.
colorThe color in which to draw the ERegion.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [25/34]

void eVision::ERegion::Draw ( HDC graphicContext,
const eVision::ERGBColor & color,
float opacity ) const

Draws the ERegion shape.

Parameters
graphicContextHandle of the device context on which to draw.
colorThe color in which to draw the ERegion.
opacityOpacity of the drawn area (range: 0.0 to 1.0).
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [26/34]

void eVision::ERegion::Draw ( HDC graphicContext,
const eVision::ERGBColor & color,
float opacity,
float zoomX ) const

Draws the ERegion shape.

Parameters
graphicContextHandle of the device context on which to draw.
colorThe color in which to draw the ERegion.
opacityOpacity of the drawn area (range: 0.0 to 1.0).
zoomXHorizontal zooming factor. By default, true scale is used.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [27/34]

void eVision::ERegion::Draw ( HDC graphicContext,
const eVision::ERGBColor & color,
float opacity,
float zoomX,
float zoomY ) const

Draws the ERegion shape.

Parameters
graphicContextHandle of the device context on which to draw.
colorThe color in which to draw the ERegion.
opacityOpacity of the drawn area (range: 0.0 to 1.0).
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [28/34]

void eVision::ERegion::Draw ( HDC graphicContext,
const eVision::ERGBColor & color,
float opacity,
float zoomX,
float zoomY,
float panX ) const

Draws the ERegion shape.

Parameters
graphicContextHandle of the device context on which to draw.
colorThe color in which to draw the ERegion.
opacityOpacity of the drawn area (range: 0.0 to 1.0).
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [29/34]

void eVision::ERegion::Draw ( HDC graphicContext,
const eVision::ERGBColor & color,
float opacity,
float zoomX,
float zoomY,
float panX,
float panY ) const

Draws the ERegion shape.

Parameters
graphicContextHandle of the device context on which to draw.
colorThe color in which to draw the ERegion.
opacityOpacity of the drawn area (range: 0.0 to 1.0).
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [30/34]

void eVision::ERegion::Draw ( HDC graphicContext,
float opacity ) const

Draws the ERegion shape.

Parameters
graphicContextHandle of the device context on which to draw.
opacityOpacity of the drawn area (range: 0.0 to 1.0).
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [31/34]

void eVision::ERegion::Draw ( HDC graphicContext,
float opacity,
float zoomX ) const

Draws the ERegion shape.

Parameters
graphicContextHandle of the device context on which to draw.
opacityOpacity of the drawn area (range: 0.0 to 1.0).
zoomXHorizontal zooming factor. By default, true scale is used.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [32/34]

void eVision::ERegion::Draw ( HDC graphicContext,
float opacity,
float zoomX,
float zoomY ) const

Draws the ERegion shape.

Parameters
graphicContextHandle of the device context on which to draw.
opacityOpacity of the drawn area (range: 0.0 to 1.0).
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [33/34]

void eVision::ERegion::Draw ( HDC graphicContext,
float opacity,
float zoomX,
float zoomY,
float panX ) const

Draws the ERegion shape.

Parameters
graphicContextHandle of the device context on which to draw.
opacityOpacity of the drawn area (range: 0.0 to 1.0).
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ Draw() [34/34]

void eVision::ERegion::Draw ( HDC graphicContext,
float opacity,
float zoomX,
float zoomY,
float panX,
float panY ) const

Draws the ERegion shape.

Parameters
graphicContextHandle of the device context on which to draw.
opacityOpacity of the drawn area (range: 0.0 to 1.0).
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawContour() [1/30]

void eVision::ERegion::DrawContour ( eVision::EDrawAdapter * drawAdapter) const

Draws the ERegion contour.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).

◆ DrawContour() [2/30]

void eVision::ERegion::DrawContour ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame ) const

Draws the ERegion contour.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
frameFrame on which to draw.

◆ DrawContour() [3/30]

void eVision::ERegion::DrawContour ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
const eVision::ERGBColor & color ) const

Draws the ERegion contour.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
frameFrame on which to draw.
colorThe color in which to draw the ERegion.

◆ DrawContour() [4/30]

void eVision::ERegion::DrawContour ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
const eVision::ERGBColor & color,
float zoomX ) const

Draws the ERegion contour.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
frameFrame on which to draw.
colorThe color in which to draw the ERegion.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ DrawContour() [5/30]

void eVision::ERegion::DrawContour ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
const eVision::ERGBColor & color,
float zoomX,
float zoomY ) const

Draws the ERegion contour.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
frameFrame on which to draw.
colorThe color in which to draw the ERegion.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ DrawContour() [6/30]

void eVision::ERegion::DrawContour ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
const eVision::ERGBColor & color,
float zoomX,
float zoomY,
float panX ) const

Draws the ERegion contour.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
frameFrame on which to draw.
colorThe color in which to draw the ERegion.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ DrawContour() [7/30]

void eVision::ERegion::DrawContour ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
const eVision::ERGBColor & color,
float zoomX,
float zoomY,
float panX,
float panY ) const

Draws the ERegion contour.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
frameFrame on which to draw.
colorThe color in which to draw the ERegion.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ DrawContour() [8/30]

void eVision::ERegion::DrawContour ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
float zoomX ) const

Draws the ERegion contour.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
frameFrame on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ DrawContour() [9/30]

void eVision::ERegion::DrawContour ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
float zoomX,
float zoomY ) const

Draws the ERegion contour.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
frameFrame on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ DrawContour() [10/30]

void eVision::ERegion::DrawContour ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
float zoomX,
float zoomY,
float panX ) const

Draws the ERegion contour.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
frameFrame on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ DrawContour() [11/30]

void eVision::ERegion::DrawContour ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
float zoomX,
float zoomY,
float panX,
float panY ) const

Draws the ERegion contour.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
frameFrame on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ DrawContour() [12/30]

void eVision::ERegion::DrawContour ( eVision::EDrawAdapter * drawAdapter,
const eVision::ERGBColor & color ) const

Draws the ERegion contour.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
colorThe color in which to draw the ERegion.

◆ DrawContour() [13/30]

void eVision::ERegion::DrawContour ( eVision::EDrawAdapter * drawAdapter,
const eVision::ERGBColor & color,
float zoomX ) const

Draws the ERegion contour.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
colorThe color in which to draw the ERegion.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ DrawContour() [14/30]

void eVision::ERegion::DrawContour ( eVision::EDrawAdapter * drawAdapter,
const eVision::ERGBColor & color,
float zoomX,
float zoomY ) const

Draws the ERegion contour.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
colorThe color in which to draw the ERegion.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ DrawContour() [15/30]

void eVision::ERegion::DrawContour ( eVision::EDrawAdapter * drawAdapter,
const eVision::ERGBColor & color,
float zoomX,
float zoomY,
float panX ) const

Draws the ERegion contour.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
colorThe color in which to draw the ERegion.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ DrawContour() [16/30]

void eVision::ERegion::DrawContour ( eVision::EDrawAdapter * drawAdapter,
const eVision::ERGBColor & color,
float zoomX,
float zoomY,
float panX,
float panY ) const

Draws the ERegion contour.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
colorThe color in which to draw the ERegion.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ DrawContour() [17/30]

void eVision::ERegion::DrawContour ( eVision::EDrawAdapter * drawAdapter,
float zoomX ) const

Draws the ERegion contour.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
zoomXHorizontal zooming factor. By default, true scale is used.

◆ DrawContour() [18/30]

void eVision::ERegion::DrawContour ( eVision::EDrawAdapter * drawAdapter,
float zoomX,
float zoomY ) const

Draws the ERegion contour.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ DrawContour() [19/30]

void eVision::ERegion::DrawContour ( eVision::EDrawAdapter * drawAdapter,
float zoomX,
float zoomY,
float panX ) const

Draws the ERegion contour.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ DrawContour() [20/30]

void eVision::ERegion::DrawContour ( eVision::EDrawAdapter * drawAdapter,
float zoomX,
float zoomY,
float panX,
float panY ) const

Draws the ERegion contour.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ DrawContour() [21/30]

void eVision::ERegion::DrawContour ( HDC graphicContext) const

Draws the ERegion contour.

Parameters
graphicContextHandle of the device context on which to draw.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawContour() [22/30]

void eVision::ERegion::DrawContour ( HDC graphicContext,
const eVision::ERGBColor & color ) const

Draws the ERegion contour.

Parameters
graphicContextHandle of the device context on which to draw.
colorThe color in which to draw the ERegion.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawContour() [23/30]

void eVision::ERegion::DrawContour ( HDC graphicContext,
const eVision::ERGBColor & color,
float zoomX ) const

Draws the ERegion contour.

Parameters
graphicContextHandle of the device context on which to draw.
colorThe color in which to draw the ERegion.
zoomXHorizontal zooming factor. By default, true scale is used.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawContour() [24/30]

void eVision::ERegion::DrawContour ( HDC graphicContext,
const eVision::ERGBColor & color,
float zoomX,
float zoomY ) const

Draws the ERegion contour.

Parameters
graphicContextHandle of the device context on which to draw.
colorThe color in which to draw the ERegion.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawContour() [25/30]

void eVision::ERegion::DrawContour ( HDC graphicContext,
const eVision::ERGBColor & color,
float zoomX,
float zoomY,
float panX ) const

Draws the ERegion contour.

Parameters
graphicContextHandle of the device context on which to draw.
colorThe color in which to draw the ERegion.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawContour() [26/30]

void eVision::ERegion::DrawContour ( HDC graphicContext,
const eVision::ERGBColor & color,
float zoomX,
float zoomY,
float panX,
float panY ) const

Draws the ERegion contour.

Parameters
graphicContextHandle of the device context on which to draw.
colorThe color in which to draw the ERegion.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawContour() [27/30]

void eVision::ERegion::DrawContour ( HDC graphicContext,
float zoomX ) const

Draws the ERegion contour.

Parameters
graphicContextHandle of the device context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawContour() [28/30]

void eVision::ERegion::DrawContour ( HDC graphicContext,
float zoomX,
float zoomY ) const

Draws the ERegion contour.

Parameters
graphicContextHandle of the device context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawContour() [29/30]

void eVision::ERegion::DrawContour ( HDC graphicContext,
float zoomX,
float zoomY,
float panX ) const

Draws the ERegion contour.

Parameters
graphicContextHandle of the device context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawContour() [30/30]

void eVision::ERegion::DrawContour ( HDC graphicContext,
float zoomX,
float zoomY,
float panX,
float panY ) const

Draws the ERegion contour.

Parameters
graphicContextHandle of the device context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawContourWithCurrentPen()

void eVision::ERegion::DrawContourWithCurrentPen ( HDC hdc,
float zoomX,
float zoomY,
float panX,
float panY ) const

Draws the ERegion contour with the current pen.

Parameters
hdcHandle of the device context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.
Deprecated

Use the overload of ERegion::Draw taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawHandles() [1/30]

void eVision::ERegion::DrawHandles ( eVision::EDrawAdapter * drawAdapter) const

Draws the region handles.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).

◆ DrawHandles() [2/30]

void eVision::ERegion::DrawHandles ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame ) const

Draws the region handles.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
frameFrame on which to draw.

◆ DrawHandles() [3/30]

void eVision::ERegion::DrawHandles ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
const eVision::ERGBColor & color ) const

Draws the region handles.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
frameFrame on which to draw.
colorThe color in which to draw the region.

◆ DrawHandles() [4/30]

void eVision::ERegion::DrawHandles ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
const eVision::ERGBColor & color,
float zoomX ) const

Draws the region handles.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
frameFrame on which to draw.
colorThe color in which to draw the region.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ DrawHandles() [5/30]

void eVision::ERegion::DrawHandles ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
const eVision::ERGBColor & color,
float zoomX,
float zoomY ) const

Draws the region handles.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
frameFrame on which to draw.
colorThe color in which to draw the region.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ DrawHandles() [6/30]

void eVision::ERegion::DrawHandles ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
const eVision::ERGBColor & color,
float zoomX,
float zoomY,
float panX ) const

Draws the region handles.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
frameFrame on which to draw.
colorThe color in which to draw the region.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ DrawHandles() [7/30]

void eVision::ERegion::DrawHandles ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
const eVision::ERGBColor & color,
float zoomX,
float zoomY,
float panX,
float panY ) const

Draws the region handles.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
frameFrame on which to draw.
colorThe color in which to draw the region.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ DrawHandles() [8/30]

void eVision::ERegion::DrawHandles ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
float zoomX ) const

Draws the region handles.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
frameFrame on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ DrawHandles() [9/30]

void eVision::ERegion::DrawHandles ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
float zoomX,
float zoomY ) const

Draws the region handles.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
frameFrame on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ DrawHandles() [10/30]

void eVision::ERegion::DrawHandles ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
float zoomX,
float zoomY,
float panX ) const

Draws the region handles.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
frameFrame on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ DrawHandles() [11/30]

void eVision::ERegion::DrawHandles ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
float zoomX,
float zoomY,
float panX,
float panY ) const

Draws the region handles.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
frameFrame on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ DrawHandles() [12/30]

void eVision::ERegion::DrawHandles ( eVision::EDrawAdapter * drawAdapter,
const eVision::ERGBColor & color ) const

Draws the region handles.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
colorThe color in which to draw the region.

◆ DrawHandles() [13/30]

void eVision::ERegion::DrawHandles ( eVision::EDrawAdapter * drawAdapter,
const eVision::ERGBColor & color,
float zoomX ) const

Draws the region handles.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
colorThe color in which to draw the region.
zoomXHorizontal zooming factor. By default, true scale is used.

◆ DrawHandles() [14/30]

void eVision::ERegion::DrawHandles ( eVision::EDrawAdapter * drawAdapter,
const eVision::ERGBColor & color,
float zoomX,
float zoomY ) const

Draws the region handles.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
colorThe color in which to draw the region.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ DrawHandles() [15/30]

void eVision::ERegion::DrawHandles ( eVision::EDrawAdapter * drawAdapter,
const eVision::ERGBColor & color,
float zoomX,
float zoomY,
float panX ) const

Draws the region handles.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
colorThe color in which to draw the region.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ DrawHandles() [16/30]

void eVision::ERegion::DrawHandles ( eVision::EDrawAdapter * drawAdapter,
const eVision::ERGBColor & color,
float zoomX,
float zoomY,
float panX,
float panY ) const

Draws the region handles.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
colorThe color in which to draw the region.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ DrawHandles() [17/30]

void eVision::ERegion::DrawHandles ( eVision::EDrawAdapter * drawAdapter,
float zoomX ) const

Draws the region handles.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
zoomXHorizontal zooming factor. By default, true scale is used.

◆ DrawHandles() [18/30]

void eVision::ERegion::DrawHandles ( eVision::EDrawAdapter * drawAdapter,
float zoomX,
float zoomY ) const

Draws the region handles.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.

◆ DrawHandles() [19/30]

void eVision::ERegion::DrawHandles ( eVision::EDrawAdapter * drawAdapter,
float zoomX,
float zoomY,
float panX ) const

Draws the region handles.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.

◆ DrawHandles() [20/30]

void eVision::ERegion::DrawHandles ( eVision::EDrawAdapter * drawAdapter,
float zoomX,
float zoomY,
float panX,
float panY ) const

Draws the region handles.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.

◆ DrawHandles() [21/30]

void eVision::ERegion::DrawHandles ( HDC hdc) const

Draws the region handles.

Parameters
hdcHandle of the device context on which to draw.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawHandles() [22/30]

void eVision::ERegion::DrawHandles ( HDC hdc,
const eVision::ERGBColor & color ) const

Draws the region handles.

Parameters
hdcHandle of the device context on which to draw.
colorThe color in which to draw the region.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawHandles() [23/30]

void eVision::ERegion::DrawHandles ( HDC hdc,
const eVision::ERGBColor & color,
float zoomX ) const

Draws the region handles.

Parameters
hdcHandle of the device context on which to draw.
colorThe color in which to draw the region.
zoomXHorizontal zooming factor. By default, true scale is used.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawHandles() [24/30]

void eVision::ERegion::DrawHandles ( HDC hdc,
const eVision::ERGBColor & color,
float zoomX,
float zoomY ) const

Draws the region handles.

Parameters
hdcHandle of the device context on which to draw.
colorThe color in which to draw the region.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawHandles() [25/30]

void eVision::ERegion::DrawHandles ( HDC hdc,
const eVision::ERGBColor & color,
float zoomX,
float zoomY,
float panX ) const

Draws the region handles.

Parameters
hdcHandle of the device context on which to draw.
colorThe color in which to draw the region.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawHandles() [26/30]

void eVision::ERegion::DrawHandles ( HDC hdc,
const eVision::ERGBColor & color,
float zoomX,
float zoomY,
float panX,
float panY ) const

Draws the region handles.

Parameters
hdcHandle of the device context on which to draw.
colorThe color in which to draw the region.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawHandles() [27/30]

void eVision::ERegion::DrawHandles ( HDC hdc,
float zoomX ) const

Draws the region handles.

Parameters
hdcHandle of the device context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawHandles() [28/30]

void eVision::ERegion::DrawHandles ( HDC hdc,
float zoomX,
float zoomY ) const

Draws the region handles.

Parameters
hdcHandle of the device context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawHandles() [29/30]

void eVision::ERegion::DrawHandles ( HDC hdc,
float zoomX,
float zoomY,
float panX ) const

Draws the region handles.

Parameters
hdcHandle of the device context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawHandles() [30/30]

void eVision::ERegion::DrawHandles ( HDC hdc,
float zoomX,
float zoomY,
float panX,
float panY ) const

Draws the region handles.

Parameters
hdcHandle of the device context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.
Deprecated

Use the overload taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawHandlesWithCurrentPen() [1/5]

void eVision::ERegion::DrawHandlesWithCurrentPen ( HDC hdc) const

Draws the region handles with the current pen.

Parameters
hdcHandle of the device context on which to draw.
Deprecated

Use the overload of ERegion::Draw taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawHandlesWithCurrentPen() [2/5]

void eVision::ERegion::DrawHandlesWithCurrentPen ( HDC hdc,
float zoomX ) const

Draws the region handles with the current pen.

Parameters
hdcHandle of the device context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
Deprecated

Use the overload of ERegion::Draw taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawHandlesWithCurrentPen() [3/5]

void eVision::ERegion::DrawHandlesWithCurrentPen ( HDC hdc,
float zoomX,
float zoomY ) const

Draws the region handles with the current pen.

Parameters
hdcHandle of the device context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
Deprecated

Use the overload of ERegion::Draw taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawHandlesWithCurrentPen() [4/5]

void eVision::ERegion::DrawHandlesWithCurrentPen ( HDC hdc,
float zoomX,
float zoomY,
float panX ) const

Draws the region handles with the current pen.

Parameters
hdcHandle of the device context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
Deprecated

Use the overload of ERegion::Draw taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawHandlesWithCurrentPen() [5/5]

void eVision::ERegion::DrawHandlesWithCurrentPen ( HDC hdc,
float zoomX,
float zoomY,
float panX,
float panY ) const

Draws the region handles with the current pen.

Parameters
hdcHandle of the device context on which to draw.
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.
Deprecated

Use the overload of ERegion::Draw taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawWithCurrentPen() [1/6]

void eVision::ERegion::DrawWithCurrentPen ( HDC graphicContext) const

Draws the ERegion area.

Parameters
graphicContextHandle of the device context on which to draw.
Deprecated

Use the overload of ERegion::Draw taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawWithCurrentPen() [2/6]

void eVision::ERegion::DrawWithCurrentPen ( HDC graphicContext,
float opacity ) const

Draws the ERegion area.

Parameters
graphicContextHandle of the device context on which to draw.
opacityOpacity of the drawn area (range: 0.0 to 1.0).
Deprecated

Use the overload of ERegion::Draw taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawWithCurrentPen() [3/6]

void eVision::ERegion::DrawWithCurrentPen ( HDC graphicContext,
float opacity,
float zoomX ) const

Draws the ERegion area.

Parameters
graphicContextHandle of the device context on which to draw.
opacityOpacity of the drawn area (range: 0.0 to 1.0).
zoomXHorizontal zooming factor. By default, true scale is used.
Deprecated

Use the overload of ERegion::Draw taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawWithCurrentPen() [4/6]

void eVision::ERegion::DrawWithCurrentPen ( HDC graphicContext,
float opacity,
float zoomX,
float zoomY ) const

Draws the ERegion area.

Parameters
graphicContextHandle of the device context on which to draw.
opacityOpacity of the drawn area (range: 0.0 to 1.0).
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
Deprecated

Use the overload of ERegion::Draw taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawWithCurrentPen() [5/6]

void eVision::ERegion::DrawWithCurrentPen ( HDC graphicContext,
float opacity,
float zoomX,
float zoomY,
float panX ) const

Draws the ERegion area.

Parameters
graphicContextHandle of the device context on which to draw.
opacityOpacity of the drawn area (range: 0.0 to 1.0).
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
Deprecated

Use the overload of ERegion::Draw taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ DrawWithCurrentPen() [6/6]

void eVision::ERegion::DrawWithCurrentPen ( HDC graphicContext,
float opacity,
float zoomX,
float zoomY,
float panX,
float panY ) const

Draws the ERegion area.

Parameters
graphicContextHandle of the device context on which to draw.
opacityOpacity of the drawn area (range: 0.0 to 1.0).
zoomXHorizontal zooming factor. By default, true scale is used.
zoomYVertical zooming factor. If set to 0 (default), the horizontal zooming factor is used instead, so as to provide isotropic zooming.
panXHorizontal panning value expressed in pixels. By default, no panning occurs.
panYVertical panning value expressed in pixels. By default, no panning occurs.
Deprecated

Use the overload of ERegion::Draw taking an EDrawAdapter by using an instance of EWindowsDrawAdapter.

Deprecated in version 23.12. Scheduled to be removed in version 27.6.

◆ FillHoles()

eVision::ERegion eVision::ERegion::FillHoles ( ) const

Returns a new ERegion::ERegion whose holes are filled.

If the current region is empty, returned an empty ERegion::ERegion.

◆ GetArea()

int32_t eVision::ERegion::GetArea ( ) const
virtual

Area of the ERegion.

The number of pixels of the ERegion.

◆ GetAvailableEditionModes()

eVision::EEditionMode eVision::ERegion::GetAvailableEditionModes ( ) const
virtual

Returns all possible edition modes of the region.

Reimplemented in eVision::ECircleRegion, eVision::EEllipseRegion, eVision::EPolygonRegion, and eVision::ERectangleRegion.

◆ GetBoundingBoxHeight()

int32_t eVision::ERegion::GetBoundingBoxHeight ( ) const
virtual

Bounding box height.

The height is the height of the upright rectangle encompassing the ERun.

◆ GetBoundingBoxOrgX()

int32_t eVision::ERegion::GetBoundingBoxOrgX ( ) const
virtual

Bounding box origin abscissa.

The origin is the top left corner of the upright rectangle encompassing the ERun.

◆ GetBoundingBoxOrgY()

int32_t eVision::ERegion::GetBoundingBoxOrgY ( ) const
virtual

Bounding box origin ordinate.

The origin is the top left corner of the upright rectangle encompassing the ERun.

◆ GetBoundingBoxWidth()

int32_t eVision::ERegion::GetBoundingBoxWidth ( ) const
virtual

Bounding box width.

The width is the width of the upright rectangle encompassing the ERun.

◆ GetEditionMode()

eVision::EEditionMode eVision::ERegion::GetEditionMode ( ) const

Graphical edition mode.

◆ GetRuns()

std::vector< eVision::ERun > eVision::ERegion::GetRuns ( ) const

Runs of the region.

◆ Grow()

eVision::ERegion eVision::ERegion::Grow ( int radius) const

Creates a new ERegion by growing the ERegion runs with a dilation using a circular structuring element.

Parameters
radiusRadius of the circular structuring element. A negative value will call ERegion::Shrink with the opposite value instead.

◆ HitTest() [1/10]

eVision::EEditionMode eVision::ERegion::HitTest ( int32_t x,
int32_t y ) const

Detects if the cursor is placed over one of the dragging handles.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.

Returns a handle identifier, as defined by EEditionMode.

If zooming and/or panning were used when drawing the region, the same values must be used with ERegion::HitTest and ERegion::Drag.

◆ HitTest() [2/10]

eVision::EEditionMode eVision::ERegion::HitTest ( int32_t x,
int32_t y,
const eVision::EFrame & frame ) const
virtual

Detects if the cursor is placed over one of the dragging handles.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame to transform coordinates with.

Returns a handle identifier, as defined by EEditionMode.

If zooming and/or panning were used when drawing the region, the same values must be used with ERegion::HitTest and ERegion::Drag.

Reimplemented in eVision::ECircleRegion, eVision::EEllipseRegion, eVision::EPolygonRegion, and eVision::ERectangleRegion.

◆ HitTest() [3/10]

eVision::EEditionMode eVision::ERegion::HitTest ( int32_t x,
int32_t y,
const eVision::EFrame & frame,
float zoomX ) const
virtual

Detects if the cursor is placed over one of the dragging handles.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame to transform coordinates with.
zoomXHorizontal zoom factor. By default, true scale is used.

Returns a handle identifier, as defined by EEditionMode.

If zooming and/or panning were used when drawing the region, the same values must be used with ERegion::HitTest and ERegion::Drag.

Reimplemented in eVision::ECircleRegion, eVision::EEllipseRegion, eVision::EPolygonRegion, and eVision::ERectangleRegion.

◆ HitTest() [4/10]

eVision::EEditionMode eVision::ERegion::HitTest ( int32_t x,
int32_t y,
const eVision::EFrame & frame,
float zoomX,
float zoomY ) const
virtual

Detects if the cursor is placed over one of the dragging handles.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame to transform coordinates with.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.

Returns a handle identifier, as defined by EEditionMode.

If zooming and/or panning were used when drawing the region, the same values must be used with ERegion::HitTest and ERegion::Drag.

Reimplemented in eVision::ECircleRegion, eVision::EEllipseRegion, eVision::EPolygonRegion, and eVision::ERectangleRegion.

◆ HitTest() [5/10]

eVision::EEditionMode eVision::ERegion::HitTest ( int32_t x,
int32_t y,
const eVision::EFrame & frame,
float zoomX,
float zoomY,
float panX ) const
virtual

Detects if the cursor is placed over one of the dragging handles.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame to transform coordinates with.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.
panXHorizontal pan offset. By default, no pan is added.

Returns a handle identifier, as defined by EEditionMode.

If zooming and/or panning were used when drawing the region, the same values must be used with ERegion::HitTest and ERegion::Drag.

Reimplemented in eVision::ECircleRegion, eVision::EEllipseRegion, eVision::EPolygonRegion, and eVision::ERectangleRegion.

◆ HitTest() [6/10]

eVision::EEditionMode eVision::ERegion::HitTest ( int32_t x,
int32_t y,
const eVision::EFrame & frame,
float zoomX,
float zoomY,
float panX,
float panY ) const
virtual

Detects if the cursor is placed over one of the dragging handles.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame to transform coordinates with.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.
panXHorizontal pan offset. By default, no pan is added.
panYVertical pan offset. By default, no pan is added.

Returns a handle identifier, as defined by EEditionMode.

If zooming and/or panning were used when drawing the region, the same values must be used with ERegion::HitTest and ERegion::Drag.

Reimplemented in eVision::ECircleRegion, eVision::EEllipseRegion, eVision::EPolygonRegion, and eVision::ERectangleRegion.

◆ HitTest() [7/10]

eVision::EEditionMode eVision::ERegion::HitTest ( int32_t x,
int32_t y,
float zoomX ) const

Detects if the cursor is placed over one of the dragging handles.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
zoomXHorizontal zoom factor. By default, true scale is used.

Returns a handle identifier, as defined by EEditionMode.

If zooming and/or panning were used when drawing the region, the same values must be used with ERegion::HitTest and ERegion::Drag.

◆ HitTest() [8/10]

eVision::EEditionMode eVision::ERegion::HitTest ( int32_t x,
int32_t y,
float zoomX,
float zoomY ) const

Detects if the cursor is placed over one of the dragging handles.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.

Returns a handle identifier, as defined by EEditionMode.

If zooming and/or panning were used when drawing the region, the same values must be used with ERegion::HitTest and ERegion::Drag.

◆ HitTest() [9/10]

eVision::EEditionMode eVision::ERegion::HitTest ( int32_t x,
int32_t y,
float zoomX,
float zoomY,
float panX ) const

Detects if the cursor is placed over one of the dragging handles.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.
panXHorizontal pan offset. By default, no pan is added.

Returns a handle identifier, as defined by EEditionMode.

If zooming and/or panning were used when drawing the region, the same values must be used with ERegion::HitTest and ERegion::Drag.

◆ HitTest() [10/10]

eVision::EEditionMode eVision::ERegion::HitTest ( int32_t x,
int32_t y,
float zoomX,
float zoomY,
float panX,
float panY ) const

Detects if the cursor is placed over one of the dragging handles.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.
panXHorizontal pan offset. By default, no pan is added.
panYVertical pan offset. By default, no pan is added.

Returns a handle identifier, as defined by EEditionMode.

If zooming and/or panning were used when drawing the region, the same values must be used with ERegion::HitTest and ERegion::Drag.

◆ Intersection()

eVision::ERegion eVision::ERegion::Intersection ( const eVision::ERegion & region1,
const eVision::ERegion & region2 )
static

Creates a new ERegion by intersecting two ERegion.

Parameters
region1First region.
region2Second region.

◆ IsPointInRegion()

bool eVision::ERegion::IsPointInRegion ( const eVision::EPoint & point) const
virtual

Checks if a point is inside the rasterized region.

Parameters
pointThe point to check.

The coordinates of the point are floored to integer values and we check if they would be present in the rasterized region. This can have unexpected consequences, like (10, 10) not being contained in a ERectangleRegion of width/height 10 centered on (5.1, 5.1) but it guarantees the equivalence with successor classes.

Reimplemented in eVision::ERectangleRegion.

◆ Load() [1/2]

void eVision::ERegion::Load ( const std::string & path)
virtual

Loads the ERegion. The given ESerializer must have been created for reading.

Parameters
pathThe file path.

Reimplemented in eVision::ECircleRegion, eVision::EEllipseRegion, eVision::EPolygonRegion, and eVision::ERectangleRegion.

◆ Load() [2/2]

void eVision::ERegion::Load ( eVision::ESerializer * serializer)
virtual

Loads the ERegion. The given ESerializer must have been created for reading.

Parameters
serializerThe serializer.

Reimplemented in eVision::ECircleRegion, eVision::EEllipseRegion, eVision::EPolygonRegion, and eVision::ERectangleRegion.

◆ LocalToSensor()

eVision::ERegion eVision::ERegion::LocalToSensor ( const eVision::EFrame & frame) const

Converts the region from the local reference frame to the sensor reference frame.

Parameters
frameReference frame in which the region is defined.

◆ Make() [1/2]

std::unique_ptr< eVision::ERegion > eVision::ERegion::Make ( const std::string & file)
static

Makes a typed region based on the serialized file.

Parameters
filePath to the serialized file

◆ Make() [2/2]

std::unique_ptr< eVision::ERegion > eVision::ERegion::Make ( eVision::ESerializer * serializer)
static

Makes a typed region based on the serialized file.

Parameters
serializerSerializer open for reading

◆ operator!=()

bool eVision::ERegion::operator!= ( const eVision::ERegion & other) const

Checks if this ERegion instance is not strictly equal to another (order of the runs included).

Parameters
otherReference to the other ERegion instance

◆ operator=()

eVision::ERegion & eVision::ERegion::operator= ( const eVision::ERegion & other)

Assignment operator.

Parameters
otherReference to the ERegion used for the assignment.

◆ operator==()

bool eVision::ERegion::operator== ( const eVision::ERegion & other) const

Checks if this ERegion instance is strictly equal to another (order of the runs included).

Parameters
otherReference to the other ERegion instance

◆ Prepare() [1/10]

void eVision::ERegion::Prepare ( ) const

Computes the values necessary for the ERegion to be used during processing.

This method should be called once after the ERegion has been parameterized and before the ERegion is used. If necessary,it will be done automatically before any usage but it will increase the processing time.

◆ Prepare() [2/10]

void eVision::ERegion::Prepare ( const eVision::EROIBW16 & roi) const

Computes the values necessary for the ERegion to be used during processing.

Parameters
roiDestination or source EBaseROI.

This method should be called once after the ERegion has been parameterized and before the ERegion is used. If necessary,it will be done automatically before any usage but it will increase the processing time.

◆ Prepare() [3/10]

void eVision::ERegion::Prepare ( const eVision::EROIBW32 & roi) const

Computes the values necessary for the ERegion to be used during processing.

Parameters
roiDestination or source EBaseROI.

This method should be called once after the ERegion has been parameterized and before the ERegion is used. If necessary,it will be done automatically before any usage but it will increase the processing time.

◆ Prepare() [4/10]

void eVision::ERegion::Prepare ( const eVision::EROIBW32f & roi) const

Computes the values necessary for the ERegion to be used during processing.

Parameters
roiDestination or source EBaseROI.

This method should be called once after the ERegion has been parameterized and before the ERegion is used. If necessary,it will be done automatically before any usage but it will increase the processing time.

◆ Prepare() [5/10]

void eVision::ERegion::Prepare ( const eVision::EROIBW8 & roi) const

Computes the values necessary for the ERegion to be used during processing.

Parameters
roiDestination or source EBaseROI.

This method should be called once after the ERegion has been parameterized and before the ERegion is used. If necessary,it will be done automatically before any usage but it will increase the processing time.

◆ Prepare() [6/10]

void eVision::ERegion::Prepare ( const eVision::EROIC24 & roi) const

Computes the values necessary for the ERegion to be used during processing.

Parameters
roiDestination or source EBaseROI.

This method should be called once after the ERegion has been parameterized and before the ERegion is used. If necessary,it will be done automatically before any usage but it will increase the processing time.

◆ Prepare() [7/10]

void eVision::ERegion::Prepare ( const eVision::EROIC24A & roi) const

Computes the values necessary for the ERegion to be used during processing.

Parameters
roiDestination or source EBaseROI.

This method should be called once after the ERegion has been parameterized and before the ERegion is used. If necessary,it will be done automatically before any usage but it will increase the processing time.

◆ Prepare() [8/10]

void eVision::ERegion::Prepare ( const eVision::EROIC48 & roi) const

Computes the values necessary for the ERegion to be used during processing.

Parameters
roiDestination or source EBaseROI.

This method should be called once after the ERegion has been parameterized and before the ERegion is used. If necessary,it will be done automatically before any usage but it will increase the processing time.

◆ Prepare() [9/10]

void eVision::ERegion::Prepare ( int orgX,
int orgY,
int width,
int height ) const

Computes the values necessary for the ERegion to be used during processing.

Parameters
orgXX-Axis origin of the source or destination context.
orgYY-Axis origin of the source or destination context.
widthWidth of the source or destination context.
heightHeight of the source or destination context.

This method should be called once after the ERegion has been parameterized and before the ERegion is used. If necessary,it will be done automatically before any usage but it will increase the processing time.

◆ Prepare() [10/10]

void eVision::ERegion::Prepare ( int width,
int height ) const

Computes the values necessary for the ERegion to be used during processing.

Parameters
widthWidth of the source or destination context.
heightHeight of the source or destination context.

This method should be called once after the ERegion has been parameterized and before the ERegion is used. If necessary,it will be done automatically before any usage but it will increase the processing time.

◆ Rotate()

std::unique_ptr< eVision::ERegion > eVision::ERegion::Rotate ( float angle) const
virtual

Creates a new region by rotating the ERegion.

Parameters
angleRotation angle

Reimplemented in eVision::ECircleRegion, eVision::EEllipseRegion, eVision::EPolygonRegion, and eVision::ERectangleRegion.

◆ Save() [1/2]

void eVision::ERegion::Save ( const std::string & path)
virtual

Saves the ERegion. The given ESerializer must have been created for writing.

Parameters
pathThe file path.

Reimplemented in eVision::ECircleRegion, eVision::EEllipseRegion, eVision::EPolygonRegion, and eVision::ERectangleRegion.

◆ Save() [2/2]

void eVision::ERegion::Save ( eVision::ESerializer * serializer)
virtual

Saves the ERegion. The given ESerializer must have been created for writing.

Parameters
serializerThe ESerializer object that is written to.

Reimplemented in eVision::ECircleRegion, eVision::EEllipseRegion, eVision::EPolygonRegion, and eVision::ERectangleRegion.

◆ Scale() [1/2]

std::unique_ptr< eVision::ERegion > eVision::ERegion::Scale ( float scale) const
virtual

Creates a new region by scaling the ERegion.

Parameters
scaleIsotropic scale

Reimplemented in eVision::ECircleRegion, eVision::EEllipseRegion, eVision::EPolygonRegion, and eVision::ERectangleRegion.

◆ Scale() [2/2]

std::unique_ptr< eVision::ERegion > eVision::ERegion::Scale ( float scaleX,
float scaleY ) const
virtual

Creates a new region by scaling the ERegion.

Parameters
scaleXHorizontal scale
scaleYVertical scale

Reimplemented in eVision::ECircleRegion, eVision::EEllipseRegion, eVision::EPolygonRegion, and eVision::ERectangleRegion.

◆ SensorToLocal()

eVision::ERegion eVision::ERegion::SensorToLocal ( const eVision::EFrame & frame) const

Converts the region from the sensor reference frame to the local reference frame.

Parameters
frameReference frame in which the region is defined.

◆ SetEditionMode()

void eVision::ERegion::SetEditionMode ( eVision::EEditionMode mode)

Graphical edition mode.

Parameters
modeEEditionMode flags

◆ SetRuns()

void eVision::ERegion::SetRuns ( const std::vector< eVision::ERun > & runs)

Runs of the region.

◆ Shrink()

eVision::ERegion eVision::ERegion::Shrink ( int radius) const

Creates a new ERegion by shrinking the ERegion runs with an erosion using a circular structuring element.

Parameters
radiusRadius of the circular structuring element. A negative value will call ERegion::Grow with the opposite value instead.

◆ Subtraction()

eVision::ERegion eVision::ERegion::Subtraction ( const eVision::ERegion & region1,
const eVision::ERegion & region2 )
static

Creates a new ERegion by subtracting one ERegion from another.

Parameters
region1Original region.
region2Region to subtract.

◆ ToImage() [1/4]

void eVision::ERegion::ToImage ( eVision::EImageBW16 & img,
eVision::EBW16 background,
eVision::EBW16 foreground ) const

Exports the ERegion to a mask-type image.

Parameters
imgDestination image.
backgroundBackground color.
foregroundForeground color.

◆ ToImage() [2/4]

void eVision::ERegion::ToImage ( eVision::EImageBW8 & img,
eVision::EBW8 background,
eVision::EBW8 foreground ) const

Exports the ERegion to a mask-type image.

Parameters
imgDestination image.
backgroundBackground color.
foregroundForeground color.

◆ ToImage() [3/4]

void eVision::ERegion::ToImage ( eVision::EImageC24 & img,
eVision::EC24 background,
eVision::EC24 foreground ) const

Exports the ERegion to a mask-type image.

Parameters
imgDestination image.
backgroundBackground color.
foregroundForeground color.

◆ ToImage() [4/4]

void eVision::ERegion::ToImage ( eVision::EImageC24A & img,
eVision::EC24A background,
eVision::EC24A foreground ) const

Exports the ERegion to a mask-type image.

Parameters
imgDestination image.
backgroundBackground color.
foregroundForeground color.

◆ Transform()

std::unique_ptr< eVision::ERegion > eVision::ERegion::Transform ( float scaleX,
float scaleY,
float angle,
float dx,
float dy ) const
virtual

Creates a new ERegion by scaling, rotating and then translating the ERegion.

Parameters
scaleXx component of the scaling factor applied to the region.
scaleYy component of the scaling factor applied to the region.
anglerotation angle applied to the region.
dxx component of the translation vector.
dyy component of the translation vector.

Reimplemented in eVision::ECircleRegion, eVision::EEllipseRegion, eVision::EPolygonRegion, and eVision::ERectangleRegion.

◆ Translate()

std::unique_ptr< eVision::ERegion > eVision::ERegion::Translate ( float dx,
float dy ) const
virtual

Creates a new region by translating the ERegion.

Parameters
dxHorizontal translation in pixel value
dyVertical translation in pixel value

Reimplemented in eVision::ECircleRegion, eVision::EEllipseRegion, eVision::EPolygonRegion, and eVision::ERectangleRegion.

◆ TranslateRuns()

eVision::ERegion eVision::ERegion::TranslateRuns ( int dx,
int dy ) const

Creates a new ERegion by translating the region runs.

Parameters
dxx component of the translation vector.
dyy component of the translation vector.

◆ Union()

eVision::ERegion eVision::ERegion::Union ( const eVision::ERegion & region1,
const eVision::ERegion & region2 )
static

Creates a new ERegion by combining two ERegion.

Parameters
region1First region.
region2Second region.

Member Data Documentation

◆ wrappedClass_

CppWrapperInternal::WrappedClass eVision::ERegion::wrappedClass_