10 #include "qwt_scale_map.h" 
   38     , m_cnv( other.m_cnv )
 
   39     , m_ts1( other.m_ts1 )
 
   42     if ( other.m_transform )
 
   43         m_transform = other.m_transform->
copy();
 
   67     if ( other.m_transform )
 
   68         m_transform = other.m_transform->
copy();
 
  107         m_s1 = m_transform->
bounded( m_s1 );
 
  108         m_s2 = m_transform->
bounded( m_s2 );
 
  127 void QwtScaleMap::updateFactor()
 
  140         m_cnv = ( m_p2 - m_p1 ) / ( ts2 - m_ts1 );
 
  156     double x1 = xMap.
transform( rect.left() );
 
  157     double x2 = xMap.
transform( rect.right() );
 
  158     double y1 = yMap.
transform( rect.top() );
 
  159     double y2 = yMap.
transform( rect.bottom() );
 
  166     if ( qwtFuzzyCompare( x1, 0.0, x2 - x1 ) == 0 )
 
  168     if ( qwtFuzzyCompare( x2, 0.0, x2 - x1 ) == 0 )
 
  170     if ( qwtFuzzyCompare( y1, 0.0, y2 - y1 ) == 0 )
 
  172     if ( qwtFuzzyCompare( y2, 0.0, y2 - y1 ) == 0 )
 
  175     return QRectF( x1, y1, x2 - x1 + 1, y2 - y1 + 1 );
 
  228     const double x2 = xMap.
invTransform( rect.right() - 1 );
 
  230     const double y2 = yMap.
invTransform( rect.bottom() - 1 );
 
  232     const QRectF r( x1, y1, x2 - x1, y2 - y1 );
 
  233     return r.normalized();
 
  236 #ifndef QT_NO_DEBUG_STREAM 
  238 QDebug operator<<( QDebug debug, 
const QwtScaleMap& map )
 
  240     debug.nospace() << 
"QwtScaleMap(" 
  242                     << 
", s:" << map.
s1() << 
"->" << map.
s2()
 
  243                     << 
", p:" << map.
p1() << 
"->" << map.
p2()
 
  246     return debug.space();
 
QwtScaleMap & operator=(const QwtScaleMap &)
Assignment operator.
double transform(double s) const
const QwtTransform * transformation() const
Get the transformation.
QwtScaleMap()
Constructor.
void setPaintInterval(double p1, double p2)
Specify the borders of the paint device interval.
void setScaleInterval(double s1, double s2)
Specify the borders of the scale interval.
double invTransform(double p) const
void setTransformation(QwtTransform *)