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

Manages a complete context for an ERegion shaped like a polygon. More...

#include <eVision/Easy/EPolygonRegion.h>

Inheritance diagram for eVision::EPolygonRegion:
Collaboration diagram for eVision::EPolygonRegion:

Public Member Functions

 EPolygonRegion ()
 Constructs an EPolygonRegion context.
 EPolygonRegion (const std::vector< eVision::EPoint > &points)
 Constructs an EPolygonRegion context.
 EPolygonRegion (const eVision::EPolygonRegion &other)
 Constructs an EPolygonRegion context.
virtual ~EPolygonRegion () throw ()
eVision::EPolygonRegion & operator= (const eVision::EPolygonRegion &other)
 Assignment operator.
bool operator== (const eVision::EPolygonRegion &other) const
 Checks if this EPolygonRegion instance is strictly equal to another.
bool operator!= (const eVision::EPolygonRegion &other) const
 Checks if this EPolygonRegion instance is not strictly equal to another.
std::vector< eVision::EPoint > GetPoints () const
 List of vertices of the region.
void SetPoints (const std::vector< eVision::EPoint > &points)
 List of vertices of the region.
int GetNumPoints () const
 Number of vertices of the region.
void AddPoint (const eVision::EPoint &point)
 Add a new vertex at the end of the region.
virtual std::unique_ptr< eVision::ERegion > Translate (float dx, float dy) const
 Creates a new region by translating the EPolygonRegion.
virtual std::unique_ptr< eVision::ERegion > Scale (float scale) const
 Creates a new region by scaling the EPolygonRegion. The center of the EPolygonRegion remains at the same place.
virtual std::unique_ptr< eVision::ERegion > Scale (float scaleX, float scaleY) const
 Creates a new region by scaling the EPolygonRegion. The center of the EPolygonRegion remains at the same place.
virtual std::unique_ptr< eVision::ERegion > Rotate (float angle) const
 Creates a new region by rotating the EPolygonRegion around its center.
virtual std::unique_ptr< eVision::ERegion > Transform (float scaleX, float scaleY, float angle, float dx, float dy) const
 Creates a new EPolygonRegion by scaling, rotating and then translating the EPolygonRegion.
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.
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.
virtual eVision::EEditionMode GetAvailableEditionModes () const
 Returns all possible edition modes of the region.
bool InsertPoint (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY)
 Insert a vertice between two existing ones.
bool InsertPoint (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX, float zoomY, float panX)
 Insert a vertice between two existing ones.
bool InsertPoint (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX, float zoomY)
 Insert a vertice between two existing ones.
bool InsertPoint (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX)
 Insert a vertice between two existing ones.
bool InsertPoint (int32_t x, int32_t y, const eVision::EFrame &frame)
 Insert a vertice between two existing ones.
bool InsertPoint (int32_t x, int32_t y, float zoomX, float zoomY, float panX, float panY)
 Insert a vertice between two existing ones.
bool InsertPoint (int32_t x, int32_t y, float zoomX, float zoomY, float panX)
 Insert a vertice between two existing ones.
bool InsertPoint (int32_t x, int32_t y, float zoomX, float zoomY)
 Insert a vertice between two existing ones.
bool InsertPoint (int32_t x, int32_t y, float zoomX)
 Insert a vertice between two existing ones.
bool InsertPoint (int32_t x, int32_t y)
 Insert a vertice between two existing ones.
bool RemovePoint (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY)
 Remove a vertex.
bool RemovePoint (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX, float zoomY, float panX)
 Remove a vertex.
bool RemovePoint (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX, float zoomY)
 Remove a vertex.
bool RemovePoint (int32_t x, int32_t y, const eVision::EFrame &frame, float zoomX)
 Remove a vertex.
bool RemovePoint (int32_t x, int32_t y, const eVision::EFrame &frame)
 Remove a vertex.
bool RemovePoint (int32_t x, int32_t y, float zoomX, float zoomY, float panX, float panY)
 Remove a vertex.
bool RemovePoint (int32_t x, int32_t y, float zoomX, float zoomY, float panX)
 Remove a vertex.
