1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
/*
* python-qwt. Python wrapper for the Qwt Widget Library
* Copyright (C) 1997 Josef Wilgen
* Copyright (C) 2002 Uwe Rathmann
* Copyright (C) 2015 Gudjon I. Gudjonsson
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the Qwt License, Version 1.0
*****************************************************************************/
class QwtScaleMap
{
%TypeHeaderCode
#include <qwt_scale_map.h>
%End
public:
QwtScaleMap();
QwtScaleMap( const QwtScaleMap& );
~QwtScaleMap();
//QwtScaleMap &operator=( const QwtScaleMap & );
//void setTransformation( QwtTransform * );
//const QwtTransform *transformation() const;
void setPaintInterval( double p1, double p2 );
void setScaleInterval( double s1, double s2 );
double transform( double s ) const;
double invTransform( double p ) const;
double p1() const;
double p2() const;
double s1() const;
double s2() const;
double pDist() const;
double sDist() const;
static QRectF transform( const QwtScaleMap &,
const QwtScaleMap &, const QRectF & );
static QRectF invTransform( const QwtScaleMap &,
const QwtScaleMap &, const QRectF & );
static QPointF transform( const QwtScaleMap &,
const QwtScaleMap &, const QPointF & );
static QPointF invTransform( const QwtScaleMap &,
const QwtScaleMap &, const QPointF & );
bool isInverting() const;
/*private:
void updateFactor();
double d_s1, d_s2; // scale interval boundaries
double d_p1, d_p2; // paint device interval boundaries
double d_cnv; // conversion factor
double d_ts1;
QwtTransform *d_transform;*/
};
|