Mercurial > hg > svgui
comparison view/Pane.cpp @ 522:0db823c49ed6
...!
author | Chris Cannam |
---|---|
date | Fri, 13 Mar 2009 11:33:26 +0000 |
parents | 3b345b9a4575 |
children | e6122e4999a3 |
comparison
equal
deleted
inserted
replaced
521:3b345b9a4575 | 522:0db823c49ed6 |
---|---|
1666 } | 1666 } |
1667 float rmin = min + ((max - min) * (height() - y1)) / height(); | 1667 float rmin = min + ((max - min) * (height() - y1)) / height(); |
1668 float rmax = min + ((max - min) * (height() - y0)) / height(); | 1668 float rmax = min + ((max - min) * (height() - y0)) / height(); |
1669 std::cerr << "min: " << min << ", max: " << max << ", y0: " << y0 << ", y1: " << y1 << ", h: " << height() << ", rmin: " << rmin << ", rmax: " << rmax << std::endl; | 1669 std::cerr << "min: " << min << ", max: " << max << ", y0: " << y0 << ", y1: " << y1 << ", h: " << height() << ", rmin: " << rmin << ", rmax: " << rmax << std::endl; |
1670 if (log) { | 1670 if (log) { |
1671 rmin = exp10f(rmin); | 1671 rmin = powf(10, rmin); |
1672 rmax = exp10f(rmax); | 1672 rmax = powf(10, rmax); |
1673 } | 1673 } |
1674 std::cerr << "finally: rmin: " << rmin << ", rmax: " << rmax << " " << unit.toStdString() << std::endl; | 1674 std::cerr << "finally: rmin: " << rmin << ", rmax: " << rmax << " " << unit.toStdString() << std::endl; |
1675 | 1675 |
1676 layer->setDisplayExtents(rmin, rmax); | 1676 layer->setDisplayExtents(rmin, rmax); |
1677 updateVerticalPanner(); | 1677 updateVerticalPanner(); |