eVision Python API
Loading...
Searching...
No Matches
eVision.EPolygonRegion Class Reference

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

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

Public Member Functions

None __init__ (self)
 Constructs an eVision.EPolygonRegion context.
None __init__ (self, list[eVision._eVision.EPoint] points)
 Constructs an eVision.EPolygonRegion context.
None __init__ (self, eVision.EPolygonRegion other)
 Constructs an eVision.EPolygonRegion context.
None AddPoint (self, eVision.EPoint point)
 Add a new vertex at the end of the region.
eVision.ERegion|None Translate (self, float dx, float dy)
 Creates a new region by translating the eVision.EPolygonRegion.
eVision.ERegion|None Scale (self, float scale)
 Creates a new region by scaling the eVision.EPolygonRegion.
eVision.ERegion|None Scale (self, float scaleX, float scaleY)
 Creates a new region by scaling the eVision.EPolygonRegion.
eVision.ERegion|None Rotate (self, float angle)
 Creates a new region by rotating the eVision.EPolygonRegion around its center.
eVision.ERegion|None Transform (self, float scaleX, float scaleY, float angle, float dx, float dy)
 Creates a new eVision.EPolygonRegion by scaling, rotating and then translating the eVision.EPolygonRegion.
eVision.EEditionMode HitTest (self, int x, int y, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Detects if the cursor is placed over one of the dragging handles.
eVision.EEditionMode HitTest (self, int x, int y, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Detects if the cursor is placed over one of the dragging handles.
eVision.EEditionMode HitTest (self, int x, int y, eVision.EFrame frame, float zoomX, float zoomY)
 Detects if the cursor is placed over one of the dragging handles.
eVision.EEditionMode HitTest (self, int x, int y, eVision.EFrame frame, float zoomX)
 Detects if the cursor is placed over one of the dragging handles.
eVision.EEditionMode HitTest (self, int x, int y, eVision.EFrame frame)
 Detects if the cursor is placed over one of the dragging handles.
eVision.EEditionMode HitTest (self, int x, int y, float zoomX, float zoomY, float panX, float panY)
 Detects if the cursor is placed over one of the dragging handles.
eVision.EEditionMode HitTest (self, int x, int y, float zoomX, float zoomY, float panX)
 Detects if the cursor is placed over one of the dragging handles.
eVision.EEditionMode HitTest (self, int x, int y, float zoomX, float zoomY)
 Detects if the cursor is placed over one of the dragging handles.
eVision.EEditionMode HitTest (self, int x, int y, float zoomX)
 Detects if the cursor is placed over one of the dragging handles.
eVision.EEditionMode HitTest (self, int x, int y)
 Detects if the cursor is placed over one of the dragging handles.
None Drag (self, int x, int y, 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.
None Drag (self, int x, int y, 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.
None Drag (self, int x, int y, eVision.EFrame frame, float zoomX, float zoomY)
 Moves the specified handle to a new position and updates all placement parameters of the region.
None Drag (self, int x, int y, eVision.EFrame frame, float zoomX)
 Moves the specified handle to a new position and updates all placement parameters of the region.
None Drag (self, int x, int y, eVision.EFrame frame)
 Moves the specified handle to a new position and updates all placement parameters of the region.
None Drag (self, int x, int 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.
None Drag (self, int x, int y, float zoomX, float zoomY, float panX)
 Moves the specified handle to a new position and updates all placement parameters of the region.
None Drag (self, int x, int y, float zoomX, float zoomY)
 Moves the specified handle to a new position and updates all placement parameters of the region.
None Drag (self, int x, int y, float zoomX)
 Moves the specified handle to a new position and updates all placement parameters of the region.
None Drag (self, int x, int y)
 Moves the specified handle to a new position and updates all placement parameters of the region.
bool InsertPoint (self, int x, int y, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Insert a vertice between two existing ones.
bool InsertPoint (self, int x, int y, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Insert a vertice between two existing ones.
bool InsertPoint (self, int x, int y, eVision.EFrame frame, float zoomX, float zoomY)
 Insert a vertice between two existing ones.
bool InsertPoint (self, int x, int y, eVision.EFrame frame, float zoomX)
 Insert a vertice between two existing ones.
bool InsertPoint (self, int x, int y, eVision.EFrame frame)
 Insert a vertice between two existing ones.
bool InsertPoint (self, int x, int y, float zoomX, float zoomY, float panX, float panY)
 Insert a vertice between two existing ones.
bool InsertPoint (self, int x, int y, float zoomX, float zoomY, float panX)
 Insert a vertice between two existing ones.
bool InsertPoint (self, int x, int y, float zoomX, float zoomY)
 Insert a vertice between two existing ones.
bool InsertPoint (self, int x, int y, float zoomX)
 Insert a vertice between two existing ones.
bool InsertPoint (self, int x, int y)
 Insert a vertice between two existing ones.
bool RemovePoint (self, int x, int y, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Remove a vertex.
bool RemovePoint (self, int x, int y, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Remove a vertex.
bool RemovePoint (self, int x, int y, eVision.EFrame frame, float zoomX, float zoomY)
 Remove a vertex.
bool RemovePoint (self, int x, int y, eVision.EFrame frame, float zoomX)
 Remove a vertex.
bool RemovePoint (self, int x, int y, eVision.EFrame frame)
 Remove a vertex.
bool RemovePoint (self, int x, int y, float zoomX, float zoomY, float panX, float panY)
 Remove a vertex.
bool RemovePoint (self, int x, int y, float zoomX, float zoomY, float panX)
 Remove a vertex.
bool RemovePoint (self, int x, int y, float zoomX, float zoomY)
 Remove a vertex.
bool RemovePoint (self, int x, int y, float zoomX)
 Remove a vertex.
bool RemovePoint (self, int x, int y)
 Remove a vertex.
None Load (self, str path)
 Loads the eVision.EPolygonRegion.
None Load (self, eVision.ESerializer|None serializer)
 Loads the eVision.EPolygonRegion.
None Save (self, str path)
 Saves the eVision.EPolygonRegion.
None Save (self, eVision.ESerializer|None serializer)
 Saves the eVision.EPolygonRegion.
eVision.ERegion|None Clone (self)
 Clones the ERegion, the cloned Region will be an eVision.EPolygonRegion as well.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Draws the eVision.EPolygonRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Draws the eVision.EPolygonRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX, float zoomY)
 Draws the eVision.EPolygonRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX)
 Draws the eVision.EPolygonRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame)
 Draws the eVision.EPolygonRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, eVision.ERGBColor color, float opacity, float zoomX, float zoomY, float panX, float panY)
 Draws the eVision.EPolygonRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, eVision.ERGBColor color, float opacity, float zoomX, float zoomY, float panX)
 Draws the eVision.EPolygonRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, eVision.ERGBColor color, float opacity, float zoomX, float zoomY)
 Draws the eVision.EPolygonRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, eVision.ERGBColor color, float opacity, float zoomX)
 Draws the eVision.EPolygonRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, eVision.ERGBColor color, float opacity)
 Draws the eVision.EPolygonRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, eVision.ERGBColor color)
 Draws the eVision.EPolygonRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, float zoomX, float zoomY, float panX, float panY)
 Draws the eVision.EPolygonRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, float zoomX, float zoomY, float panX)
 Draws the eVision.EPolygonRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, float zoomX, float zoomY)
 Draws the eVision.EPolygonRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, float zoomX)
 Draws the eVision.EPolygonRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter)
 Draws the eVision.EPolygonRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.ERGBColor color, float opacity, float zoomX, float zoomY, float panX, float panY)
 Draws the eVision.EPolygonRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.ERGBColor color, float opacity, float zoomX, float zoomY, float panX)
 Draws the eVision.EPolygonRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.ERGBColor color, float opacity, float zoomX, float zoomY)
 Draws the eVision.EPolygonRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.ERGBColor color, float opacity, float zoomX)
 Draws the eVision.EPolygonRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.ERGBColor color, float opacity)
 Draws the eVision.EPolygonRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.ERGBColor color)
 Draws the eVision.EPolygonRegion shape.
