Draws an arrow line.
It will draw a set of arrows from point to point.
It takes a list of 2-tuples, or a NX2 NumPy Float array of point coordinates.
wx.lib.floatcanvas.FCObjects.DrawObject
, wx.lib.floatcanvas.FCObjects.LineOnlyMixin
, wx.lib.floatcanvas.FCObjects.PointsObjectMixin
Default class constructor. |
|
Calculate the arrow points. |
ArrowLine
(PointsObjectMixin, LineOnlyMixin, DrawObject)¶Draws an arrow line.
It will draw a set of arrows from point to point.
It takes a list of 2-tuples, or a NX2 NumPy Float array of point coordinates.
__init__
(self, Points, LineColor = "Black", LineStyle = "Solid", LineWidth = 1, ArrowHeadSize = 8, ArrowHeadAngle = 30, InForeground = False)¶Default class constructor.
Points – takes a 2-tuple, or a (2,) NumPy array of point coordinates
LineColor – see SetColor
LineStyle – see SetLineStyle
LineWidth – see SetLineWidth
ArrowHeadSize – size of arrow head in pixels
ArrowHeadAngle – angle of arrow head in degrees
InForeground (boolean) – should object be in foreground
CalcArrowPoints
(self)¶Calculate the arrow points.