Mercurial > hg > svgui
comparison layer/BoxLayer.cpp @ 1537:4f8c72adbf43
Clarify naming of some view-related methods. Rename LayerGeometryProvider::getValueExtents to getVisibleExtentsForUnit, and View::getTextLabelHeight to getTextLabelYCoord. Add View::getVisibleExtentsForAnyUnit to be used to determine which unit to adopt in a new e.g. box layer.
author | Chris Cannam |
---|---|
date | Tue, 15 Oct 2019 11:40:56 +0100 |
parents | 873ff035364c |
children | ec837d223bd9 |
comparison
equal
deleted
inserted
replaced
1536:5a215033b853 | 1537:4f8c72adbf43 |
---|---|
470 QString queryUnits; | 470 QString queryUnits; |
471 queryUnits = getScaleUnits(); | 471 queryUnits = getScaleUnits(); |
472 | 472 |
473 if (m_verticalScale == AutoAlignScale) { | 473 if (m_verticalScale == AutoAlignScale) { |
474 | 474 |
475 if (!v->getValueExtents(queryUnits, min, max, log)) { | 475 if (!v->getVisibleExtentsForUnit(queryUnits, min, max, log)) { |
476 | 476 |
477 min = model->getValueMinimum(); | 477 min = model->getValueMinimum(); |
478 max = model->getValueMaximum(); | 478 max = model->getValueMaximum(); |
479 | 479 |
480 // cerr << "BoxLayer[" << this << "]::getScaleExtents: min = " << min << ", max = " << max << ", log = " << log << endl; | 480 // cerr << "BoxLayer[" << this << "]::getScaleExtents: min = " << min << ", max = " << max << ", log = " << log << endl; |