****************************************************************************/
/*!
- \example demos/affine
+ \example painting/affine
\title Affine Transformations
In this demo we show Qt's ability to perform affine transformations
QTransform documentation.
The Qt reference documentation provides several painting
- demos. Among these is the \l {demos/affine}{Affine
- Transformations} demo that shows Qt's ability to perform
+ demos. Among these is the \l {painting/affine}{Affine
+ Transformations} example that shows Qt's ability to perform
transformations on painting operations. The demo also allows the
user to experiment with the various transformation operations.
*/
\endtable
You can also twist the coordinate system around the origin using
- the QPainter::shear() function. See the \l {demos/affine}{Affine
- Transformations} demo for a visualization of a sheared coordinate
+ the QPainter::shear() function. See the \l {painting/affine}{Affine
+ Transformations} example for a visualization of a sheared coordinate
system. All the transformation operations operate on QPainter's
transformation matrix that you can retrieve using the
QPainter::worldTransform() function. A matrix transforms a point
For a demonstation of Qt's ability to perform affine
transformations on painting operations, see the \l
- {demos/affine}{Affine Transformations} demo which allows the user
+ {painting/affine}{Affine Transformations} example which allows the user
to experiment with the transformation operations. See also the \l
{painting/transformations}{Transformations} example which shows
how transformations influence the way that QPainter renders
\endtable
\sa QPainter, QTransform, {Coordinate System},
- {demos/affine}{Affine Transformations Demo}, {Transformations Example}
+ {painting/affine}{Affine Transformations Example}, {Transformations Example}
*/
rotate it clockwise and translate() to translate it (i.e. adding a
given offset to the points). You can also twist the coordinate
system around the origin using the shear() function. See the \l
- {demos/affine}{Affine Transformations} demo for a visualization of
+ {painting/affine}{Affine Transformations} example for a visualization of
a sheared coordinate system.
See also the \l {painting/transformations}{Transformations}
\table 100%
\row
\o
- \bold {Affine Transformations Demo}
+ \bold {Affine Transformations Example}
- The \l {demos/affine}{Affine Transformations} demo show Qt's
+ The \l {painting/affine}{Affine Transformations} example shows Qt's
ability to perform affine transformations on painting
operations. The demo also allows the user to experiment with the
transformation operations and see the results immediately.
\snippet doc/src/snippets/transform/main.cpp 2
\endtable
- \sa QPainter, {Coordinate System}, {demos/affine}{Affine
- Transformations Demo}, {Transformations Example}
+ \sa QPainter, {Coordinate System}, {painting/affine}{Affine
+ Transformations Example}, {Transformations Example}
*/
/*!
-"Affine Demo", "demos/affine", "affine", 0, -1
"Books Demo", "demos/books", "books", 0, -1
"Chip Demo", "demos/chip", "chip", 0, -1
"Composition Demo", "demos/composition", "composition", 0, -1
"opengl/overpainting Example", "examples/opengl/overpainting", "overpainting", 10, -1
"opengl/samplebuffers Example", "examples/opengl/samplebuffers", "samplebuffers", 10, -1
"opengl/textures Example", "examples/opengl/textures", "textures", 10, -1
+"Affine Transformations Example", "examples/painting/affine", "affine", 0, -1
"painting/basicdrawing Example", "examples/painting/basicdrawing", "basicdrawing", 10, -1
"painting/concentriccircles Example", "examples/painting/concentriccircles", "concentriccircles", 0, -1
"painting/fontsampler Example", "examples/painting/fontsampler", "fontsampler", 0, -1