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

Represents a polygon. More...

Inheritance diagram for eVision.EPolygon:
Collaboration diagram for eVision.EPolygon:

Public Member Functions

None __init__ (self)
 Constructs a eVision.EPolygon.
None __init__ (self, eVision.EPolygon other)
 Constructs a eVision.EPolygon.
None __init__ (self, list[eVision._eVision.EPoint] vertices, bool closed)
 Constructs a eVision.EPolygon.
None __init__ (self, list[eVision._eVision.EPoint] vertices)
 Constructs a eVision.EPolygon.
None CopyTo (self, eVision.EPolygon other)
 Copies the content of this object to the other one.
None AppendVertex (self, eVision.EPoint pt)
 Appends a polygon vertex after the last.
None InsertVertex (self, int index, eVision.EPoint pt)
 Inserts a vertex before the given index.
None RemoveVertex (self, int index)
 Removes vertex at the given index.
None SetVertex (self, int index, eVision.EPoint pt)
 Sets a polygon vertex.
eVision.EPoint GetVertex (self, int index)
 Gets a polygon vertex.
bool IsValid (self)
 Returns true if the polygon is valid.
float GetEdgeLength (self, int index)
 Length of an edge.
float GetEdgeAngle (self, int index)
 Angle of the edge with respect to the X-axis.
eVision.ELine GetEdge (self, int index)
 Edge of the polygon as a eVision.ELine object.
eVision.EEditionMode AddVertexAtDisplayPosition (self, int x, int y, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.
eVision.EEditionMode AddVertexAtDisplayPosition (self, int x, int y, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.
eVision.EEditionMode AddVertexAtDisplayPosition (self, int x, int y, eVision.EFrame frame, float zoomX, float zoomY)
 Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.
eVision.EEditionMode AddVertexAtDisplayPosition (self, int x, int y, eVision.EFrame frame, float zoomX)
 Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.
eVision.EEditionMode AddVertexAtDisplayPosition (self, int x, int y, eVision.EFrame frame)
 Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.
eVision.EEditionMode AddVertexAtDisplayPosition (self, int x, int y, float zoomX, float zoomY, float panX, float panY)
 Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.
eVision.EEditionMode AddVertexAtDisplayPosition (self, int x, int y, float zoomX, float zoomY, float panX)
 Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.
eVision.EEditionMode AddVertexAtDisplayPosition (self, int x, int y, float zoomX, float zoomY)
 Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.
eVision.EEditionMode AddVertexAtDisplayPosition (self, int x, int y, float zoomX)
 Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.
eVision.EEditionMode AddVertexAtDisplayPosition (self, int x, int y)
 Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.
None RemoveVertexAtDisplayPosition (self, int x, int y, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Removes the vertex at the given position or the vertex hit during the last call to eVision.EShape.HitTest.
None RemoveVertexAtDisplayPosition (self, int x, int y, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Removes the vertex at the given position or the vertex hit during the last call to eVision.EShape.HitTest.
None RemoveVertexAtDisplayPosition (self, int x, int y, eVision.EFrame frame, float zoomX, float zoomY)
 Removes the vertex at the given position or the vertex hit during the last call to eVision.EShape.HitTest.
None RemoveVertexAtDisplayPosition (self, int x, int y, eVision.EFrame frame, float zoomX)
 Removes the vertex at the given position or the vertex hit during the last call to eVision.EShape.HitTest.
None RemoveVertexAtDisplayPosition (self, int x, int y, eVision.EFrame frame)
 Removes the vertex at the given position or the vertex hit during the last call to eVision.EShape.HitTest.
None RemoveVertexAtDisplayPosition (self, int x, int y, float zoomX, float zoomY, float panX, float panY)
 Removes the vertex at the given position or the vertex hit during the last call to eVision.EShape.HitTest.
None RemoveVertexAtDisplayPosition (self, int x, int y, float zoomX, float zoomY, float panX)
 Removes the vertex at the given position or the vertex hit during the last call to eVision.EShape.HitTest.
None RemoveVertexAtDisplayPosition (self, int x, int y, float zoomX, float zoomY)
 Removes the vertex at the given position or the vertex hit during the last call to eVision.EShape.HitTest.
None RemoveVertexAtDisplayPosition (self, int x, int y, float zoomX)
 Removes the vertex at the given position or the vertex hit during the last call to eVision.EShape.HitTest.
None RemoveVertexAtDisplayPosition (self, int x, int y)
 Removes the vertex at the given position or the vertex hit during the last call to eVision.EShape.HitTest.
None RemoveVertexAtDisplayPosition (self)
 Removes the vertex at the given position or the vertex hit during the last call to eVision.EShape.HitTest.
bool IsClosed (self)
 The polygon close attribute.
 IsClosed (self, bool value)
 The polygon close attribute.
int NumVertices (self)
 Returns the number of polygon's vertices.
int NumEdges (self)
 Returns the number of polygon's edges (or sides).
list[eVision._eVision.EPoint] Vertices (self)
 Returns the list of polygon vertices.
float Length (self)
 Returns the length (perimeter) of the polygon.
float Area (self)
 Returns the area of the polygon.
eVision.EPoint Center (self)
 The center of the polygon (average position of all the vertices).
eVision.EEditionMode AvailableEditionModes (self)
 Available edition modes for the shape.
str Description (self)
 Textual description of the shape and its parameters.
Public Member Functions inherited from eVision.EShape
None Load (self, str path)
 Load the eVision.EShape configuration.
None Load (self, eVision.ESerializer|None serializer)
 Load the eVision.EShape configuration.
None Save (self, str path)
 Save the eVision.EShape configuration.
None Save (self, eVision.ESerializer|None serializer)
 Save the eVision.EShape configuration.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals)
 Draws the eVision.EShape shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, float zoomX, float zoomY, float panX, float panY)
 Draws the eVision.EShape shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, float zoomX, float zoomY, float panX)
 Draws the eVision.EShape shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, float zoomX, float zoomY)
 Draws the eVision.EShape shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, float zoomX)
 Draws the eVision.EShape shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter)
 Draws the eVision.EShape shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY, bool drawDiagonals)
 Draws the eVision.EShape shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX, float zoomY, float panX, float panY)
 Draws the eVision.EShape shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX, float zoomY, float panX)
 Draws the eVision.EShape shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX, float zoomY)
 Draws the eVision.EShape shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame, float zoomX)
 Draws the eVision.EShape shape.
