comparison layer/TimeInstantLayer.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 37df1530519d
children e6362cf5ff1d
comparison
equal deleted inserted replaced
1536:5a215033b853 1537:4f8c72adbf43
376 illuminateFrame = localPoints.begin()->getFrame(); 376 illuminateFrame = localPoints.begin()->getFrame();
377 } 377 }
378 } 378 }
379 379
380 int prevX = -1; 380 int prevX = -1;
381 int textY = v->getTextLabelHeight(this, paint); 381 int textY = v->getTextLabelYCoord(this, paint);
382 382
383 for (EventVector::const_iterator i = points.begin(); 383 for (EventVector::const_iterator i = points.begin();
384 i != points.end(); ++i) { 384 i != points.end(); ++i) {
385 385
386 Event p(*i); 386 Event p(*i);