bool RemovePoint (int32_t x, int32_t y, float zoomX, float zoomY)
 Remove a vertex.
bool RemovePoint (int32_t x, int32_t y, float zoomX)
 Remove a vertex.
bool RemovePoint (int32_t x, int32_t y)
 Remove a vertex.
virtual void Load (const std::string &path)
 Loads the EPolygonRegion. The given ESerializer must have been created for reading.
virtual void Load (eVision::ESerializer *serializer)
 Loads the EPolygonRegion. The given ESerializer must have been created for reading.
virtual void Save (const std::string &path)
 Saves the EPolygonRegion. The given ESerializer must have been created for writing.
virtual void Save (eVision::ESerializer *serializer)
 Saves the EPolygonRegion. The given ESerializer must have been created for writing.
virtual std::unique_ptr< eVision::ERegion > Clone () const
 Clones the ERegion, the cloned Region will be an EPolygonRegion as well.
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.
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 Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY, float panX, float panY) const
 Draws the EPolygonRegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY, float panX) const
 Draws the EPolygonRegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX, float zoomY) const
 Draws the EPolygonRegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, float zoomX) const
 Draws the EPolygonRegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame) const
 Draws the EPolygonRegion 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 EPolygonRegion 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 EPolygonRegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, const eVision::ERGBColor &color, float opacity, float zoomX, float zoomY) const
 Draws the EPolygonRegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, const eVision::ERGBColor &color, float opacity, float zoomX) const
 Draws the EPolygonRegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, const eVision::ERGBColor &color, float opacity) const
 Draws the EPolygonRegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::EFrame &frame, const eVision::ERGBColor &color) const
 Draws the EPolygonRegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY, float panX, float panY) const
 Draws the EPolygonRegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY, float panX) const
 Draws the EPolygonRegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, float zoomX, float zoomY) const
 Draws the EPolygonRegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, float zoomX) const
 Draws the EPolygonRegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter) const
 Draws the EPolygonRegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::ERGBColor &color, float opacity, float zoomX, float zoomY, float panX, float panY) const
 Draws the EPolygonRegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::ERGBColor &color, float opacity, float zoomX, float zoomY, float panX) const
 Draws the EPolygonRegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::ERGBColor &color, float opacity, float zoomX, float zoomY) const
 Draws the EPolygonRegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::ERGBColor &color, float opacity, float zoomX) const
 Draws the EPolygonRegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::ERGBColor &color, float opacity) const
 Draws the EPolygonRegion shape.
void Draw (eVision::EDrawAdapter *drawAdapter, const eVision::ERGBColor &color) const
 Draws the EPolygonRegion shape.
void Draw (HDC graphicContext, float opacity, float zoomX, float zoomY, float panX, float panY) const
 Draws the EPolygonRegion shape.
void Draw (HDC graphicContext, float opacity, float zoomX, float zoomY, float panX) const
 Draws the EPolygonRegion shape.
void Draw (HDC graphicContext, float opacity, float zoomX, float zoomY) const
 Draws the EPolygonRegion shape.
void Draw (HDC graphicContext, float opacity, float zoomX) const
 Draws the EPolygonRegion shape.
void Draw (HDC graphicContext, float opacity) const
 Draws the EPolygonRegion shape.
void Draw (HDC graphicContext) const
 Draws the EPolygonRegion shape.
void Draw (HDC graphicContext, const eVision::ERGBColor &color, float opacity, float zoomX, float zoomY, float panX, float panY) const
 Draws the EPolygonRegion shape.
void Draw (HDC graphicContext, const eVision::ERGBColor &color, float opacity, float zoomX, float zoomY, float panX) const
 Draws the EPolygonRegion shape.
void Draw (HDC graphicContext, const eVision::ERGBColor &color, float opacity, float zoomX, float zoomY) const
 Draws the EPolygonRegion shape.
void Draw (HDC graphicContext, const eVision::ERGBColor &color, float opacity, float zoomX) const
 Draws the EPolygonRegion shape.
void Draw (HDC graphicContext, const eVision::ERGBColor &color, float opacity) const
 Draws the EPolygonRegion shape.
