| Home | Trees | Index | Help |
|
|---|
| Package wx :: Class GraphicsMatrix |
|
object--+ |Object--+ |GraphicsObject--+ | GraphicsMatrix
A wx.GraphicsMatrix is a native representation of an affine matrix. The contents are specific and private to the respective renderer. The only way to get a valid instance is via a CreateMatrix call on the graphics context or the renderer instance.
| Method Summary | |
|---|---|
__init__(self)
| |
__del__(self)
| |
Concatenates the passed in matrix to the current matrix. | |
Get(self) --> (a, b, c, d, tx, ty) | |
| void |
Returns the native representation of the matrix. |
Inverts the matrix. | |
| bool |
Returns True if the elements of the transformation matrix are equal |
| bool |
Returns True if this is the identity matrix |
Rotates this matrix. | |
Scales this matrix. | |
Sets the matrix to the specified values (default values are the identity matrix.) | |
TransformDistance(self, dx, dy) --> (dx, dy) | |
TransformPoint(self, x, y) --> (x, y) | |
Add a translation to this matrix. | |
| Property Summary | |
|---|---|
thisown: The membership flag | |
| Method Details |
|---|
Concat(self, t)Concatenates the passed in matrix to the current matrix.
|
Get(*args, **kwargs)Get(self) --> (a, b, c, d, tx, ty) Gets the component values of the matrix and returns them as a tuple. |
GetNativeMatrix(self)Returns the native representation of the matrix. For CoreGraphics this is a CFAffineMatrix pointer. For GDIPlus a Matrix Pointer and for Cairo a cairo_matrix_t pointer. NOTE: For wxPython we still need a way to make this value usable.
|
Invert(self)Inverts the matrix. |
IsEqual(self, t)Returns True if the elements of the transformation matrix are equal
|
IsIdentity(self)Returns True if this is the identity matrix
|
Rotate(self, angle)Rotates this matrix. The angle should be specified in radians.
|
Scale(self, xScale, yScale)Scales this matrix.
|
Set(self, a=1.0, b=0.0, c=0.0, d=1.0, tx=0.0, ty=0.0)Sets the matrix to the specified values (default values are the identity matrix.)
|
TransformDistance(*args, **kwargs)TransformDistance(self, dx, dy) --> (dx, dy) Applies this matrix to a distance (ie. performs all transforms except translations) |
TransformPoint(*args, **kwargs)TransformPoint(self, x, y) --> (x, y) Applies this matrix to a point, returns the resulting point values |
Translate(self, dx, dy)Add a translation to this matrix.
|
| Property Details |
|---|
thisownThe membership flag |
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1.20050511.rpd on Thu Mar 22 12:08:14 2007 | http://epydoc.sf.net |