None Draw (self, ctypes.c_void_p graphicContext, float opacity, float zoomX, float zoomY, float panX, float panY)
 Draws the eVision.EPolygonRegion shape.
None Draw (self, ctypes.c_void_p graphicContext, float opacity, float zoomX, float zoomY, float panX)
 Draws the eVision.EPolygonRegion shape.
None Draw (self, ctypes.c_void_p graphicContext, float opacity, float zoomX, float zoomY)
 Draws the eVision.EPolygonRegion shape.
None Draw (self, ctypes.c_void_p graphicContext, float opacity, float zoomX)
 Draws the eVision.EPolygonRegion shape.
None Draw (self, ctypes.c_void_p graphicContext, float opacity)
 Draws the eVision.EPolygonRegion shape.
None Draw (self, ctypes.c_void_p graphicContext)
 Draws the eVision.EPolygonRegion shape.
None Draw (self, ctypes.c_void_p graphicContext, eVision.ERGBColor color, float opacity, float zoomX, float zoomY, float panX, float panY)
 Draws the eVision.EPolygonRegion shape.
None Draw (self, ctypes.c_void_p graphicContext, eVision.ERGBColor color, float opacity, float zoomX, float zoomY, float panX)
 Draws the eVision.EPolygonRegion shape.
None Draw (self, ctypes.c_void_p graphicContext, eVision.ERGBColor color, float opacity, float zoomX, float zoomY)
 Draws the eVision.EPolygonRegion shape.
None Draw (self, ctypes.c_void_p graphicContext, eVision.ERGBColor color, float opacity, float zoomX)
 Draws the eVision.EPolygonRegion shape.
None Draw (self, ctypes.c_void_p graphicContext, eVision.ERGBColor color, float opacity)
 Draws the eVision.EPolygonRegion shape.
None Draw (self, ctypes.c_void_p graphicContext, eVision.ERGBColor color)
 Draws the eVision.EPolygonRegion shape.
list[eVision._eVision.EPoint] Points (self)
 List of vertices of the region.
 Points (self, list[eVision._eVision.EPoint] value)
 List of vertices of the region.
int NumPoints (self)
 Number of vertices of the region.
eVision.EEditionMode AvailableEditionModes (self)
 Returns all possible edition modes of the region.
Public Member Functions inherited from eVision.ERegion
None __init__ (self)
 Constructs an eVision.ERegion context.
None __init__ (self, eVision.ERegion other)
 Constructs an eVision.ERegion context.
None __init__ (self, eVision.EROIBW8 roi, eVision.EBW8 threshold)
 Constructs an eVision.ERegion context.