void Draw (HDC graphicContext, const eVision::ERGBColor &color) const
 Draws the EPolygonRegion shape.
 EPolygonRegion (CppWrapperInternal::InternalConstructor)
Public Member Functions inherited from eVision::ERegion
 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.
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.
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.
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 bool IsPointInRegion (const eVision::EPoint &point) const
 Checks if a point is inside the rasterized region.
 ERegion (CppWrapperInternal::InternalConstructor)

Additional Inherited Members

Static Public Member Functions inherited from eVision::ERegion
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 inherited from eVision::ERegion
CppWrapperInternal::WrappedClass wrappedClass_

Detailed Description

Manages a complete context for an ERegion shaped like a polygon.

License(s): BasicTypes

Constructor & Destructor Documentation

◆ EPolygonRegion() [1/4]

eVision::EPolygonRegion::EPolygonRegion ( )

Constructs an EPolygonRegion context.

◆ EPolygonRegion() [2/4]

eVision::EPolygonRegion::EPolygonRegion ( const std::vector< eVision::EPoint > & points)

Constructs an EPolygonRegion context.

Parameters
pointsThe list of vertices of the EPolygonRegion.

◆ EPolygonRegion() [3/4]

eVision::EPolygonRegion::EPolygonRegion ( const eVision::EPolygonRegion & other)

Constructs an EPolygonRegion context.

Parameters
otherEPolygonRegion context to copy.

◆ ~EPolygonRegion()

eVision::EPolygonRegion::~EPolygonRegion ( )
throw ( )
virtual

◆ EPolygonRegion() [4/4]

eVision::EPolygonRegion::EPolygonRegion ( CppWrapperInternal::InternalConstructor )

Member Function Documentation

◆ AddPoint()

void eVision::EPolygonRegion::AddPoint ( const eVision::EPoint & point)

Add a new vertex at the end of the region.

Parameters
pointPoint to add

◆ Clone()

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

Clones the ERegion, the cloned Region will be an EPolygonRegion as well.

Reimplemented from eVision::ERegion.

◆ Drag() [1/10]

void eVision::EPolygonRegion::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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

◆ Drag() [2/10]

void eVision::EPolygonRegion::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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

Reimplemented from eVision::ERegion.

◆ Drag() [3/10]

void eVision::EPolygonRegion::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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

Reimplemented from eVision::ERegion.

◆ Drag() [4/10]

void eVision::EPolygonRegion::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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

Reimplemented from eVision::ERegion.

◆ Drag() [5/10]

void eVision::EPolygonRegion::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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

Reimplemented from eVision::ERegion.

◆ Drag() [6/10]

void eVision::EPolygonRegion::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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

Reimplemented from eVision::ERegion.

◆ Drag() [7/10]

void eVision::EPolygonRegion::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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

◆ Drag() [8/10]

void eVision::EPolygonRegion::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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

◆ Drag() [9/10]

void eVision::EPolygonRegion::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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

◆ Drag() [10/10]

void eVision::EPolygonRegion::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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

◆ Draw() [1/34]

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

Draws the EPolygonRegion shape.

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

◆ Draw() [2/34]

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

Draws the EPolygonRegion shape.

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

◆ Draw() [3/34]

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

Draws the EPolygonRegion shape.

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

◆ Draw() [4/34]

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

Draws the EPolygonRegion shape.

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

◆ Draw() [5/34]

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

Draws the EPolygonRegion shape.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
frameFrame on which to draw the shape.
colorThe color in which to draw the EPolygonRegion.
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::EPolygonRegion::Draw ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
const eVision::ERGBColor & color,
float opacity,
float zoomX,
float zoomY ) const

Draws the EPolygonRegion shape.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
frameFrame on which to draw the shape.
colorThe color in which to draw the EPolygonRegion.
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::EPolygonRegion::Draw ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
const eVision::ERGBColor & color,
float opacity,
float zoomX,
float zoomY,
float panX ) const

Draws the EPolygonRegion shape.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
frameFrame on which to draw the shape.
colorThe color in which to draw the EPolygonRegion.
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::EPolygonRegion::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 EPolygonRegion shape.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
frameFrame on which to draw the shape.
colorThe color in which to draw the EPolygonRegion.
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::EPolygonRegion::Draw ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
float zoomX ) const

