Home | Trees | Index | Help |
|
---|
Package wx :: Package lib :: Package floatcanvas :: Module FloatCanvas :: Class PointsObjectMixin |
|
Line
,
PointSet
,
Polygon
Method Summary | |
---|---|
CalcBoundingBox(self)
| |
Sets the coordinates of the points of the object to Points (NX2 array). |
Method Details |
---|
SetPoints(self, Points, copy=True)Sets the coordinates of the points of the object to Points (NX2 array). By default, a copy is made, if copy is set to False, a reference is used, iff Points is a NumPy array of Floats. This allows you to change some or all of the points without making any copies. For example: Points = Object.Points Points += (5,10) # shifts the points 5 in the x dir, and 10 in the y dir. Object.SetPoints(Points, False) # Sets the points to the same array as it was |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20040428.rpd on Tue Apr 26 14:23:03 2005 | http://epydoc.sf.net |