annotate layer/LinearNumericalScale.h @ 1280:34394e8c2942 horizontal-scale

Merge
author Chris Cannam
date Wed, 02 May 2018 14:27:17 +0100
parents b4cb11ca8233
children fc9d9f1103fa
rev   line source
Chris@696 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@696 2
Chris@696 3 /*
Chris@696 4 Sonic Visualiser
Chris@696 5 An audio file viewer and annotation editor.
Chris@696 6 Centre for Digital Music, Queen Mary, University of London.
Chris@696 7 This file copyright 2006-2013 Chris Cannam and QMUL.
Chris@696 8
Chris@696 9 This program is free software; you can redistribute it and/or
Chris@696 10 modify it under the terms of the GNU General Public License as
Chris@696 11 published by the Free Software Foundation; either version 2 of the
Chris@696 12 License, or (at your option) any later version. See the file
Chris@696 13 COPYING included with this distribution for more information.
Chris@696 14 */
Chris@696 15
Chris@1276 16 #ifndef SV_LINEAR_NUMERICAL_SCALE_H
Chris@1276 17 #define SV_LINEAR_NUMERICAL_SCALE_H
Chris@696 18
Chris@696 19 #include <QRect>
Chris@696 20
Chris@696 21 class QPainter;
Chris@916 22 class LayerGeometryProvider;
Chris@696 23 class VerticalScaleLayer;
Chris@1276 24 class HorizontalScaleProvider;
Chris@696 25
Chris@696 26 class LinearNumericalScale
Chris@696 27 {
Chris@696 28 public:
Chris@1276 29 int getWidth(LayerGeometryProvider *v, QPainter &paint,
Chris@1276 30 bool horizontal = false);
Chris@696 31
Chris@696 32 void paintVertical
Chris@916 33 (LayerGeometryProvider *v, const VerticalScaleLayer *layer,
Chris@916 34 QPainter &paint, int x0, double minf, double maxf);
Chris@1276 35
Chris@1276 36 void paintHorizontal
Chris@1276 37 (LayerGeometryProvider *v, const HorizontalScaleProvider *provider,
Chris@1276 38 QPainter &paint, QRect r);
Chris@696 39 };
Chris@696 40
Chris@696 41 #endif
Chris@696 42