None __init__ (self, eVision.EROIBW16 roi, eVision.EBW16 threshold)
 Constructs an eVision.ERegion context.
None __init__ (self, list[eVision._eVision.ERun] runs)
 Constructs an eVision.ERegion context.
eVision.ERegion FillHoles (self)
 Returns a new eVision.ERegion.__init__ whose holes are filled.
None Prepare (self, eVision.EROIBW8 roi)
 Computes the values necessary for the eVision.ERegion to be used during processing.
None Prepare (self, eVision.EROIBW16 roi)
 Computes the values necessary for the eVision.ERegion to be used during processing.
None Prepare (self, eVision.EROIBW32 roi)
 Computes the values necessary for the eVision.ERegion to be used during processing.
None Prepare (self, eVision.EROIBW32f roi)
 Computes the values necessary for the eVision.ERegion to be used during processing.
None Prepare (self, eVision.EROIC24 roi)
 Computes the values necessary for the eVision.ERegion to be used during processing.
None Prepare (self, eVision.EROIC24A roi)
 Computes the values necessary for the eVision.ERegion to be used during processing.
None Prepare (self, eVision.EROIC48 roi)
 Computes the values necessary for the eVision.ERegion to be used during processing.
None Prepare (self, int width, int height)
 Computes the values necessary for the eVision.ERegion to be used during processing.
None Prepare (self, int orgX, int orgY, int width, int height)
 Computes the values necessary for the eVision.ERegion to be used during processing.
None Prepare (self)
 Computes the values necessary for the eVision.ERegion to be used during processing.
eVision.ERegion LocalToSensor (self, eVision.EFrame frame)
 Converts the region from the local reference frame to the sensor reference frame.
eVision.ERegion SensorToLocal (self, eVision.EFrame frame)
 Converts the region from the sensor reference frame to the local reference frame.
None ToImage (self, eVision.EImageC24 img, eVision.EC24 background, eVision.EC24 foreground)
 Exports the eVision.ERegion to a mask-type image.
None ToImage (self, eVision.EImageC24A img, eVision.EC24A background, eVision.EC24A foreground)
 Exports the eVision.ERegion to a mask-type image.
None ToImage (self, eVision.EImageBW8 img, eVision.EBW8 background, eVision.EBW8 foreground)
 Exports the eVision.ERegion to a mask-type image.
None ToImage (self, eVision.EImageBW16 img, eVision.EBW16 background, eVision.EBW16 foreground)
 Exports the eVision.ERegion to a mask-type image.
eVision.ERegion TranslateRuns (self, int dx, int dy)
 Creates a new eVision.ERegion by translating the region runs.
eVision.ERegion CropRuns (self, int orgX, int orgY, int width, int height)
 Creates a new eVision.ERegion by cropping the eVision.ERegion runs within a given area.
eVision.ERegion Grow (self, int radius)
 Creates a new eVision.ERegion by growing the eVision.ERegion runs with a dilation using a circular structuring element.
eVision.ERegion Shrink (self, int radius)
 Creates a new eVision.ERegion by shrinking the eVision.ERegion runs with an erosion using a circular structuring element.
eVision.ERegion Contour (self, int thickness, bool centered)
 Creates a new eVision.ERegion containing the contour of the eVision.ERegion.
eVision.ERegion Contour (self, int thickness)
 Creates a new eVision.ERegion containing the contour of the eVision.ERegion.
