From e320db210c41c1a45a88aad4c592024f433e6ad0 Mon Sep 17 00:00:00 2001 From: Michael Brasser Date: Wed, 6 May 2009 11:44:32 +1000 Subject: Add images for the Transform documentation. --- doc/src/declarative/pics/3d-axis.png | Bin 0 -> 13840 bytes doc/src/declarative/pics/3d-rotation-axis.png | Bin 0 -> 14304 bytes doc/src/declarative/pics/squish-transform.png | Bin 0 -> 9652 bytes src/declarative/fx/qfxtransform.cpp | 13 +++++++++++-- 4 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 doc/src/declarative/pics/3d-axis.png create mode 100644 doc/src/declarative/pics/3d-rotation-axis.png create mode 100644 doc/src/declarative/pics/squish-transform.png diff --git a/doc/src/declarative/pics/3d-axis.png b/doc/src/declarative/pics/3d-axis.png new file mode 100644 index 0000000..1a587ff Binary files /dev/null and b/doc/src/declarative/pics/3d-axis.png differ diff --git a/doc/src/declarative/pics/3d-rotation-axis.png b/doc/src/declarative/pics/3d-rotation-axis.png new file mode 100644 index 0000000..1b17261 Binary files /dev/null and b/doc/src/declarative/pics/3d-rotation-axis.png differ diff --git a/doc/src/declarative/pics/squish-transform.png b/doc/src/declarative/pics/squish-transform.png new file mode 100644 index 0000000..0eb848e Binary files /dev/null and b/doc/src/declarative/pics/squish-transform.png differ diff --git a/src/declarative/fx/qfxtransform.cpp b/src/declarative/fx/qfxtransform.cpp index 71ca716..cc2c21c 100644 --- a/src/declarative/fx/qfxtransform.cpp +++ b/src/declarative/fx/qfxtransform.cpp @@ -92,8 +92,10 @@ void QFxTransform::update() (and thus many different sets of two points could define the same axis), the distance between the points does matter for translation along an axis. + \image 3d-axis.png + \qml - Axis { startX: 0; startY: 0; endX: 20; endY: 30 } + Axis { startX: 20; startY: 0; endX: 40; endY: 60; endZ: 20 } \endqml */ @@ -210,6 +212,8 @@ QFxRotation3D::~QFxRotation3D() an end point. The z-position of the start point is assumed to be 0, and cannot be changed. + \image 3d-rotation-axis.png + \sa Axis */ QFxAxis *QFxRotation3D::axis() @@ -508,7 +512,12 @@ QMatrix4x4 QFxPerspective::transform() const /*! \qmlclass Squish - \brief A Squish object allows you to distort an items appearance by 'squishing' it. + \brief A Squish object allows you to distort an item's appearance by 'squishing' it. + + Conceptually, a Squish works by allowing you to move the four corners of an item, + and distorting the item to fit into the newly created polygon. + + \image squish-transform.png Here is an example of various \l Image squishes. \qml -- cgit v0.12