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

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

Inheritance diagram for eVision.ERectangleRegion:
Collaboration diagram for eVision.ERectangleRegion:

Public Member Functions

None __init__ (self)
 Constructs an eVision.ERectangleRegion context.
None __init__ (self, float originX, float originY, float width, float height)
 Constructs an eVision.ERectangleRegion context.
None __init__ (self, eVision.EPoint origin, float width, float height)
 Constructs an eVision.ERectangleRegion context.
None __init__ (self, float centerX, float centerY, float width, float height, float angle)
 Constructs an eVision.ERectangleRegion context.
None __init__ (self, eVision.EPoint center, float width, float height, float angle)
 Constructs an eVision.ERectangleRegion context.
None __init__ (self, eVision.ERectangle rectangle)
 Constructs an eVision.ERectangleRegion context.
None __init__ (self, eVision.ERectangleRegion other)
 Constructs an eVision.ERectangleRegion context.
eVision.ERegion|None Translate (self, float dx, float dy)
 Creates a new region by translating the eVision.ERectangleRegion.
eVision.ERegion|None Scale (self, float scale)
 Creates a new region by scaling the eVision.ERectangleRegion.
eVision.ERegion|None Scale (self, float scaleX, float scaleY)
 Creates a new region by scaling the eVision.ERectangleRegion.
eVision.ERegion|None Rotate (self, float angle)
 Creates a new region by rotating the eVision.ERectangleRegion around its center.
eVision.ERegion|None Transform (self, float scaleX, float scaleY, float angle, float dx, float dy)
 Creates a new eVision.ERectangleRegion by scaling, rotating and then translating the eVision.ERectangleRegion.
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 IsPointInRegion (self, eVision.EPoint point)
 Checks if a point is inside the rasterized region.
None Load (self, str path)
 Loads the eVision.ERectangleRegion.
None Load (self, eVision.ESerializer|None serializer)
 Loads the eVision.ERectangleRegion.
None Save (self, str path)
 Saves the eVision.ERectangleRegion.
None Save (self, eVision.ESerializer|None serializer)
 Saves the eVision.ERectangleRegion.
eVision.ERegion|None Clone (self)
 Clones the ERegion, the cloned Region will be an eVision.ERectangleRegion as well.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Draws the eVision.ERectangleRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Draws the eVision.ERectangleRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX, float zoomY)
 Draws the eVision.ERectangleRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX)
 Draws the eVision.ERectangleRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame)
 Draws the eVision.ERectangleRegion 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.ERectangleRegion 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.ERectangleRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, eVision.ERGBColor color, float opacity, float zoomX, float zoomY)
 Draws the eVision.ERectangleRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, eVision.ERGBColor color, float opacity, float zoomX)
 Draws the eVision.ERectangleRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, eVision.ERGBColor color, float opacity)
 Draws the eVision.ERectangleRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, eVision.ERGBColor color)
 Draws the eVision.ERectangleRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, float zoomX, float zoomY, float panX, float panY)
 Draws the eVision.ERectangleRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, float zoomX, float zoomY, float panX)
 Draws the eVision.ERectangleRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, float zoomX, float zoomY)
 Draws the eVision.ERectangleRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, float zoomX)
 Draws the eVision.ERectangleRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter)
 Draws the eVision.ERectangleRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.ERGBColor color, float opacity, float zoomX, float zoomY, float panX, float panY)
 Draws the eVision.ERectangleRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.ERGBColor color, float opacity, float zoomX, float zoomY, float panX)
 Draws the eVision.ERectangleRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.ERGBColor color, float opacity, float zoomX, float zoomY)
 Draws the eVision.ERectangleRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.ERGBColor color, float opacity, float zoomX)
 Draws the eVision.ERectangleRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.ERGBColor color, float opacity)
 Draws the eVision.ERectangleRegion shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.ERGBColor color)
 Draws the eVision.ERectangleRegion shape.
None Draw (self, ctypes.c_void_p graphicContext, float opacity, float zoomX, float zoomY, float panX, float panY)
 Draws the eVision.ERectangleRegion shape.
