A PolygonShape’s shape is defined by a number of points passed to the object’s constructor. It can be used to create new shapes such as diamonds and triangles.
__init__ | |
AddPolygonPoint | Add a control point after the given point. |
AttachmentIsValid | |
CalculateBoundingBox | |
CalculatePolygonCentre | Recalculates the centre of the polygon, and |
ClearPoints | |
Create | Takes a list of wx.RealPoints or tuples; each point is an offset |
DeletePolygonPoint | Delete the given control point. |
GetAttachmentPosition | |
GetBoundingBoxMin | |
GetNumberOfAttachments | |
GetOriginalHeight | |
GetOriginalPoints | |
GetOriginalWidth | |
GetPerimeterPoint | |
GetPoints | Return the internal list of polygon vertices. |
HitTest | |
MakeControlPoints | |
OnDraw | |
OnDrawOutline | |
OnSizingBeginDragLeft | |
OnSizingDragLeft | |
OnSizingEndDragLeft | |
ResetControlPoints | |
Rotate | |
SetOriginalHeight | |
SetOriginalWidth | |
SetSize | |
UpdateOriginalPoints | If we’ve changed the shape, must make the original points match the |
A PolygonShape’s shape is defined by a number of points passed to the object’s constructor. It can be used to create new shapes such as diamonds and triangles.
Add a control point after the given point.
Recalculates the centre of the polygon, and readjusts the point offsets accordingly. Necessary since the centre of the polygon is expected to be the real centre of the bounding box.
Takes a list of wx.RealPoints or tuples; each point is an offset from the centre.
Delete the given control point.
Return the internal list of polygon vertices.
If we’ve changed the shape, must make the original points match the working points with this function.