]>
Commit | Line | Data |
---|---|---|
f43af7fe SC |
1 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
2 | %% Name: graphicsmatrix.tex | |
3 | %% Purpose: wxGraphicsMatrix class documentation | |
4 | %% Author: Stefan Csomor | |
5 | %% Modified by: | |
6 | %% Created: 08.06.2004 | |
7 | %% RCS-ID: $Id$ | |
8 | %% Copyright: (c) Stefan Csomor | |
9 | %% License: wxWindows license | |
10 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
11 | ||
12 | \section{\class{wxGraphicsMatrix}}\label{wxgraphicsmatrix} | |
13 | ||
248802d0 | 14 | A 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. |
f43af7fe SC |
15 | |
16 | \wxheading{Derived from} | |
17 | ||
18 | \helpref{wxGraphicsObject}{wxgraphicsobject} | |
19 | ||
20 | \wxheading{Include files} | |
21 | ||
22 | <wx/graphics.h> | |
23 | ||
a7af285d VZ |
24 | \wxheading{Library} |
25 | ||
26 | \helpref{wxCore}{librarieslist} | |
27 | ||
f43af7fe SC |
28 | \latexignore{\rtfignore{\wxheading{Members}}} |
29 | ||
30 | \membersection{wxGraphicsMatrix::Concat}\label{wxgraphicsmatrixconcat} | |
31 | ||
32 | \func{void}{Concat}{\param{const wxGraphicsMatrix* }{t}} | |
33 | ||
34 | Concatenates the matrix passed with the current matrix. | |
35 | ||
36 | \func{void}{Concat}{\param{const wxGraphicsMatrix\& }{t}} | |
37 | ||
38 | ||
248802d0 RD |
39 | \membersection{wxGraphicsMatrix::Get}\label{wxgraphicsmatrixget} |
40 | ||
41 | \constfunc{void }{Get}{\param{wxDouble* }{a=NULL}, | |
42 | \param{wxDouble* }{b=NULL}, | |
43 | \param{wxDouble* }{c=NULL}, | |
44 | \param{wxDouble* }{d=NULL}, | |
45 | \param{wxDouble* }{tx=NULL}, | |
46 | \param{wxDouble* }{ty=NULL}} | |
47 | ||
48 | Returns the component values of the matrix via the argument pointers. | |
49 | ||
f43af7fe SC |
50 | \membersection{wxGraphicsMatrix::GetNativeMatrix}\label{wxgraphicsmatrixgetnativematrix} |
51 | ||
52 | \constfunc{void *}{GetNativeMatrix}{\void} | |
53 | ||
54 | 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. | |
55 | ||
56 | \membersection{wxGraphicsMatrix::Invert}\label{wxgraphicsmatrixinvert} | |
57 | ||
58 | \func{void}{Invert}{\void} | |
59 | ||
60 | Inverts the matrix. | |
61 | ||
62 | \membersection{wxGraphicsMatrix::IsEqual}\label{wxgraphicsmatrixisequal} | |
63 | ||
64 | \constfunc{bool}{IsEqual}{\param{const wxGraphicsMatrix\& }{t}} | |
65 | ||
66 | Returns true if the elements of the transformation matrix are equal. | |
67 | ||
68 | \membersection{wxGraphicsMatrix::IsIdentity}\label{wxgraphicsmatrixisidentity} | |
69 | ||
70 | \constfunc{bool}{IsIdentity}{\void} | |
71 | ||
72 | Return true if this is the identity matrix. | |
73 | ||
74 | \membersection{wxGraphicsMatrix::Rotate}\label{wxgraphicsmatrixrotate} | |
75 | ||
76 | \func{void}{Rotate}{\param{wxDouble }{angle}} | |
77 | ||
78 | Rotates this matrix (radians). | |
79 | ||
80 | \membersection{wxGraphicsMatrix::Scale}\label{wxgraphicsmatrixscale} | |
81 | ||
82 | \func{void}{Scale}{\param{wxDouble }{xScale}, \param{wxDouble }{yScale}} | |
83 | ||
84 | Scales this matrix. | |
85 | ||
86 | \membersection{wxGraphicsMatrix::Translate}\label{wxgraphicsmatrixtranslate} | |
87 | ||
88 | \func{void}{Translate}{\param{wxDouble }{dx}, \param{wxDouble }{dy}} | |
89 | ||
90 | Translates this matrix. | |
91 | ||
92 | \membersection{wxGraphicsMatrix::Set}\label{wxgraphicsmatrixset} | |
93 | ||
94 | \func{void}{Set}{\param{wxDouble }{a = 1.0}, \param{wxDouble }{b = 0.0}, \param{wxDouble }{c = 0.0}, \param{wxDouble }{d = 1.0}, \param{wxDouble }{tx = 0.0}, \param{wxDouble }{ty = 0.0}} | |
95 | ||
96 | Sets the matrix to the respective values (default values are the identity matrix) | |
97 | ||
98 | \membersection{wxGraphicsMatrix::TransformPoint}\label{wxgraphicsmatrixtransformpoint} | |
99 | ||
100 | \constfunc{void}{TransformPoint}{\param{wxDouble* }{x}, \param{wxDouble* }{y}} | |
101 | ||
102 | Applies this matrix to a point. | |
103 | ||
104 | \membersection{wxGraphicsMatrix::TransformDistance}\label{wxgraphicsmatrixtransformdistance} | |
105 | ||
106 | \constfunc{void}{TransformDistance}{\param{wxDouble* }{dx}, \param{wxDouble* }{dy}} | |
107 | ||
108 | Applies this matrix to a distance (ie. performs all transforms except translations) | |
109 | ||
110 | ||
111 |