None Draw (self, ctypes.c_void_p graphicContext, float opacity, float zoomX, float zoomY, float panX)
 Draws the eVision.ERectangleRegion shape.
None Draw (self, ctypes.c_void_p graphicContext, float opacity, float zoomX, float zoomY)
 Draws the eVision.ERectangleRegion shape.
None Draw (self, ctypes.c_void_p graphicContext, float opacity, float zoomX)
 Draws the eVision.ERectangleRegion shape.
None Draw (self, ctypes.c_void_p graphicContext, float opacity)
 Draws the eVision.ERectangleRegion shape.
None Draw (self, ctypes.c_void_p graphicContext)
 Draws the eVision.ERectangleRegion 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.ERectangleRegion shape.
None Draw (self, ctypes.c_void_p graphicContext, eVision.ERGBColor color, float opacity, float zoomX, float zoomY, float panX)
 Draws the eVision.ERectangleRegion shape.
None Draw (self, ctypes.c_void_p graphicContext, eVision.ERGBColor color, float opacity, float zoomX, float zoomY)
 Draws the eVision.ERectangleRegion shape.
None Draw (self, ctypes.c_void_p graphicContext, eVision.ERGBColor color, float opacity, float zoomX)
 Draws the eVision.ERectangleRegion shape.
None Draw (self, ctypes.c_void_p graphicContext, eVision.ERGBColor color, float opacity)
 Draws the eVision.ERectangleRegion shape.
None Draw (self, ctypes.c_void_p graphicContext, eVision.ERGBColor color)
 Draws the eVision.ERectangleRegion shape.
eVision.EPoint Center (self)
 Center of the region.
 Center (self, eVision.EPoint value)
 Center of the region.
float Width (self)
 Width of the region.
 Width (self, float value)
 Width of the region.
float Height (self)
 Height of the region.
 Height (self, float value)
 Height of the region.
float Angle (self)
 Angle of the region.
 Angle (self, float value)
 Angle of the region.
list[eVision._eVision.EPoint] Corners (self)
 Corners 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.
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 rectangle.

Remarks:

License(s): BasicTypes

Constructor & Destructor Documentation

◆ __init__() [1/7]

None eVision.ERectangleRegion.__init__ ( self)

Constructs an eVision.ERectangleRegion context.

Remarks:

A eVision.ERectangleRegion aligned with the image axes is defined from the top left corner. Otherwise, an oriented eVision.ERectangleRegion is defined from its center point.

◆ __init__() [2/7]

None eVision.ERectangleRegion.__init__ ( self,
float originX,
float originY,
float width,
float height )

Constructs an eVision.ERectangleRegion context.

Remarks:

A eVision.ERectangleRegion aligned with the image axes is defined from the top left corner. Otherwise, an oriented eVision.ERectangleRegion is defined from its center point.

Parameters
originXThe abscissa of the eVision.ERectangleRegion's top left corner.
originYThe ordinate of the eVision.ERectangleRegion's top left corner.
widthThe width of the eVision.ERectangleRegion.
heightThe height of the eVision.ERectangleRegion.

◆ __init__() [3/7]

None eVision.ERectangleRegion.__init__ ( self,
eVision.EPoint origin,
float width,
float height )

Constructs an eVision.ERectangleRegion context.

Remarks:

A eVision.ERectangleRegion aligned with the image axes is defined from the top left corner. Otherwise, an oriented eVision.ERectangleRegion is defined from its center point.

Parameters
originThe top left corner of the eVision.ERectangleRegion.
widthThe width of the eVision.ERectangleRegion.
heightThe height of the eVision.ERectangleRegion.

◆ __init__() [4/7]

None eVision.ERectangleRegion.__init__ ( self,
float centerX,
float centerY,
float width,
float height,
float angle )

Constructs an eVision.ERectangleRegion context.

Remarks:

A eVision.ERectangleRegion aligned with the image axes is defined from the top left corner. Otherwise, an oriented eVision.ERectangleRegion is defined from its center point.