None Draw (self, eVision.EDrawAdapter|None drawAdapter, eVision.EFrame frame)
 Draws the eVision.EShape shape.
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, 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.
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.
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.
eVision.EFrame ToFrame (self, bool useAngle, eVision.EFrameScaling frameScaling)
 Converts the shape to a frame.
eVision.EFrame ToFrame (self, bool useAngle, eVision.EFrameScaling frameScaling, eVision.EFrame shapeFrame)
 Converts the shape to a frame.
eVision.EEditionMode EditionMode (self)
 Current edition mode for the shape.
 EditionMode (self, eVision.EEditionMode value)
 Current edition mode for the shape.

Detailed Description

Represents a polygon.

The number of vertices is arbitrary. A eVision.EPolygon could be closed (last and first point connected) or open (like a polyline shape).

Remarks:

License(s): BasicTypes

Constructor & Destructor Documentation

◆ __init__() [1/4]

None eVision.EPolygon.__init__ ( self)

Constructs a eVision.EPolygon.

◆ __init__() [2/4]

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

Constructs a eVision.EPolygon.

Parameters
otherReference to the eVision.EPolygon used for the initialization.

◆ __init__() [3/4]

None eVision.EPolygon.__init__ ( self,
list[eVision._eVision.EPoint] vertices,
bool closed )

Constructs a eVision.EPolygon.

Parameters
verticesA vector of at least 3 points.
closedAn optional parameter to set the closed properties. When closed, an edge exists between the last and first points of the polygon. By default, created polygons are closed.

◆ __init__() [4/4]

None eVision.EPolygon.__init__ ( self,
list[eVision._eVision.EPoint] vertices )

Constructs a eVision.EPolygon.

Parameters
verticesA vector of at least 3 points.

Member Function Documentation

◆ AddVertexAtDisplayPosition() [1/10]

eVision.EEditionMode eVision.EPolygon.AddVertexAtDisplayPosition ( self,
int x,
int y )

Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.

Returns EEditionMode.Stretch for the new vertex.

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

◆ AddVertexAtDisplayPosition() [2/10]

eVision.EEditionMode eVision.EPolygon.AddVertexAtDisplayPosition ( self,
int x,
int y,
eVision.EFrame frame )

Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.

Returns EEditionMode.Stretch for the new vertex.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame of reference in which the shape is defined.

◆ AddVertexAtDisplayPosition() [3/10]

eVision.EEditionMode eVision.EPolygon.AddVertexAtDisplayPosition ( self,
int x,
int y,
eVision.EFrame frame,
float zoomX )

Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.

Returns EEditionMode.Stretch for the new vertex.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame of reference in which the shape is defined.
zoomXHorizontal zoom factor. By default, true scale is used.