None DrawContour (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Draws the eVision.ERegion contour.
None DrawContour (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Draws the eVision.ERegion contour.
None DrawContour (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX, float zoomY)
 Draws the eVision.ERegion contour.
None DrawContour (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX)
 Draws the eVision.ERegion contour.
None DrawContour (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame)
 Draws the eVision.ERegion contour.
None DrawContour (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, eVision.ERGBColor color, float zoomX, float zoomY, float panX, float panY)
 Draws the eVision.ERegion contour.
None DrawContour (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, eVision.ERGBColor color, float zoomX, float zoomY, float panX)
 Draws the eVision.ERegion contour.
None DrawContour (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, eVision.ERGBColor color, float zoomX, float zoomY)
 Draws the eVision.ERegion contour.
None DrawContour (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, eVision.ERGBColor color, float zoomX)
 Draws the eVision.ERegion contour.
None DrawContour (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, eVision.ERGBColor color)
 Draws the eVision.ERegion contour.
None DrawContour (self, eVision.EDrawAdapter|None drawAdapter, float zoomX, float zoomY, float panX, float panY)
 Draws the eVision.ERegion contour.
None DrawContour (self, eVision.EDrawAdapter|None drawAdapter, float zoomX, float zoomY, float panX)
 Draws the eVision.ERegion contour.
None DrawContour (self, eVision.EDrawAdapter|None drawAdapter, float zoomX, float zoomY)
 Draws the eVision.ERegion contour.
None DrawContour (self, eVision.EDrawAdapter|None drawAdapter, float zoomX)
 Draws the eVision.ERegion contour.
None DrawContour (self, eVision.EDrawAdapter|None drawAdapter)
 Draws the eVision.ERegion contour.
None DrawContour (self, eVision.EDrawAdapter|None drawAdapter, eVision.ERGBColor color, float zoomX, float zoomY, float panX, float panY)
 Draws the eVision.ERegion contour.
None DrawContour (self, eVision.EDrawAdapter|None drawAdapter, eVision.ERGBColor color, float zoomX, float zoomY, float panX)
 Draws the eVision.ERegion contour.
None DrawContour (self, eVision.EDrawAdapter|None drawAdapter, eVision.ERGBColor color, float zoomX, float zoomY)
 Draws the eVision.ERegion contour.
None DrawContour (self, eVision.EDrawAdapter|None drawAdapter, eVision.ERGBColor color, float zoomX)
 Draws the eVision.ERegion contour.
None DrawContour (self, eVision.EDrawAdapter|None drawAdapter, eVision.ERGBColor color)
 Draws the eVision.ERegion contour.
None DrawHandles (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Draws the region handles.
None DrawHandles (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Draws the region handles.
None DrawHandles (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX, float zoomY)
 Draws the region handles.
None DrawHandles (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX)
 Draws the region handles.
None DrawHandles (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame)
 Draws the region handles.
None DrawHandles (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, eVision.ERGBColor color, float zoomX, float zoomY, float panX, float panY)
 Draws the region handles.
None DrawHandles (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, eVision.ERGBColor color, float zoomX, float zoomY, float panX)
 Draws the region handles.
None DrawHandles (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, eVision.ERGBColor color, float zoomX, float zoomY)
 Draws the region handles.
None DrawHandles (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, eVision.ERGBColor color, float zoomX)
 Draws the region handles.
None DrawHandles (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, eVision.ERGBColor color)
 Draws the region handles.
None DrawHandles (self, eVision.EDrawAdapter|None drawAdapter, float zoomX, float zoomY, float panX, float panY)
 Draws the region handles.
None DrawHandles (self, eVision.EDrawAdapter|None drawAdapter, float zoomX, float zoomY, float panX)
 Draws the region handles.
None DrawHandles (self, eVision.EDrawAdapter|None drawAdapter, float zoomX, float zoomY)
 Draws the region handles.
None DrawHandles (self, eVision.EDrawAdapter|None drawAdapter, float zoomX)
 Draws the region handles.
None DrawHandles (self, eVision.EDrawAdapter|None drawAdapter)
 Draws the region handles.
None DrawHandles (self, eVision.EDrawAdapter|None drawAdapter, eVision.ERGBColor color, float zoomX, float zoomY, float panX, float panY)
 Draws the region handles.
None DrawHandles (self, eVision.EDrawAdapter|None drawAdapter, eVision.ERGBColor color, float zoomX, float zoomY, float panX)
 Draws the region handles.
None DrawHandles (self, eVision.EDrawAdapter|None drawAdapter, eVision.ERGBColor color, float zoomX, float zoomY)
 Draws the region handles.
None DrawHandles (self, eVision.EDrawAdapter|None drawAdapter, eVision.ERGBColor color, float zoomX)
 Draws the region handles.
None DrawHandles (self, eVision.EDrawAdapter|None drawAdapter, eVision.ERGBColor color)
 Draws the region handles.
bool IsPointInRegion (self, eVision.EPoint point)
 Checks if a point is inside the rasterized region.
list[eVision._eVision.ERun] Runs (self)
 Runs of the region.
 Runs (self, list[eVision._eVision.ERun] value)
 Runs of the region.
int BoundingBoxOrgX (self)
 Bounding box origin abscissa.
int BoundingBoxOrgY (self)
 Bounding box origin ordinate.
int BoundingBoxWidth (self)
 Bounding box width.
int BoundingBoxHeight (self)
 Bounding box height.
int Area (self)
 Area of the eVision.ERegion.
eVision.EEditionMode EditionMode (self)
 Graphical edition mode.
 EditionMode (self, eVision.EEditionMode value)
 Graphical edition mode.

Additional Inherited Members

Static Public Member Functions inherited from eVision.ERegion
eVision.ERegion Union (eVision.ERegion region1, eVision.ERegion region2)
 Creates a new eVision.ERegion by combining two eVision.ERegion.
eVision.ERegion Intersection (eVision.ERegion region1, eVision.ERegion region2)
 Creates a new eVision.ERegion by intersecting two eVision.ERegion.
eVision.ERegion Subtraction (eVision.ERegion region1, eVision.ERegion region2)
 Creates a new eVision.ERegion by subtracting one eVision.ERegion from another.
eVision.ERegion|None Make (str file)
 Makes a typed region based on the serialized file.
eVision.ERegion|None Make (eVision.ESerializer|None serializer)
 Makes a typed region based on the serialized file.

Detailed Description

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

Remarks:

License(s): BasicTypes

Constructor & Destructor Documentation

◆ __init__() [1/3]

None eVision.EPolygonRegion.__init__ ( self)

Constructs an eVision.EPolygonRegion context.

◆ __init__() [2/3]

None eVision.EPolygonRegion.__init__ ( self,
list[eVision._eVision.EPoint] points )

Constructs an eVision.EPolygonRegion context.

Parameters
pointsThe list of vertices of the eVision.EPolygonRegion.

◆ __init__() [3/3]

None eVision.EPolygonRegion.__init__ ( self,
eVision.EPolygonRegion other )

Constructs an eVision.EPolygonRegion context.

Parameters
othereVision.EPolygonRegion context to copy.

Member Function Documentation

◆ AddPoint()

None eVision.EPolygonRegion.AddPoint ( self,
eVision.EPoint point )

Add a new vertex at the end of the region.

Parameters
pointPoint to add

◆ AvailableEditionModes()

eVision.EEditionMode eVision.EPolygonRegion.AvailableEditionModes ( self)

Returns all possible edition modes of the region.

Reimplemented from eVision.ERegion.

◆ Clone()

eVision.ERegion | None eVision.EPolygonRegion.Clone ( self)

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

Reimplemented from eVision.ERegion.

◆ Drag() [1/10]

None eVision.EPolygonRegion.Drag ( self,
int x,
int y )

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

Remarks:

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

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

Reimplemented from eVision.ERegion.

◆ Drag() [2/10]

None eVision.EPolygonRegion.Drag ( self,
int x,
int y,
eVision.EFrame frame )

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

Remarks:

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

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

Reimplemented from eVision.ERegion.

◆ Drag() [3/10]

None eVision.EPolygonRegion.Drag ( self,
int x,
int y,
eVision.EFrame frame,
float zoomX )

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

Remarks:

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

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.

Reimplemented from eVision.ERegion.

◆ Drag() [4/10]

None eVision.EPolygonRegion.Drag ( self,
int x,
int y,
eVision.EFrame frame,
float zoomX,
float zoomY )

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

Remarks:

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

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.

Reimplemented from eVision.ERegion.

◆ Drag() [5/10]

None eVision.EPolygonRegion.Drag ( self,
int x,
int y,
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.

Remarks:

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

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.

Reimplemented from eVision.ERegion.

◆ Drag() [6/10]

None eVision.EPolygonRegion.Drag ( self,
int x,
int y,
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.

Remarks:

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

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.

Reimplemented from eVision.ERegion.

◆ Drag() [7/10]

None eVision.EPolygonRegion.Drag ( self,
int x,
int y,
float zoomX )

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

Remarks:

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

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

Reimplemented from eVision.ERegion.

◆ Drag() [8/10]

None eVision.EPolygonRegion.Drag ( self,
int x,
int y,
float zoomX,
float zoomY )

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

Remarks:

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

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.

Reimplemented from eVision.ERegion.

◆ Drag() [9/10]

None eVision.EPolygonRegion.Drag ( self,
int x,
int y,
float zoomX,
float zoomY,
float panX )

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

Remarks:

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

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.

Reimplemented from eVision.ERegion.

◆ Drag() [10/10]

None eVision.EPolygonRegion.Drag ( self,
int x,
int 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.

Remarks:

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

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.

Reimplemented from eVision.ERegion.

◆ Draw() [1/34]

None eVision.EPolygonRegion.Draw ( self,
ctypes.c_void_p graphicContext )

Draws the eVision.EPolygonRegion shape.

Parameters
graphicContextHandle of the device context on which to draw.

Reimplemented from eVision.ERegion.

◆ Draw() [2/34]

None eVision.EPolygonRegion.Draw ( self,
ctypes.c_void_p graphicContext,
eVision.ERGBColor color )

Draws the eVision.EPolygonRegion shape.

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

Reimplemented from eVision.ERegion.

◆ Draw() [3/34]

None eVision.EPolygonRegion.Draw ( self,
ctypes.c_void_p graphicContext,
eVision.ERGBColor color,
float opacity )

Draws the eVision.EPolygonRegion shape.

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

Reimplemented from eVision.ERegion.

◆ Draw() [4/34]

None eVision.EPolygonRegion.Draw ( self,
ctypes.c_void_p graphicContext,
eVision.ERGBColor color,
float opacity,
float zoomX )

Draws the eVision.EPolygonRegion shape.

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

Reimplemented from eVision.ERegion.

◆ Draw() [5/34]

None eVision.EPolygonRegion.Draw ( self,
ctypes.c_void_p graphicContext,
eVision.ERGBColor color,
float opacity,
float zoomX,
float zoomY )

Draws the eVision.EPolygonRegion shape.

Parameters
graphicContextHandle of the device context on which to draw.
colorThe color in which to draw the eVision.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.

Reimplemented from eVision.ERegion.

◆ Draw() [6/34]

None eVision.EPolygonRegion.Draw ( self,
ctypes.c_void_p graphicContext,
eVision.ERGBColor color,
float opacity,
float zoomX,
float zoomY,
float panX )

Draws the eVision.EPolygonRegion shape.

Parameters
graphicContextHandle of the device context on which to draw.
colorThe color in which to draw the eVision.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.

Reimplemented from eVision.ERegion.

◆ Draw() [7/34]

None eVision.EPolygonRegion.Draw ( self,
ctypes.c_void_p graphicContext,
eVision.ERGBColor color,
float opacity,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the eVision.EPolygonRegion shape.

Parameters
graphicContextHandle of the device context on which to draw.
colorThe color in which to draw the eVision.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.

Reimplemented from eVision.ERegion.

◆ Draw() [8/34]

None eVision.EPolygonRegion.Draw ( self,
ctypes.c_void_p graphicContext,
float opacity )

Draws the eVision.EPolygonRegion shape.

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

Reimplemented from eVision.ERegion.

◆ Draw() [9/34]

None eVision.EPolygonRegion.Draw ( self,
ctypes.c_void_p graphicContext,
float opacity,
float zoomX )

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

Reimplemented from eVision.ERegion.

◆ Draw() [10/34]

None eVision.EPolygonRegion.Draw ( self,
ctypes.c_void_p graphicContext,
float opacity,
float zoomX,
float zoomY )

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

Reimplemented from eVision.ERegion.

◆ Draw() [11/34]

None eVision.EPolygonRegion.Draw ( self,
ctypes.c_void_p graphicContext,
float opacity,
float zoomX,
float zoomY,
float panX )

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

Reimplemented from eVision.ERegion.

◆ Draw() [12/34]

None eVision.EPolygonRegion.Draw ( self,
ctypes.c_void_p graphicContext,
float opacity,
float zoomX,
float zoomY,
float panX,
float panY )

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

Reimplemented from eVision.ERegion.

◆ Draw() [13/34]

None eVision.EPolygonRegion.Draw ( self,
eVision.EDrawAdapter | None drawAdapter )

Draws the eVision.EPolygonRegion shape.

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

Reimplemented from eVision.ERegion.

◆ Draw() [14/34]

None eVision.EPolygonRegion.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame )

Draws the eVision.EPolygonRegion shape.

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

Reimplemented from eVision.ERegion.

◆ Draw() [15/34]

None eVision.EPolygonRegion.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame,
eVision.ERGBColor color )

Draws the eVision.EPolygonRegion shape.

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

Reimplemented from eVision.ERegion.

◆ Draw() [16/34]

None eVision.EPolygonRegion.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame,
eVision.ERGBColor color,
float opacity )

Draws the eVision.EPolygonRegion shape.

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

Reimplemented from eVision.ERegion.

◆ Draw() [17/34]

None eVision.EPolygonRegion.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame,
eVision.ERGBColor color,
float opacity,
float zoomX )

Draws the eVision.EPolygonRegion shape.

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

Reimplemented from eVision.ERegion.

◆ Draw() [18/34]

None eVision.EPolygonRegion.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame,
eVision.ERGBColor color,
float opacity,
float zoomX,
float zoomY )

Draws the eVision.EPolygonRegion shape.

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

Reimplemented from eVision.ERegion.

◆ Draw() [19/34]

None eVision.EPolygonRegion.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame,
eVision.ERGBColor color,
float opacity,
float zoomX,
float zoomY,
float panX )

Draws the eVision.EPolygonRegion shape.

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

Reimplemented from eVision.ERegion.

◆ Draw() [20/34]

None eVision.EPolygonRegion.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame,
eVision.ERGBColor color,
float opacity,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the eVision.EPolygonRegion shape.

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

Reimplemented from eVision.ERegion.

◆ Draw() [21/34]

None eVision.EPolygonRegion.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame,
float zoomX )

Draws the eVision.EPolygonRegion shape.

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

Reimplemented from eVision.ERegion.

◆ Draw() [22/34]

None eVision.EPolygonRegion.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame,
float zoomX,
float zoomY )

