wxgraphicsmatrixa wxgraphicsmatrix is a native representation of an affine matrix. the contents are specific and private to the respective renderer. instances are ref counted and can therefore be assigned as usual. the only way to get a valid instance is via a creatematrix call on the graphics context or the renderer instance. derived from include files <wx/graphics.h> members
wxgraphicsmatrix::concat
wxgraphicsmatrix::concatvoid concat(const wxgraphicsmatrix* t) concatenates the matrix passed with the current matrix. void concat(const wxgraphicsmatrix& t)
wxgraphicsmatrix::getvoid get(wxdouble* a=null, wxdouble* b=null, wxdouble* c=null, wxdouble* d=null, wxdouble* tx=null, wxdouble* ty=null) const returns the component values of the matrix via the argument pointers.
wxgraphicsmatrix::getnativematrixvoid * getnativematrix() const 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.
wxgraphicsmatrix::invertvoid invert() inverts the matrix.
wxgraphicsmatrix::isequalbool isequal(const wxgraphicsmatrix& t) const returns true if the elements of the transformation matrix are equal.
wxgraphicsmatrix::isidentitybool isidentity() const return true if this is the identity matrix.
wxgraphicsmatrix::rotatevoid rotate(wxdouble angle) rotates this matrix (radians).
wxgraphicsmatrix::scalevoid scale(wxdouble xscale, wxdouble yscale) scales this matrix.
wxgraphicsmatrix::translatevoid translate(wxdouble dx, wxdouble dy) translates this matrix.
wxgraphicsmatrix::setvoid set(wxdouble a = 1.0, wxdouble b = 0.0, wxdouble c = 0.0, wxdouble d = 1.0, wxdouble tx = 0.0, wxdouble ty = 0.0) sets the matrix to the respective values (default values are the identity matrix)
wxgraphicsmatrix::transformpointvoid transformpoint(wxdouble* x, wxdouble* y) const applies this matrix to a point.
wxgraphicsmatrix::transformdistancevoid transformdistance(wxdouble* dx, wxdouble* dy) const applies this matrix to a distance (ie. performs all transforms except translations)
|