The SquarePoint class takes a 2-tuple, or a (2,) NumPy array of point
coordinates. It produces a square dot, centered on 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.
Method Summary |
|
__init__(self,
Point,
Color,
Size,
InForeground)
|
|
SetSize(self,
Size)
|
Inherited from DrawObject |
|
Bind (self,
Event,
CallBackFun)
|
|
Hide (self)
|
|
PutInBackground (self)
|
|
PutInForeground (self)
|
|
SetBrush (self,
FillColor,
FillStyle)
|
|
SetHitBrush (self,
HitColor)
|
|
SetHitPen (self,
HitColor,
LineWidth)
|
|
SetPen (self,
LineColor,
LineStyle,
LineWidth)
|
|
Show (self)
|
|
UnBindAll (self)
|
Inherited from XYObjectMixin |
|
CalcBoundingBox (self)
|
|
Move (self,
Delta)
Move(Delta): moves the object by delta, where delta is a
(dx,dy) pair. |
|
SetPoint (self,
xy)
|
Inherited from ColorOnlyMixin |
|
SetColor (self,
Color)
|
|
SetFillColor (self,
Color)
|