1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 %% Name: graphicsmatrix.tex
3 %% Purpose: wxGraphicsMatrix class documentation
4 %% Author: Stefan Csomor
8 %% Copyright: (c) Stefan Csomor
9 %% License: wxWindows license
10 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
12 \section{\class{wxGraphicsMatrix
}}\label{wxgraphicsmatrix
}
14 A wxGraphicsMatrix is a native representation of an affine matrix. The contents are specific an 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.
16 \wxheading{Derived from
}
18 \helpref{wxGraphicsObject
}{wxgraphicsobject
}
20 \wxheading{Include files
}
24 \latexignore{\rtfignore{\wxheading{Members
}}}
26 \membersection{wxGraphicsMatrix::Concat
}\label{wxgraphicsmatrixconcat
}
28 \func{void
}{Concat
}{\param{const wxGraphicsMatrix*
}{t
}}
30 Concatenates the matrix passed with the current matrix.
32 \func{void
}{Concat
}{\param{const wxGraphicsMatrix\&
}{t
}}
35 \membersection{wxGraphicsMatrix::GetNativeMatrix
}\label{wxgraphicsmatrixgetnativematrix
}
37 \constfunc{void *
}{GetNativeMatrix
}{\void}
39 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.
41 \membersection{wxGraphicsMatrix::Invert
}\label{wxgraphicsmatrixinvert
}
43 \func{void
}{Invert
}{\void}
47 \membersection{wxGraphicsMatrix::IsEqual
}\label{wxgraphicsmatrixisequal
}
49 \constfunc{bool
}{IsEqual
}{\param{const wxGraphicsMatrix\&
}{t
}}
51 Returns true if the elements of the transformation matrix are equal.
53 \membersection{wxGraphicsMatrix::IsIdentity
}\label{wxgraphicsmatrixisidentity
}
55 \constfunc{bool
}{IsIdentity
}{\void}
57 Return true if this is the identity matrix.
59 \membersection{wxGraphicsMatrix::Rotate
}\label{wxgraphicsmatrixrotate
}
61 \func{void
}{Rotate
}{\param{wxDouble
}{angle
}}
63 Rotates this matrix (radians).
65 \membersection{wxGraphicsMatrix::Scale
}\label{wxgraphicsmatrixscale
}
67 \func{void
}{Scale
}{\param{wxDouble
}{xScale
},
\param{wxDouble
}{yScale
}}
71 \membersection{wxGraphicsMatrix::Translate
}\label{wxgraphicsmatrixtranslate
}
73 \func{void
}{Translate
}{\param{wxDouble
}{dx
},
\param{wxDouble
}{dy
}}
75 Translates this matrix.
77 \membersection{wxGraphicsMatrix::Set
}\label{wxgraphicsmatrixset
}
79 \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}}
81 Sets the matrix to the respective values (default values are the identity matrix)
83 \membersection{wxGraphicsMatrix::TransformPoint
}\label{wxgraphicsmatrixtransformpoint
}
85 \constfunc{void
}{TransformPoint
}{\param{wxDouble*
}{x
},
\param{wxDouble*
}{y
}}
87 Applies this matrix to a point.
89 \membersection{wxGraphicsMatrix::TransformDistance
}\label{wxgraphicsmatrixtransformdistance
}
91 \constfunc{void
}{TransformDistance
}{\param{wxDouble*
}{dx
},
\param{wxDouble*
}{dy
}}
93 Applies this matrix to a distance (ie. performs all transforms except translations)