comparison view/Pane.cpp @ 521:3b345b9a4575

...
author Chris Cannam
date Fri, 13 Mar 2009 11:28:41 +0000
parents 683c46d7500b
children 0db823c49ed6
comparison
equal deleted inserted replaced
520:86559bf8219e 521:3b345b9a4575
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 = powf(10, rmin); 1671 rmin = exp10f(rmin);
1672 rmax = powf(10, rmax); 1672 rmax = exp10f(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();