Parameters
centerXThe abscissa of the eVision.ERectangleRegion center.
centerYThe ordinate of the eVision.ERectangleRegion center.
widthThe width of the eVision.ERectangleRegion.
heightThe height of the eVision.ERectangleRegion.
angleThe angle of the eVision.ERectangleRegion.

◆ __init__() [5/7]

None eVision.ERectangleRegion.__init__ ( self,
eVision.EPoint center,
float width,
float height,
float angle )

Constructs an eVision.ERectangleRegion context.

Remarks:

A eVision.ERectangleRegion aligned with the image axes is defined from the top left corner. Otherwise, an oriented eVision.ERectangleRegion is defined from its center point.

Parameters
centerThe center of the eVision.ERectangleRegion.
widthThe width of the eVision.ERectangleRegion.
heightThe height of the eVision.ERectangleRegion.
angleThe angle of the eVision.ERectangleRegion.

◆ __init__() [6/7]

None eVision.ERectangleRegion.__init__ ( self,
eVision.ERectangle rectangle )

Constructs an eVision.ERectangleRegion context.

Remarks:

A eVision.ERectangleRegion aligned with the image axes is defined from the top left corner. Otherwise, an oriented eVision.ERectangleRegion is defined from its center point.

Parameters
rectangleThe result of an eVision.ERectangleGauge object.

◆ __init__() [7/7]

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

Constructs an eVision.ERectangleRegion context.

Remarks:

A eVision.ERectangleRegion aligned with the image axes is defined from the top left corner. Otherwise, an oriented eVision.ERectangleRegion is defined from its center point.

Parameters
othereVision.ERectangleRegion context to copy.

Member Function Documentation

◆ Angle() [1/2]

float eVision.ERectangleRegion.Angle ( self)

Angle of the region.

◆ Angle() [2/2]

eVision.ERectangleRegion.Angle ( self,
float value )

Angle of the region.

◆ AvailableEditionModes()

eVision.EEditionMode eVision.ERectangleRegion.AvailableEditionModes ( self)

Returns all possible edition modes of the region.

Reimplemented from eVision.ERegion.

◆ Center() [1/2]

eVision.EPoint eVision.ERectangleRegion.Center ( self)

Center of the region.

◆ Center() [2/2]

eVision.ERectangleRegion.Center ( self,
eVision.EPoint value )

Center of the region.

◆ Clone()

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

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

Reimplemented from eVision.ERegion.

◆ Corners()

list[eVision._eVision.EPoint] eVision.ERectangleRegion.Corners ( self)

Corners of the region.

◆ Drag() [1/10]

None eVision.ERectangleRegion.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.ERectangleRegion.HitTest and eVision.ERectangleRegion.Drag.

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

Reimplemented from eVision.ERegion.

◆ Drag() [2/10]

None eVision.ERectangleRegion.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.ERectangleRegion.HitTest and eVision.ERectangleRegion.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.ERectangleRegion.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.ERectangleRegion.HitTest and eVision.ERectangleRegion.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.ERectangleRegion.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.ERectangleRegion.HitTest and eVision.ERectangleRegion.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.ERectangleRegion.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.ERectangleRegion.HitTest and eVision.ERectangleRegion.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.ERectangleRegion.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.ERectangleRegion.HitTest and eVision.ERectangleRegion.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.ERectangleRegion.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.ERectangleRegion.HitTest and eVision.ERectangleRegion.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.ERectangleRegion.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.ERectangleRegion.HitTest and eVision.ERectangleRegion.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.ERectangleRegion.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.ERectangleRegion.HitTest and eVision.ERectangleRegion.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.ERectangleRegion.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.ERectangleRegion.HitTest and eVision.ERectangleRegion.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.ERectangleRegion.Draw ( self,
ctypes.c_void_p graphicContext )

Draws the eVision.ERectangleRegion shape.

Parameters
graphicContextHandle of the device context on which to draw.

Reimplemented from eVision.ERegion.

◆ Draw() [2/34]

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

Draws the eVision.ERectangleRegion shape.

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

Reimplemented from eVision.ERegion.

◆ Draw() [3/34]

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