Draws the EPolygonRegion 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::EPolygonRegion::Draw ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
float zoomX,
float zoomY ) const

Draws the EPolygonRegion 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::EPolygonRegion::Draw ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
float zoomX,
float zoomY,
float panX ) const

Draws the EPolygonRegion 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::EPolygonRegion::Draw ( eVision::EDrawAdapter * drawAdapter,
const eVision::EFrame & frame,
float zoomX,
float zoomY,
float panX,
float panY ) const

Draws the EPolygonRegion 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::EPolygonRegion::Draw ( eVision::EDrawAdapter * drawAdapter,
const eVision::ERGBColor & color ) const

Draws the EPolygonRegion shape.

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

◆ Draw() [14/34]

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

Draws the EPolygonRegion shape.

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

◆ Draw() [15/34]

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

Draws the EPolygonRegion shape.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
colorThe color in which to draw the EPolygonRegion.
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::EPolygonRegion::Draw ( eVision::EDrawAdapter * drawAdapter,
const eVision::ERGBColor & color,
float opacity,
float zoomX,
float zoomY ) const

Draws the EPolygonRegion shape.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
colorThe color in which to draw the EPolygonRegion.
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::EPolygonRegion::Draw ( eVision::EDrawAdapter * drawAdapter,
const eVision::ERGBColor & color,
float opacity,
float zoomX,
float zoomY,
float panX ) const

Draws the EPolygonRegion shape.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
colorThe color in which to draw the EPolygonRegion.
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::EPolygonRegion::Draw ( eVision::EDrawAdapter * drawAdapter,
const eVision::ERGBColor & color,
float opacity,
float zoomX,
float zoomY,
float panX,
float panY ) const

Draws the EPolygonRegion shape.

Parameters
drawAdapterA pointer to an EDrawAdapter (like the EWindowsDrawAdapter).
colorThe color in which to draw the EPolygonRegion.
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::EPolygonRegion::Draw ( eVision::EDrawAdapter * drawAdapter,
float zoomX ) const

Draws the EPolygonRegion shape.

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

◆ Draw() [20/34]

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

Draws the EPolygonRegion 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::EPolygonRegion::Draw ( eVision::EDrawAdapter * drawAdapter,
float zoomX,
float zoomY,
float panX ) const

Draws the EPolygonRegion 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::EPolygonRegion::Draw ( eVision::EDrawAdapter * drawAdapter,
float zoomX,
float zoomY,
float panX,
float panY ) const

Draws the EPolygonRegion 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::EPolygonRegion::Draw ( HDC graphicContext) const

Draws the EPolygonRegion shape.

Parameters
graphicContextHandle of the device context on which to draw.

◆ Draw() [24/34]

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

Draws the EPolygonRegion shape.

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

◆ Draw() [25/34]

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

Draws the EPolygonRegion shape.

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

◆ Draw() [26/34]

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

Draws the EPolygonRegion shape.

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

◆ Draw() [27/34]

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

Draws the EPolygonRegion shape.

Parameters
graphicContextHandle of the device context on which to draw.
colorThe color in which to draw the EPolygonRegion.
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() [28/34]

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

Draws the EPolygonRegion shape.

Parameters
graphicContextHandle of the device context on which to draw.
colorThe color in which to draw the EPolygonRegion.
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() [29/34]

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

Draws the EPolygonRegion shape.

Parameters
graphicContextHandle of the device context on which to draw.
colorThe color in which to draw the EPolygonRegion.
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() [30/34]

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

Draws the EPolygonRegion shape.

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

◆ Draw() [31/34]

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

Draws the EPolygonRegion 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.

◆ Draw() [32/34]

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

Draws the EPolygonRegion 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.

◆ Draw() [33/34]

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

Draws the EPolygonRegion 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.

◆ Draw() [34/34]

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

Draws the EPolygonRegion 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.

◆ GetAvailableEditionModes()

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

Returns all possible edition modes of the region.

Reimplemented from eVision::ERegion.

◆ GetNumPoints()

