nutmeg
nutmeg copied to clipboard
Implement Axis Transforms
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 }
With the functions, what about going back the other direction?
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