The Line class takes a list of 2-tuples, or a NX2 NumPy Float array
of point coordinates.
It will draw a straight line if there are two points, and a polyline
if there are more than two.
Method Summary |
|
__init__(self,
Points,
LineColor,
LineStyle,
LineWidth,
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 LineOnlyMixin |
|
SetLineColor (self,
LineColor)
|
|
SetLineStyle (self,
LineStyle)
|
|
SetLineWidth (self,
LineWidth)
|