The Polygon class takes a list of 2-tuples, or a NX2 NumPy array of
point coordinates. so that Points[N][0] is the x-coordinate of
point N and Points[N][1] is the y-coordinate or Points[N,0] is the
x-coordinate of point N and Points[N,1] is the y-coordinate for
arrays.
The other parameters specify various properties of the Polygon, and
should be self explanatory.
Method Summary |
|
__init__(self,
Points,
LineColor,
LineStyle,
LineWidth,
FillColor,
FillStyle,
InForeground)
|
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 PointsObjectMixin |
|
CalcBoundingBox (self)
|
|
SetPoints (self,
Points,
copy)
Sets the coordinates of the points of the object to Points (NX2 array). |
Inherited from LineAndFillMixin |
|
SetFillColor (self,
FillColor)
|
|
SetFillStyle (self,
FillStyle)
|
Inherited from LineOnlyMixin |
|
SetLineColor (self,
LineColor)
|
|
SetLineStyle (self,
LineStyle)
|
|
SetLineWidth (self,
LineWidth)
|