Phoenix Logo

phoenix_title wx.lib.floatcanvas.FCObjects.SquarePoint

Draws a square point

The Size is in screen points, not world coordinates, so the Bounding box is just the point, and doesn’t include the Size.

The HitLineWidth is used as diameter for the Hit Test.


class_hierarchy Class Hierarchy

Inheritance diagram for class SquarePoint:

method_summary Methods Summary

__init__ Default class constructor.
SetSize Sets the size

api Class API



class SquarePoint(XYObjectMixin, ColorOnlyMixin, DrawObject)

Draws a square point

The Size is in screen points, not world coordinates, so the Bounding box is just the point, and doesn’t include the Size.

The HitLineWidth is used as diameter for the Hit Test.


Methods



__init__(self, Point, Color="Black", Size=4, InForeground=False)

Default class constructor.

Parameters:
  • Point – takes a 2-tuple, or a (2,) NumPy array of point coordinates
  • Color – see SetColor
  • Size (integer) – the size of the square point
  • InForeground (boolean) – should object be in foreground


SetSize(self, Size)

Sets the size

Parameters:Size (integer) – the size of the square point