Draws a polygon
Points is a list of 2-tuples, or a NX2 NumPy array of point coordinates. so that Points[N][0] is the x-coordinate of point N and Points[N][1] is the y-coordinate or Points[N,0] is the x-coordinate of point N and Points[N,1] is the y-coordinate for arrays.
wx.lib.floatcanvas.FCObjects.DrawObject
, wx.lib.floatcanvas.FCObjects.LineAndFillMixin
, wx.lib.floatcanvas.FCObjects.PointsObjectMixin
Default class constructor. |
Polygon
(PointsObjectMixin, LineAndFillMixin, DrawObject)¶Draws a polygon
Points is a list of 2-tuples, or a NX2 NumPy array of point coordinates. so that Points[N][0] is the x-coordinate of point N and Points[N][1] is the y-coordinate or Points[N,0] is the x-coordinate of point N and Points[N,1] is the y-coordinate for arrays.
__init__
(self, Points, LineColor = "Black", LineStyle = "Solid", LineWidth = 1, FillColor = None, FillStyle = "Solid", InForeground = False)¶Default class constructor.
Points – start point, takes a 2-tuple, or a (2,) NumPy array of point coordinates
LineColor – see SetColor
LineStyle – see SetLineStyle
LineWidth – see SetLineWidth
FillColor – see SetColor
FillStyle – see SetFillStyle
InForeground (boolean) – should object be in foreground