Chris@696: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ Chris@696: Chris@696: /* Chris@696: Sonic Visualiser Chris@696: An audio file viewer and annotation editor. Chris@696: Centre for Digital Music, Queen Mary, University of London. Chris@696: This file copyright 2006-2013 Chris Cannam and QMUL. Chris@696: Chris@696: This program is free software; you can redistribute it and/or Chris@696: modify it under the terms of the GNU General Public License as Chris@696: published by the Free Software Foundation; either version 2 of the Chris@696: License, or (at your option) any later version. See the file Chris@696: COPYING included with this distribution for more information. Chris@696: */ Chris@696: Chris@1276: #ifndef SV_LINEAR_NUMERICAL_SCALE_H Chris@1276: #define SV_LINEAR_NUMERICAL_SCALE_H Chris@696: Chris@696: #include Chris@696: Chris@696: class QPainter; Chris@916: class LayerGeometryProvider; Chris@696: class VerticalScaleLayer; Chris@1276: class HorizontalScaleProvider; Chris@696: Chris@696: class LinearNumericalScale Chris@696: { Chris@696: public: Chris@1276: int getWidth(LayerGeometryProvider *v, QPainter &paint, Chris@1276: bool horizontal = false); Chris@696: Chris@696: void paintVertical Chris@916: (LayerGeometryProvider *v, const VerticalScaleLayer *layer, Chris@916: QPainter &paint, int x0, double minf, double maxf); Chris@1276: Chris@1276: void paintHorizontal Chris@1276: (LayerGeometryProvider *v, const HorizontalScaleProvider *provider, Chris@1276: QPainter &paint, QRect r); Chris@696: }; Chris@696: Chris@696: #endif Chris@696: