Represents a polygon. More...


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. | |
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
| None eVision.EPolygon.__init__ | ( | self | ) |
Constructs a eVision.EPolygon.
| None eVision.EPolygon.__init__ | ( | self, | |
| eVision.EPolygon | other ) |
Constructs a eVision.EPolygon.
| other | Reference to the eVision.EPolygon used for the initialization. |
| None eVision.EPolygon.__init__ | ( | self, | |
| list[eVision._eVision.EPoint] | vertices, | ||
| bool | closed ) |
Constructs a eVision.EPolygon.
| vertices | A vector of at least 3 points. |
| closed | An 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. |
| None eVision.EPolygon.__init__ | ( | self, | |
| list[eVision._eVision.EPoint] | vertices ) |
Constructs a eVision.EPolygon.
| vertices | A vector of at least 3 points. |
| 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.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| 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.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| frame | Frame of reference in which the shape is defined. |
| 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.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| frame | Frame of reference in which the shape is defined. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| 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.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| frame | Frame of reference in which the shape is defined. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| zoomY | Vertical zoom factor. By default, true scale is used. |
| 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.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| frame | Frame of reference in which the shape is defined. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| zoomY | Vertical zoom factor. By default, true scale is used. |
| panX | Horizontal pan offset. By default, no pan is added. |
| 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.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| frame | Frame of reference in which the shape is defined. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| zoomY | Vertical zoom factor. By default, true scale is used. |
| panX | Horizontal pan offset. By default, no pan is added. |
| panY | Vertical pan offset. By default, no pan is added. |
| 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.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| 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.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| zoomY | Vertical zoom factor. By default, true scale is used. |
| 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.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| zoomY | Vertical zoom factor. By default, true scale is used. |
| panX | Horizontal pan offset. By default, no pan is added. |
| 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.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| zoomY | Vertical zoom factor. By default, true scale is used. |
| panX | Horizontal pan offset. By default, no pan is added. |
| panY | Vertical pan offset. By default, no pan is added. |
| None eVision.EPolygon.AppendVertex | ( | self, | |
| eVision.EPoint | pt ) |
Appends a polygon vertex after the last.
| pt | The point to append. |
| float eVision.EPolygon.Area | ( | self | ) |
Returns the area of the polygon.
| eVision.EEditionMode eVision.EPolygon.AvailableEditionModes | ( | self | ) |
Available edition modes for the shape.
Reimplemented from eVision.EShape.
| eVision.EPoint eVision.EPolygon.Center | ( | self | ) |
The center of the polygon (average position of all the vertices).
| None eVision.EPolygon.CopyTo | ( | self, | |
| eVision.EPolygon | other ) |
Copies the content of this object to the other one.
| other | Other eVision.EPolygon object in which to copy the content of this object. |
| str eVision.EPolygon.Description | ( | self | ) |
Textual description of the shape and its parameters.
Reimplemented from eVision.EShape.
| eVision.ELine eVision.EPolygon.GetEdge | ( | self, | |
| int | index ) |
Edge of the polygon as a eVision.ELine object.
| index | Index of the edge between 0 and eVision.EPolygon.NumEdges - 1. |
| float eVision.EPolygon.GetEdgeAngle | ( | self, | |
| int | index ) |
Angle of the edge with respect to the X-axis.
| index | Index of the edge between 0 and eVision.EPolygon.NumEdges - 1. |
| float eVision.EPolygon.GetEdgeLength | ( | self, | |
| int | index ) |
Length of an edge.
| index | Index of the edge between 0 and eVision.EPolygon.NumEdges - 1. |
| eVision.EPoint eVision.EPolygon.GetVertex | ( | self, | |
| int | index ) |
Gets a polygon vertex.
| index | The index of the vertex. |
| None eVision.EPolygon.InsertVertex | ( | self, | |
| int | index, | ||
| eVision.EPoint | pt ) |
Inserts a vertex before the given index.
| index | The index after which the vertex will be inserted. |
| pt | The point to insert. |
| bool eVision.EPolygon.IsClosed | ( | self | ) |
The polygon close attribute.
| eVision.EPolygon.IsClosed | ( | self, | |
| bool | value ) |
The polygon close attribute.
| 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.
| float eVision.EPolygon.Length | ( | self | ) |
Returns the length (perimeter) of the polygon.
| int eVision.EPolygon.NumEdges | ( | self | ) |
Returns the number of polygon's edges (or sides).
Depends on the eVision.EPolygon.IsClosed status.
| int eVision.EPolygon.NumVertices | ( | self | ) |
Returns the number of polygon's vertices.
| None eVision.EPolygon.RemoveVertex | ( | self, | |
| int | index ) |
Removes vertex at the given index.
| index | The index of the vertex to remove. |
| None eVision.EPolygon.RemoveVertexAtDisplayPosition | ( | self | ) |
Removes the vertex at the given position or the vertex hit during the last call to eVision.EShape.HitTest.
| 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.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| 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.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| frame | Frame of reference in which the shape is defined. |
| 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.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| frame | Frame of reference in which the shape is defined. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| 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.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| frame | Frame of reference in which the shape is defined. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| zoomY | Vertical zoom factor. By default, true scale is used. |
| 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.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| frame | Frame of reference in which the shape is defined. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| zoomY | Vertical zoom factor. By default, true scale is used. |
| panX | Horizontal pan offset. By default, no pan is added. |
| 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.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| frame | Frame of reference in which the shape is defined. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| zoomY | Vertical zoom factor. By default, true scale is used. |
| panX | Horizontal pan offset. By default, no pan is added. |
| panY | Vertical pan offset. By default, no pan is added. |
| 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.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| 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.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| zoomY | Vertical zoom factor. By default, true scale is used. |
| 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.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| zoomY | Vertical zoom factor. By default, true scale is used. |
| panX | Horizontal pan offset. By default, no pan is added. |
| 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.
| x | x-coordinate of the mouse cursor. |
| y | y-coordinate of the mouse cursor. |
| zoomX | Horizontal zoom factor. By default, true scale is used. |
| zoomY | Vertical zoom factor. By default, true scale is used. |
| panX | Horizontal pan offset. By default, no pan is added. |
| panY | Vertical pan offset. By default, no pan is added. |
| None eVision.EPolygon.SetVertex | ( | self, | |
| int | index, | ||
| eVision.EPoint | pt ) |
Sets a polygon vertex.
| index | The index of the vertex. |
| pt | The vertex position. |
| list[eVision._eVision.EPoint] eVision.EPolygon.Vertices | ( | self | ) |
Returns the list of polygon vertices.