Draws the eVision.ERectangleRegion shape.

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

Reimplemented from eVision.ERegion.

◆ Draw() [4/34]

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

Draws the eVision.ERectangleRegion shape.

Parameters
graphicContextHandle of the device context on which to draw.
colorThe color in which to draw the eVision.ERectangleRegion.
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.ERectangleRegion.Draw ( self,
ctypes.c_void_p graphicContext,
eVision.ERGBColor color,
float opacity,
float zoomX,
float zoomY )

Draws the eVision.ERectangleRegion shape.

Parameters
graphicContextHandle of the device context on which to draw.
colorThe color in which to draw the eVision.ERectangleRegion.
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.ERectangleRegion.Draw ( self,
ctypes.c_void_p graphicContext,
eVision.ERGBColor color,
float opacity,
float zoomX,
float zoomY,
float panX )

Draws the eVision.ERectangleRegion shape.

Parameters
graphicContextHandle of the device context on which to draw.
colorThe color in which to draw the eVision.ERectangleRegion.
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.ERectangleRegion.Draw ( self,
ctypes.c_void_p graphicContext,
eVision.ERGBColor color,
float opacity,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the eVision.ERectangleRegion shape.

Parameters
graphicContextHandle of the device context on which to draw.
colorThe color in which to draw the eVision.ERectangleRegion.
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.ERectangleRegion.Draw ( self,
ctypes.c_void_p graphicContext,
float opacity )

Draws the eVision.ERectangleRegion 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.ERectangleRegion.Draw ( self,
ctypes.c_void_p graphicContext,
float opacity,
float zoomX )

Draws the eVision.ERectangleRegion 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.ERectangleRegion.Draw ( self,
ctypes.c_void_p graphicContext,
float opacity,
float zoomX,
float zoomY )

Draws the eVision.ERectangleRegion 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.ERectangleRegion.Draw ( self,
ctypes.c_void_p graphicContext,
float opacity,
float zoomX,
float zoomY,
float panX )

Draws the eVision.ERectangleRegion 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.ERectangleRegion.Draw ( self,
ctypes.c_void_p graphicContext,
float opacity,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the eVision.ERectangleRegion 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.ERectangleRegion.Draw ( self,
eVision.EDrawAdapter | None drawAdapter )

Draws the eVision.ERectangleRegion shape.

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

Reimplemented from eVision.ERegion.

◆ Draw() [14/34]

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

Draws the eVision.ERectangleRegion 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.ERectangleRegion.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame,
eVision.ERGBColor color )

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

Reimplemented from eVision.ERegion.

◆ Draw() [16/34]

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

Draws the eVision.ERectangleRegion 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.ERectangleRegion.
opacityOpacity of the drawn area (range: 0.0 to 1.0).

Reimplemented from eVision.ERegion.

◆ Draw() [17/34]

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

Draws the eVision.ERectangleRegion 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.ERectangleRegion.
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.ERectangleRegion.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame,
eVision.ERGBColor color,
float opacity,
float zoomX,
float zoomY )

Draws the eVision.ERectangleRegion 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.ERectangleRegion.
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.ERectangleRegion.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame,
eVision.ERGBColor color,
float opacity,
float zoomX,
float zoomY,
float panX )

Draws the eVision.ERectangleRegion 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.ERectangleRegion.
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.ERectangleRegion.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.ERectangleRegion 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.ERectangleRegion.
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.ERectangleRegion.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame,
float zoomX )

Draws the eVision.ERectangleRegion 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.ERectangleRegion.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame,
float zoomX,
float zoomY )

Draws the eVision.ERectangleRegion 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.ERectangleRegion.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX )

Draws the eVision.ERectangleRegion 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.ERectangleRegion.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX,
float panY )

Draws the eVision.ERectangleRegion 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.ERectangleRegion.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
eVision.ERGBColor color )

Draws the eVision.ERectangleRegion shape.

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

Reimplemented from eVision.ERegion.

◆ Draw() [26/34]

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

Draws the eVision.ERectangleRegion shape.

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

Reimplemented from eVision.ERegion.