int eVision::EPolygonRegion::GetNumPoints ( ) const

Number of vertices of the region.

◆ GetPoints()

std::vector< eVision::EPoint > eVision::EPolygonRegion::GetPoints ( ) const

List of vertices of the region.

◆ HitTest() [1/10]

eVision::EEditionMode eVision::EPolygonRegion::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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

◆ HitTest() [2/10]

eVision::EEditionMode eVision::EPolygonRegion::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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

Reimplemented from eVision::ERegion.

◆ HitTest() [3/10]

eVision::EEditionMode eVision::EPolygonRegion::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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

Reimplemented from eVision::ERegion.

◆ HitTest() [4/10]

eVision::EEditionMode eVision::EPolygonRegion::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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

Reimplemented from eVision::ERegion.

◆ HitTest() [5/10]

eVision::EEditionMode eVision::EPolygonRegion::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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

Reimplemented from eVision::ERegion.

◆ HitTest() [6/10]

eVision::EEditionMode eVision::EPolygonRegion::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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

Reimplemented from eVision::ERegion.

◆ HitTest() [7/10]

eVision::EEditionMode eVision::EPolygonRegion::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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

◆ HitTest() [8/10]

eVision::EEditionMode eVision::EPolygonRegion::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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

◆ HitTest() [9/10]

eVision::EEditionMode eVision::EPolygonRegion::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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

◆ HitTest() [10/10]

eVision::EEditionMode eVision::EPolygonRegion::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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

◆ InsertPoint() [1/10]

bool eVision::EPolygonRegion::InsertPoint ( int32_t x,
int32_t y )

Insert a vertice between two existing ones.

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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

◆ InsertPoint() [2/10]

bool eVision::EPolygonRegion::InsertPoint ( int32_t x,
int32_t y,
const eVision::EFrame & frame )

Insert a vertice between two existing ones.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame in which the polygon is drawn.

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

◆ InsertPoint() [3/10]

bool eVision::EPolygonRegion::InsertPoint ( int32_t x,
int32_t y,
const eVision::EFrame & frame,
float zoomX )

Insert a vertice between two existing ones.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame in which the polygon is drawn.
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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

◆ InsertPoint() [4/10]

bool eVision::EPolygonRegion::InsertPoint ( int32_t x,
int32_t y,
const eVision::EFrame & frame,
float zoomX,
float zoomY )

Insert a vertice between two existing ones.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame in which the polygon is drawn.
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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

◆ InsertPoint() [5/10]

bool eVision::EPolygonRegion::InsertPoint ( int32_t x,
int32_t y,
const eVision::EFrame & frame,
float zoomX,
float zoomY,
float panX )

Insert a vertice between two existing ones.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame in which the polygon is drawn.
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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

◆ InsertPoint() [6/10]

bool eVision::EPolygonRegion::InsertPoint ( int32_t x,
int32_t y,
const eVision::EFrame & frame,
float zoomX,
float zoomY,
float panX,
float panY )

Insert a vertice between two existing ones.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame in which the polygon is drawn.
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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

◆ InsertPoint() [7/10]

bool eVision::EPolygonRegion::InsertPoint ( int32_t x,
int32_t y,
float zoomX )

Insert a vertice between two existing ones.

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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

◆ InsertPoint() [8/10]

bool eVision::EPolygonRegion::InsertPoint ( int32_t x,
int32_t y,
float zoomX,
float zoomY )

Insert a vertice between two existing ones.

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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

◆ InsertPoint() [9/10]

bool eVision::EPolygonRegion::InsertPoint ( int32_t x,
int32_t y,
float zoomX,
float zoomY,
float panX )

Insert a vertice between two existing ones.

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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

◆ InsertPoint() [10/10]

bool eVision::EPolygonRegion::InsertPoint ( int32_t x,
int32_t y,
float zoomX,
float zoomY,
float panX,
float panY )

Insert a vertice between two existing ones.

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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

◆ Load() [1/2]

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

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

Parameters
pathThe file path.

Reimplemented from eVision::ERegion.

◆ Load() [2/2]

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

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

Parameters
serializerThe serializer.

