]> git.saurik.com Git - wxWidgets.git/blob - docs/latex/wx/graphicsmatrix.tex
better documentation for wxWindow::SetSizerAndFit()
[wxWidgets.git] / docs / latex / wx / graphicsmatrix.tex
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
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.
15
16 \wxheading{Derived from}
17
18 \helpref{wxGraphicsObject}{wxgraphicsobject}\\
19 \helpref{wxObject}{wxobject}
20
21 \wxheading{Include files}
22
23 <wx/graphics.h>
24
25 \wxheading{Library}
26
27 \helpref{wxCore}{librarieslist}
28
29 \latexignore{\rtfignore{\wxheading{Members}}}
30
31 \membersection{wxGraphicsMatrix::Concat}\label{wxgraphicsmatrixconcat}
32
33 \func{void}{Concat}{\param{const wxGraphicsMatrix* }{t}}
34
35 Concatenates the matrix passed with the current matrix.
36
37 \func{void}{Concat}{\param{const wxGraphicsMatrix\& }{t}}
38
39
40 \membersection{wxGraphicsMatrix::Get}\label{wxgraphicsmatrixget}
41
42 \constfunc{void }{Get}{\param{wxDouble* }{a=NULL},
43 \param{wxDouble* }{b=NULL},
44 \param{wxDouble* }{c=NULL},
45 \param{wxDouble* }{d=NULL},
46 \param{wxDouble* }{tx=NULL},
47 \param{wxDouble* }{ty=NULL}}
48
49 Returns the component values of the matrix via the argument pointers.
50
51 \membersection{wxGraphicsMatrix::GetNativeMatrix}\label{wxgraphicsmatrixgetnativematrix}
52
53 \constfunc{void *}{GetNativeMatrix}{\void}
54
55 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.
56
57 \membersection{wxGraphicsMatrix::Invert}\label{wxgraphicsmatrixinvert}
58
59 \func{void}{Invert}{\void}
60
61 Inverts the matrix.
62
63 \membersection{wxGraphicsMatrix::IsEqual}\label{wxgraphicsmatrixisequal}
64
65 \constfunc{bool}{IsEqual}{\param{const wxGraphicsMatrix\& }{t}}
66
67 Returns true if the elements of the transformation matrix are equal.
68
69 \membersection{wxGraphicsMatrix::IsIdentity}\label{wxgraphicsmatrixisidentity}
70
71 \constfunc{bool}{IsIdentity}{\void}
72
73 Return true if this is the identity matrix.
74
75 \membersection{wxGraphicsMatrix::Rotate}\label{wxgraphicsmatrixrotate}
76
77 \func{void}{Rotate}{\param{wxDouble }{angle}}
78
79 Rotates this matrix (radians).
80
81 \membersection{wxGraphicsMatrix::Scale}\label{wxgraphicsmatrixscale}
82
83 \func{void}{Scale}{\param{wxDouble }{xScale}, \param{wxDouble }{yScale}}
84
85 Scales this matrix.
86
87 \membersection{wxGraphicsMatrix::Translate}\label{wxgraphicsmatrixtranslate}
88
89 \func{void}{Translate}{\param{wxDouble }{dx}, \param{wxDouble }{dy}}
90
91 Translates this matrix.
92
93 \membersection{wxGraphicsMatrix::Set}\label{wxgraphicsmatrixset}
94
95 \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}}
96
97 Sets the matrix to the respective values (default values are the identity matrix)
98
99 \membersection{wxGraphicsMatrix::TransformPoint}\label{wxgraphicsmatrixtransformpoint}
100
101 \constfunc{void}{TransformPoint}{\param{wxDouble* }{x}, \param{wxDouble* }{y}}
102
103 Applies this matrix to a point.
104
105 \membersection{wxGraphicsMatrix::TransformDistance}\label{wxgraphicsmatrixtransformdistance}
106
107 \constfunc{void}{TransformDistance}{\param{wxDouble* }{dx}, \param{wxDouble* }{dy}}
108
109 Applies this matrix to a distance (ie. performs all transforms except translations)
110
111
112