I'm searching for a method to combine two QwtScaleMap.
I have:
#include <QCoreApplication>
#include <QProcess>
#include "qwt_scale_map.h"
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
QwtScaleMap *scaleMapFirst = new QwtScaleMap;
scaleMapFirst->setScaleInterval(0, 1);
scaleMapFirst->setPaintInterval(49, 0);
QwtScaleMap *scaleMapSecond = new QwtScaleMap;
scaleMapSecond->setScaleInterval(-3, 3);
scaleMapSecond->setPaintInterval(0, 1);
qDebug() << scaleMapFirst->transform(scaleMapSecond->transform(1.194));
return a.exec();
}
I would like to combine the two QwtScaleMap to only run the transform method once.
I found nothing on the internet.
With the above code line,
scaleMapFirst->transform(values)works without any otherscaleMap.