Draws the eVision.EPolygonRegion shape.

Parameters
drawAdapterA pointer to an eVision.EDrawAdapter (like the eVision.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.

Reimplemented from eVision.ERegion.

◆ Draw() [23/34]

None eVision.EPolygonRegion.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX )

Draws the eVision.EPolygonRegion shape.

Parameters
drawAdapterA pointer to an eVision.EDrawAdapter (like the eVision.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.

Reimplemented from eVision.ERegion.

◆ Draw() [24/34]

None eVision.EPolygonRegion.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the eVision.EPolygonRegion shape.

Parameters
drawAdapterA pointer to an eVision.EDrawAdapter (like the eVision.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.

Reimplemented from eVision.ERegion.

◆ Draw() [25/34]

None eVision.EPolygonRegion.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.ERGBColor color )

Draws the eVision.EPolygonRegion shape.

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

Reimplemented from eVision.ERegion.

◆ Draw() [26/34]

None eVision.EPolygonRegion.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.ERGBColor color,
float opacity )

Draws the eVision.EPolygonRegion shape.

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

Reimplemented from eVision.ERegion.

◆ Draw() [27/34]

None eVision.EPolygonRegion.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.ERGBColor color,
float opacity,
float zoomX )

Draws the eVision.EPolygonRegion shape.

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

