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.
wx.lib.floatcanvas.FCObjects.ColorOnlyMixin
, wx.lib.floatcanvas.FCObjects.DrawObject
, wx.lib.floatcanvas.FCObjects.XYObjectMixin
Default class constructor. |
|
Sets the size |
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.
__init__
(self, Point, Color="Black", Size=4, InForeground=False)¶Default class constructor.
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
Size (integer) – the size of the square point