nutmeg icon indicating copy to clipboard operation
nutmeg copied to clipboard

Implement Axis Transforms

Open kitizz opened this issue 10 years ago • 2 comments

The QML description of the Figure, an Axis should be able to be provided a transform. This could be done in a number of ways.

A 2D transform:

axisTransform: Transform { Scale {...}, Rotation {...}, ... }

See: http://qt-project.org/doc/qt-5/qml-qtquick-transform.html

Functions:

xTransform: function (X) { return Util.log10(x) }
yTransform: function (Y) { return -Y }

kitizz avatar Jun 24 '14 15:06 kitizz

With the functions, what about going back the other direction?

kitizz avatar Jun 25 '14 00:06 kitizz

For now, stick with affine transformations. QPainter has nice built in support for this: http://qt-project.org/doc/qt-5/QPainter.html#coordinate-transformations

kitizz avatar Jun 25 '14 00:06 kitizz