Reimplemented from eVision.ERegion.

◆ Draw() [28/34]

None eVision.EPolygonRegion.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.ERGBColor color,
float opacity,
float zoomX,
float zoomY )

Draws the eVision.EPolygonRegion shape.

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

Reimplemented from eVision.ERegion.

◆ Draw() [29/34]

None eVision.EPolygonRegion.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.ERGBColor color,
float opacity,
float zoomX,
float zoomY,
float panX )

Draws the eVision.EPolygonRegion shape.

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

Reimplemented from eVision.ERegion.

◆ Draw() [30/34]

None eVision.EPolygonRegion.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.ERGBColor color,
float opacity,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the eVision.EPolygonRegion shape.

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

Reimplemented from eVision.ERegion.

◆ Draw() [31/34]

None eVision.EPolygonRegion.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
float zoomX )

Draws the eVision.EPolygonRegion shape.

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

Reimplemented from eVision.ERegion.

◆ Draw() [32/34]

None eVision.EPolygonRegion.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
float zoomX,
float zoomY )

Draws the eVision.EPolygonRegion shape.

Parameters
drawAdapterA pointer to an eVision.EDrawAdapter (like the eVision.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.

Reimplemented from eVision.ERegion.

◆ Draw() [33/34]

None eVision.EPolygonRegion.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
float zoomX,
float zoomY,
float panX )

Draws the eVision.EPolygonRegion shape.