◆ AddVertexAtDisplayPosition() [4/10]

eVision.EEditionMode eVision.EPolygon.AddVertexAtDisplayPosition ( self,
int x,
int y,
eVision.EFrame frame,
float zoomX,
float zoomY )

Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.

Returns EEditionMode.Stretch for the new vertex.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame of reference in which the shape is defined.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.

◆ AddVertexAtDisplayPosition() [5/10]

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

Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.

Returns EEditionMode.Stretch for the new vertex.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame of reference in which the shape is defined.
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.

◆ AddVertexAtDisplayPosition() [6/10]

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

Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.

Returns EEditionMode.Stretch for the new vertex.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame of reference in which the shape is defined.
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.

◆ AddVertexAtDisplayPosition() [7/10]

eVision.EEditionMode eVision.EPolygon.AddVertexAtDisplayPosition ( self,
int x,
int y,
float zoomX )

Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.

Returns EEditionMode.Stretch for the new vertex.

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

◆ AddVertexAtDisplayPosition() [8/10]

eVision.EEditionMode eVision.EPolygon.AddVertexAtDisplayPosition ( self,
int x,
int y,
float zoomX,
float zoomY )

Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.

Returns EEditionMode.Stretch for the new vertex.

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

◆ AddVertexAtDisplayPosition() [9/10]

eVision.EEditionMode eVision.EPolygon.AddVertexAtDisplayPosition ( self,
int x,
int y,
float zoomX,
float zoomY,
float panX )

Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.

Returns EEditionMode.Stretch for the new vertex.

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

◆ AddVertexAtDisplayPosition() [10/10]

eVision.EEditionMode eVision.EPolygon.AddVertexAtDisplayPosition ( self,
int x,
int y,
float zoomX,
float zoomY,
float panX,
float panY )

Adds a vertex at the given mouse position such that the new vertex splits the edge that it is the closest to.

Returns EEditionMode.Stretch for the new vertex.

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

◆ AppendVertex()

None eVision.EPolygon.AppendVertex ( self,
eVision.EPoint pt )

Appends a polygon vertex after the last.

Parameters
ptThe point to append.

◆ Area()

float eVision.EPolygon.Area ( self)

Returns the area of the polygon.

◆ AvailableEditionModes()

eVision.EEditionMode eVision.EPolygon.AvailableEditionModes ( self)

Available edition modes for the shape.

Reimplemented from eVision.EShape.

◆ Center()

eVision.EPoint eVision.EPolygon.Center ( self)

The center of the polygon (average position of all the vertices).

◆ CopyTo()

None eVision.EPolygon.CopyTo ( self,
eVision.EPolygon other )

Copies the content of this object to the other one.

Parameters
otherOther eVision.EPolygon object in which to copy the content of this object.

◆ Description()

str eVision.EPolygon.Description ( self)

Textual description of the shape and its parameters.

Reimplemented from eVision.EShape.

◆ GetEdge()

eVision.ELine eVision.EPolygon.GetEdge ( self,
int index )

Edge of the polygon as a eVision.ELine object.

Parameters
indexIndex of the edge between 0 and eVision.EPolygon.NumEdges - 1.

◆ GetEdgeAngle()

float eVision.EPolygon.GetEdgeAngle ( self,
int index )

Angle of the edge with respect to the X-axis.

Parameters
indexIndex of the edge between 0 and eVision.EPolygon.NumEdges - 1.

◆ GetEdgeLength()

float eVision.EPolygon.GetEdgeLength ( self,
int index )

Length of an edge.

Parameters
indexIndex of the edge between 0 and eVision.EPolygon.NumEdges - 1.

◆ GetVertex()

eVision.EPoint eVision.EPolygon.GetVertex ( self,
int index )

Gets a polygon vertex.

Parameters
indexThe index of the vertex.

◆ InsertVertex()

None eVision.EPolygon.InsertVertex ( self,
int index,
eVision.EPoint pt )

Inserts a vertex before the given index.

Parameters
indexThe index after which the vertex will be inserted.
ptThe point to insert.

◆ IsClosed() [1/2]

bool eVision.EPolygon.IsClosed ( self)

The polygon close attribute.

◆ IsClosed() [2/2]

eVision.EPolygon.IsClosed ( self,
bool value )

The polygon close attribute.

◆ IsValid()

bool eVision.EPolygon.IsValid ( self)

Returns true if the polygon is valid.

A valid polygon has at least 2 (when open) or 3 (when closed) distinct and valid vertices and no duplicate points.

◆ Length()

float eVision.EPolygon.Length ( self)

Returns the length (perimeter) of the polygon.