Reimplemented from eVision::ERegion.

◆ operator!=()

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

Checks if this EPolygonRegion instance is not strictly equal to another.

Parameters
otherReference to the other EPolygonRegion instance

◆ operator=()

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

Assignment operator.

Parameters
otherReference to the EPolygonRegion used for the assignment

◆ operator==()

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

Checks if this EPolygonRegion instance is strictly equal to another.

Parameters
otherReference to the other EPolygonRegion instance

◆ RemovePoint() [1/10]

bool eVision::EPolygonRegion::RemovePoint ( int32_t x,
int32_t y )

Remove a vertex.

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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

◆ RemovePoint() [2/10]

bool eVision::EPolygonRegion::RemovePoint ( int32_t x,
int32_t y,
const eVision::EFrame & frame )

Remove a vertex.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame in which the polygon is drawn.

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

◆ RemovePoint() [3/10]

bool eVision::EPolygonRegion::RemovePoint ( int32_t x,
int32_t y,
const eVision::EFrame & frame,
float zoomX )

Remove a vertex.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame in which the polygon is drawn.
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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

◆ RemovePoint() [4/10]

bool eVision::EPolygonRegion::RemovePoint ( int32_t x,
int32_t y,
const eVision::EFrame & frame,
float zoomX,
float zoomY )

Remove a vertex.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame in which the polygon is drawn.
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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

◆ RemovePoint() [5/10]

bool eVision::EPolygonRegion::RemovePoint ( int32_t x,
int32_t y,
const eVision::EFrame & frame,
float zoomX,
float zoomY,
float panX )

Remove a vertex.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame in which the polygon is drawn.
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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

◆ RemovePoint() [6/10]

bool eVision::EPolygonRegion::RemovePoint ( int32_t x,
int32_t y,
const eVision::EFrame & frame,
float zoomX,
float zoomY,
float panX,
float panY )

Remove a vertex.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame in which the polygon is drawn.
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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

◆ RemovePoint() [7/10]

bool eVision::EPolygonRegion::RemovePoint ( int32_t x,
int32_t y,
float zoomX )

Remove a vertex.

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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

◆ RemovePoint() [8/10]

bool eVision::EPolygonRegion::RemovePoint ( int32_t x,
int32_t y,
float zoomX,
float zoomY )

Remove a vertex.

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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

◆ RemovePoint() [9/10]

bool eVision::EPolygonRegion::RemovePoint ( int32_t x,
int32_t y,
float zoomX,
float zoomY,
float panX )

Remove a vertex.

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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

◆ RemovePoint() [10/10]

bool eVision::EPolygonRegion::RemovePoint ( int32_t x,
int32_t y,
float zoomX,
float zoomY,
float panX,
float panY )

Remove a vertex.

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 EPolygonRegion::HitTest and EPolygonRegion::Drag.

◆ Rotate()

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

Creates a new region by rotating the EPolygonRegion around its center.

Parameters
anglerotation angle

Reimplemented from eVision::ERegion.

◆ Save() [1/2]

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

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

Parameters
pathThe file path.

Reimplemented from eVision::ERegion.

◆ Save() [2/2]

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

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

Parameters
serializerThe ESerializer object that is written to.

Reimplemented from eVision::ERegion.

◆ Scale() [1/2]

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

Creates a new region by scaling the EPolygonRegion. The center of the EPolygonRegion remains at the same place.

Parameters
scaleIsotropic scale

Reimplemented from eVision::ERegion.

◆ Scale() [2/2]

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

Creates a new region by scaling the EPolygonRegion. The center of the EPolygonRegion remains at the same place.

Parameters
scaleXHorizontal scale
scaleYVertical scale

Reimplemented from eVision::ERegion.

◆ SetPoints()

void eVision::EPolygonRegion::SetPoints ( const std::vector< eVision::EPoint > & points)

List of vertices of the region.

◆ Transform()

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

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

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 from eVision::ERegion.

◆ Translate()

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

Creates a new region by translating the EPolygonRegion.

Parameters
dxHorizontal translation in pixel value
dyVertical translation in pixel value

Reimplemented from eVision::ERegion.