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. | |
| 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. | |
| list[eVision._eVision.EFrame] | CreateFramesOnShape (self, int numFrames, float startOffset, float stopOffset, eVision.EFramesOrientation orientation) |
| Distributes eVision.EFrames evenly along this shape's path or perimeter. | |
| list[eVision._eVision.EFrame] | CreateFramesOnShape (self, int numFrames, float startOffset, float stopOffset) |
| Distributes eVision.EFrames evenly along this shape's path or perimeter. | |
| list[eVision._eVision.EFrame] | CreateFramesOnShape (self, int numFrames, float startOffset) |
| Distributes eVision.EFrames evenly along this shape's path or perimeter. | |
| list[eVision._eVision.EFrame] | CreateFramesOnShape (self, int numFrames) |
| Distributes eVision.EFrames evenly along this shape's path or perimeter. | |
Properties | |
| IsClosed = property(_IsClosed__getter, _IsClosed__setter) | |
| The polygon close attribute. | |
| NumVertices = property(_NumVertices__getter, None) | |
| Returns the number of polygon's vertices. | |
| NumEdges = property(_NumEdges__getter, None) | |
| Returns the number of polygon's edges (or sides). | |
| Vertices = property(_Vertices__getter, None) | |
| Returns the list of polygon vertices. | |
| Length = property(_Length__getter, None) | |
| Returns the length (perimeter) of the polygon. | |
| Area = property(_Area__getter, None) | |
| Returns the area of the polygon. | |
| Center = property(_Center__getter, None) | |
| The center of the polygon (average position of all the vertices). | |
| AvailableEditionModes = property(_AvailableEditionModes__getter, None) | |
| Available edition modes for the shape. | |
| Description = property(_Description__getter, None) | |
| Textual description of the shape and its parameters. | |
| Properties inherited from eVision.EShape | |
| EditionMode = property(_EditionMode__getter, _EditionMode__setter) | |
| Current edition mode for the shape. | |
| AvailableEditionModes = property(_AvailableEditionModes__getter, None) | |
| Available edition modes for the shape. | |
| Description = property(_Description__getter, None) | |
| Textual description of the shape and its parameters. | |
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. |
| 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. |
| 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.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.
| 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. |
|
static |
Returns the area of the polygon.
|
static |
Available edition modes for the shape.
|
static |
The center of the polygon (average position of all the vertices).
|
static |
Textual description of the shape and its parameters.
|
static |
The polygon close attribute.
|
static |
Returns the length (perimeter) of the polygon.
|
static |
Returns the number of polygon's edges (or sides).
Depends on the eVision.EPolygon.IsClosed status.
|
static |
Returns the number of polygon's vertices.
|
static |
Returns the list of polygon vertices.