◆ NumEdges()

int eVision.EPolygon.NumEdges ( self)

Returns the number of polygon's edges (or sides).

Depends on the eVision.EPolygon.IsClosed status.

◆ NumVertices()

int eVision.EPolygon.NumVertices ( self)

Returns the number of polygon's vertices.

◆ RemoveVertex()

None eVision.EPolygon.RemoveVertex ( self,
int index )

Removes vertex at the given index.

Parameters
indexThe index of the vertex to remove.

◆ RemoveVertexAtDisplayPosition() [1/11]

None eVision.EPolygon.RemoveVertexAtDisplayPosition ( self)

Removes the vertex at the given position or the vertex hit during the last call to eVision.EShape.HitTest.

◆ RemoveVertexAtDisplayPosition() [2/11]

None eVision.EPolygon.RemoveVertexAtDisplayPosition ( self,
int x,
int y )

Removes the vertex at the given position or the vertex hit during the last call to eVision.EShape.HitTest.

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

◆ RemoveVertexAtDisplayPosition() [3/11]

None eVision.EPolygon.RemoveVertexAtDisplayPosition ( self,
int x,
int y,
eVision.EFrame frame )

Removes the vertex at the given position or the vertex hit during the last call to eVision.EShape.HitTest.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame of reference in which the shape is defined.

◆ RemoveVertexAtDisplayPosition() [4/11]

None eVision.EPolygon.RemoveVertexAtDisplayPosition ( self,
int x,
int y,
eVision.EFrame frame,
float zoomX )

Removes the vertex at the given position or the vertex hit during the last call to eVision.EShape.HitTest.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame of reference in which the shape is defined.
zoomXHorizontal zoom factor. By default, true scale is used.

◆ RemoveVertexAtDisplayPosition() [5/11]

None eVision.EPolygon.RemoveVertexAtDisplayPosition ( self,
int x,
int y,
eVision.EFrame frame,
float zoomX,
float zoomY )

Removes the vertex at the given position or the vertex hit during the last call to eVision.EShape.HitTest.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame of reference in which the shape is defined.
zoomXHorizontal zoom factor. By default, true scale is used.
zoomYVertical zoom factor. By default, true scale is used.

◆ RemoveVertexAtDisplayPosition() [6/11]

None eVision.EPolygon.RemoveVertexAtDisplayPosition ( self,
int x,
int y,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX )

Removes the vertex at the given position or the vertex hit during the last call to eVision.EShape.HitTest.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame of reference in which the shape is defined.
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.

◆ RemoveVertexAtDisplayPosition() [7/11]

None eVision.EPolygon.RemoveVertexAtDisplayPosition ( self,
int x,
int y,
eVision.EFrame frame,
float zoomX,
float zoomY,
float panX,
float panY )

Removes the vertex at the given position or the vertex hit during the last call to eVision.EShape.HitTest.

Parameters
xx-coordinate of the mouse cursor.
yy-coordinate of the mouse cursor.
frameFrame of reference in which the shape is defined.
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.

◆ RemoveVertexAtDisplayPosition() [8/11]

None eVision.EPolygon.RemoveVertexAtDisplayPosition ( self,
int x,
int y,
float zoomX )

Removes the vertex at the given position or the vertex hit during the last call to eVision.EShape.HitTest.

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

◆ RemoveVertexAtDisplayPosition() [9/11]

None eVision.EPolygon.RemoveVertexAtDisplayPosition ( self,
int x,
int y,
float zoomX,
float zoomY )

Removes the vertex at the given position or the vertex hit during the last call to eVision.EShape.HitTest.

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.

◆ RemoveVertexAtDisplayPosition() [10/11]

None eVision.EPolygon.RemoveVertexAtDisplayPosition ( self,
int x,
int y,
float zoomX,
float zoomY,
float panX )

Removes the vertex at the given position or the vertex hit during the last call to eVision.EShape.HitTest.

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.

◆ RemoveVertexAtDisplayPosition() [11/11]

None eVision.EPolygon.RemoveVertexAtDisplayPosition ( self,
int x,
int y,
float zoomX,
float zoomY,
float panX,
float panY )

Removes the vertex at the given position or the vertex hit during the last call to eVision.EShape.HitTest.

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.

◆ SetVertex()

None eVision.EPolygon.SetVertex ( self,
int index,
eVision.EPoint pt )

Sets a polygon vertex.

Parameters
indexThe index of the vertex.
ptThe vertex position.

◆ Vertices()

list[eVision._eVision.EPoint] eVision.EPolygon.Vertices ( self)

Returns the list of polygon vertices.