phoenix_title wx.lib.floatcanvas.FCObjects.ArrowLine

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.


class_hierarchy Class Hierarchy

Inheritance diagram for class ArrowLine:

super_classes Known Superclasses

wx.lib.floatcanvas.FCObjects.DrawObject, wx.lib.floatcanvas.FCObjects.LineOnlyMixin, wx.lib.floatcanvas.FCObjects.PointsObjectMixin


method_summary Methods Summary

__init__

Default class constructor.

CalcArrowPoints

Calculate the arrow points.


api Class API

class 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.


Methods

__init__(self, Points, LineColor = "Black", LineStyle = "Solid", LineWidth = 1, ArrowHeadSize = 8, ArrowHeadAngle = 30, InForeground = False)

Default class constructor.

Parameters:
  • 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.