◆ Draw() [27/34]

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

Draws the eVision.ERectangleRegion shape.

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

Draws the eVision.ERectangleRegion shape.

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

Draws the eVision.ERectangleRegion shape.

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

Draws the eVision.ERectangleRegion shape.

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

Draws the eVision.ERectangleRegion 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.ERectangleRegion.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
float zoomX,
float zoomY )

Draws the eVision.ERectangleRegion 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.ERectangleRegion.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
float zoomX,
float zoomY,
float panX )

Draws the eVision.ERectangleRegion 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.ERectangleRegion.Draw ( self,
eVision.EDrawAdapter | None drawAdapter,
float zoomX,
float zoomY,
float panX,
float panY )

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

◆ Height() [1/2]

float eVision.ERectangleRegion.Height ( self)

Height of the region.

◆ Height() [2/2]

eVision.ERectangleRegion.Height ( self,
float value )

Height of the region.

◆ HitTest() [1/10]

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

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

Reimplemented from eVision.ERegion.

◆ HitTest() [2/10]

eVision.EEditionMode eVision.ERectangleRegion.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.ERectangleRegion.HitTest and eVision.ERectangleRegion.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.ERectangleRegion.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.ERectangleRegion.HitTest and eVision.ERectangleRegion.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.ERectangleRegion.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.ERectangleRegion.HitTest and eVision.ERectangleRegion.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.ERectangleRegion.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.ERectangleRegion.HitTest and eVision.ERectangleRegion.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.ERectangleRegion.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.ERectangleRegion.HitTest and eVision.ERectangleRegion.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.ERectangleRegion.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.ERectangleRegion.HitTest and eVision.ERectangleRegion.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.ERectangleRegion.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.ERectangleRegion.HitTest and eVision.ERectangleRegion.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.ERectangleRegion.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.ERectangleRegion.HitTest and eVision.ERectangleRegion.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.ERectangleRegion.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.ERectangleRegion.HitTest and eVision.ERectangleRegion.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.

◆ IsPointInRegion()

bool eVision.ERectangleRegion.IsPointInRegion ( self,
eVision.EPoint point )

Checks if a point is inside the rasterized region.

Remarks:

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

Parameters
pointThe point to check.

Reimplemented from eVision.ERegion.

◆ Load() [1/2]

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

Loads the eVision.ERectangleRegion.

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

Parameters
serializerThe serializer.

Reimplemented from eVision.ERegion.

◆ Load() [2/2]

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

Loads the eVision.ERectangleRegion.

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

Parameters
pathThe file path.

Reimplemented from eVision.ERegion.

◆ Rotate()

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

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

Parameters
anglerotation angle

Reimplemented from eVision.ERegion.

◆ Save() [1/2]

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

Saves the eVision.ERectangleRegion.

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.ERectangleRegion.Save ( self,
str path )

Saves the eVision.ERectangleRegion.

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.ERectangleRegion.Scale ( self,
float scale )

Creates a new region by scaling the eVision.ERectangleRegion.

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

Remarks:

For anisotropic scaling and a rectangle with an orientation not aligned with the axes, the returned region will not be a rectangle.

Parameters
scaleIsotropic scale

Reimplemented from eVision.ERegion.

◆ Scale() [2/2]

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

Creates a new region by scaling the eVision.ERectangleRegion.

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

Remarks:

For anisotropic scaling and a rectangle with an orientation not aligned with the axes, the returned region will not be a rectangle.

Parameters
scaleXHorizontal scale
scaleYVertical scale

Reimplemented from eVision.ERegion.

◆ Transform()

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

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

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.ERectangleRegion.Translate ( self,
float dx,
float dy )

Creates a new region by translating the eVision.ERectangleRegion.

Parameters
dxHorizontal translation in pixel value
dyVertical translation in pixel value

Reimplemented from eVision.ERegion.

◆ Width() [1/2]

float eVision.ERectangleRegion.Width ( self)

Width of the region.

◆ Width() [2/2]

eVision.ERectangleRegion.Width ( self,
float value )

Width of the region.