Parameters
drawAdapterA pointer to an eVision.EDrawAdapter (like the eVision.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.

Reimplemented from eVision.ERegion.

◆ Draw() [34/34]

None eVision.EPolygonRegion.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the eVision.EPolygonRegion shape.

Parameters
drawAdapterA pointer to an eVision.EDrawAdapter (like the eVision.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.

Reimplemented from eVision.ERegion.

◆ HitTest() [1/10]

eVision.EEditionMode eVision.EPolygonRegion.HitTest ( self,
int x,
int y )

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

Remarks:

Returns a handle identifier, as defined by eVision.EEditionMode.

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

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

Reimplemented from eVision.ERegion.

◆ HitTest() [2/10]

eVision.EEditionMode eVision.EPolygonRegion.HitTest ( self,
int x,
int y,
eVision.EFrame frame )

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

Remarks:

Returns a handle identifier, as defined by eVision.EEditionMode.

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

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

Reimplemented from eVision.ERegion.

◆ HitTest() [3/10]

eVision.EEditionMode eVision.EPolygonRegion.HitTest ( self,
int x,
int y,
eVision.EFrame frame,
float zoomX )

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

Remarks:

Returns a handle identifier, as defined by eVision.EEditionMode.

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

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.

Reimplemented from eVision.ERegion.

◆ HitTest() [4/10]

eVision.EEditionMode eVision.EPolygonRegion.HitTest ( self,
int x,
int y,
eVision.EFrame frame,
float zoomX,
float zoomY )

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

Remarks:

Returns a handle identifier, as defined by eVision.EEditionMode.

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

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.

Reimplemented from eVision.ERegion.

◆ HitTest() [5/10]

eVision.EEditionMode eVision.EPolygonRegion.HitTest ( self,
int x,
int y,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX )

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

Remarks:

Returns a handle identifier, as defined by eVision.EEditionMode.

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

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.

Reimplemented from eVision.ERegion.

◆ HitTest() [6/10]

eVision.EEditionMode eVision.EPolygonRegion.HitTest ( self,
int x,
int y,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX,
float panY )

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

Remarks:

Returns a handle identifier, as defined by eVision.EEditionMode.

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

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.

Reimplemented from eVision.ERegion.

◆ HitTest() [7/10]

eVision.EEditionMode eVision.EPolygonRegion.HitTest ( self,
int x,
int y,
float zoomX )

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

Remarks:

Returns a handle identifier, as defined by eVision.EEditionMode.

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

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

Reimplemented from eVision.ERegion.

◆ HitTest() [8/10]

eVision.EEditionMode eVision.EPolygonRegion.HitTest ( self,
int x,
int y,
float zoomX,
float zoomY )

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

Remarks:

Returns a handle identifier, as defined by eVision.EEditionMode.

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

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.

Reimplemented from eVision.ERegion.

◆ HitTest() [9/10]

eVision.EEditionMode eVision.EPolygonRegion.HitTest ( self,
int x,
int y,
float zoomX,
float zoomY,
float panX )

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

Remarks:

Returns a handle identifier, as defined by eVision.EEditionMode.

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

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.

Reimplemented from eVision.ERegion.

◆ HitTest() [10/10]

eVision.EEditionMode eVision.EPolygonRegion.HitTest ( self,
int x,
int y,
float zoomX,
float zoomY,
float panX,
float panY )

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

Remarks:

Returns a handle identifier, as defined by eVision.EEditionMode.

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

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.

Reimplemented from eVision.ERegion.

◆ InsertPoint() [1/10]

bool eVision.EPolygonRegion.InsertPoint ( self,
int x,
int y )

Insert a vertice between two existing ones.

Remarks:

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

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

◆ InsertPoint() [2/10]

bool eVision.EPolygonRegion.InsertPoint ( self,
int x,
int y,
eVision.EFrame frame )

Insert a vertice between two existing ones.

Remarks:

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

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

◆ InsertPoint() [3/10]

bool eVision.EPolygonRegion.InsertPoint ( self,
int x,
int y,
eVision.EFrame frame,
float zoomX )

Insert a vertice between two existing ones.

Remarks:

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

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.

◆ InsertPoint() [4/10]

bool eVision.EPolygonRegion.InsertPoint ( self,
int x,
int y,
eVision.EFrame frame,
float zoomX,
float zoomY )

Insert a vertice between two existing ones.

Remarks:

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

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.

◆ InsertPoint() [5/10]

bool eVision.EPolygonRegion.InsertPoint ( self,
int x,
int y,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX )

Insert a vertice between two existing ones.

Remarks:

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

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.

◆ InsertPoint() [6/10]

bool eVision.EPolygonRegion.InsertPoint ( self,
int x,
int y,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX,
float panY )

Insert a vertice between two existing ones.

Remarks:

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

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.

◆ InsertPoint() [7/10]

bool eVision.EPolygonRegion.InsertPoint ( self,
int x,
int y,
float zoomX )

Insert a vertice between two existing ones.

Remarks:

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

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

◆ InsertPoint() [8/10]

bool eVision.EPolygonRegion.InsertPoint ( self,
int x,
int y,
float zoomX,
float zoomY )

Insert a vertice between two existing ones.

Remarks:

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

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.

◆ InsertPoint() [9/10]

bool eVision.EPolygonRegion.InsertPoint ( self,
int x,
int y,
float zoomX,
float zoomY,
float panX )

Insert a vertice between two existing ones.

Remarks:

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

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.

◆ InsertPoint() [10/10]

bool eVision.EPolygonRegion.InsertPoint ( self,
int x,
int y,
float zoomX,
float zoomY,
float panX,
float panY )

Insert a vertice between two existing ones.

Remarks:

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

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.

◆ Load() [1/2]

None eVision.EPolygonRegion.Load ( self,
eVision.ESerializer | None serializer )

Loads the eVision.EPolygonRegion.

The given eVision.ESerializer must have been created for reading.

Parameters
serializerThe serializer.

Reimplemented from eVision.ERegion.

◆ Load() [2/2]

None eVision.EPolygonRegion.Load ( self,
str path )

Loads the eVision.EPolygonRegion.

The given eVision.ESerializer must have been created for reading.

Parameters
pathThe file path.

Reimplemented from eVision.ERegion.

◆ NumPoints()

int eVision.EPolygonRegion.NumPoints ( self)

Number of vertices of the region.

◆ Points() [1/2]

list[eVision._eVision.EPoint] eVision.EPolygonRegion.Points ( self)

List of vertices of the region.

◆ Points() [2/2]

eVision.EPolygonRegion.Points ( self,
list[eVision._eVision.EPoint] value )

List of vertices of the region.

◆ RemovePoint() [1/10]

bool eVision.EPolygonRegion.RemovePoint ( self,
int x,
int y )

Remove a vertex.

Remarks:

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

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

◆ RemovePoint() [2/10]

bool eVision.EPolygonRegion.RemovePoint ( self,
int x,
int y,
eVision.EFrame frame )

Remove a vertex.

Remarks:

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

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

◆ RemovePoint() [3/10]

bool eVision.EPolygonRegion.RemovePoint ( self,
int x,
int y,
eVision.EFrame frame,
float zoomX )

Remove a vertex.

Remarks:

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

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.

◆ RemovePoint() [4/10]

bool eVision.EPolygonRegion.RemovePoint ( self,
int x,
int y,
eVision.EFrame frame,
float zoomX,
float zoomY )

Remove a vertex.

Remarks:

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

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.

◆ RemovePoint() [5/10]

bool eVision.EPolygonRegion.RemovePoint ( self,
int x,
int y,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX )

Remove a vertex.

Remarks:

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

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.

◆ RemovePoint() [6/10]

bool eVision.EPolygonRegion.RemovePoint ( self,
int x,
int y,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX,
float panY )

Remove a vertex.

Remarks:

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

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.

◆ RemovePoint() [7/10]

bool eVision.EPolygonRegion.RemovePoint ( self,
int x,
int y,
float zoomX )

Remove a vertex.

Remarks:

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

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

◆ RemovePoint() [8/10]

bool eVision.EPolygonRegion.RemovePoint ( self,
int x,
int y,
float zoomX,
float zoomY )

Remove a vertex.

Remarks:

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

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.

◆ RemovePoint() [9/10]

bool eVision.EPolygonRegion.RemovePoint ( self,
int x,
int y,
float zoomX,
float zoomY,
float panX )

Remove a vertex.

Remarks:

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

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.

◆ RemovePoint() [10/10]

bool eVision.EPolygonRegion.RemovePoint ( self,
int x,
int y,
float zoomX,
float zoomY,
float panX,
float panY )

Remove a vertex.

Remarks:

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

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.

◆ Rotate()

eVision.ERegion | None eVision.EPolygonRegion.Rotate ( self,
float angle )

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

Parameters
anglerotation angle

Reimplemented from eVision.ERegion.

◆ Save() [1/2]

None eVision.EPolygonRegion.Save ( self,
eVision.ESerializer | None serializer )

Saves the eVision.EPolygonRegion.

The given eVision.ESerializer must have been created for writing.

Parameters
serializerThe eVision.ESerializer object that is written to.

Reimplemented from eVision.ERegion.

◆ Save() [2/2]

None eVision.EPolygonRegion.Save ( self,
str path )

Saves the eVision.EPolygonRegion.

The given eVision.ESerializer must have been created for writing.

Parameters
pathThe file path.

Reimplemented from eVision.ERegion.

◆ Scale() [1/2]

eVision.ERegion | None eVision.EPolygonRegion.Scale ( self,
float scale )

Creates a new region by scaling the eVision.EPolygonRegion.

The center of the eVision.EPolygonRegion remains at the same place.

Parameters
scaleIsotropic scale

Reimplemented from eVision.ERegion.

◆ Scale() [2/2]

eVision.ERegion | None eVision.EPolygonRegion.Scale ( self,
float scaleX,
float scaleY )

Creates a new region by scaling the eVision.EPolygonRegion.

The center of the eVision.EPolygonRegion remains at the same place.

Parameters
scaleXHorizontal scale
scaleYVertical scale

Reimplemented from eVision.ERegion.

◆ Transform()

eVision.ERegion | None eVision.EPolygonRegion.Transform ( self,
float scaleX,
float scaleY,
float angle,
float dx,
float dy )

Creates a new eVision.EPolygonRegion by scaling, rotating and then translating the eVision.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()

eVision.ERegion | None eVision.EPolygonRegion.Translate ( self,
float dx,
float dy )

Creates a new region by translating the eVision.EPolygonRegion.

Parameters
dxHorizontal translation in pixel value
dyVertical translation in pixel value

Reimplemented from eVision.ERegion.