Mercurial > hg > multitrack-audio-matcher
annotate annotationCalculatorSrc/PlotTools.h @ 56:4394c9490716 tip
minor changes
| author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
|---|---|
| date | Mon, 24 Dec 2012 18:58:39 +0000 |
| parents | d23685b9e766 |
| children |
| rev | line source |
|---|---|
| andrew@43 | 1 /* |
| andrew@43 | 2 * PlotTools.h |
| andrew@43 | 3 * annotationResultCalculator |
| andrew@43 | 4 * |
| andrew@43 | 5 * Created by Andrew on 04/05/2012. |
| andrew@43 | 6 * Copyright 2012 QMUL. All rights reserved. |
| andrew@43 | 7 * |
| andrew@43 | 8 */ |
| andrew@43 | 9 |
| andrew@43 | 10 |
| andrew@43 | 11 #ifndef PLOT_TOOLS |
| andrew@43 | 12 #define PLOT_TOOLS |
| andrew@43 | 13 |
| andrew@43 | 14 #include "ofMain.h" |
| andrew@43 | 15 |
| andrew@43 | 16 |
| andrew@43 | 17 |
| andrew@43 | 18 class PlotTools{ |
| andrew@43 | 19 public: |
| andrew@43 | 20 PlotTools(); |
| andrew@43 | 21 typedef std::vector<double> DoubleVector; |
| andrew@43 | 22 |
| andrew@43 | 23 void plotVector(const DoubleVector& d); |
| andrew@43 | 24 void plotVector(const DoubleVector& d, const double& xStart, const double& xEnd, const double& yStart, const double& yEnd); |
| andrew@43 | 25 |
| andrew@43 | 26 void plotTwoVectors(const DoubleVector& d, const DoubleVector& h); |
| andrew@45 | 27 void plotTwoVectors(const DoubleVector& d, const DoubleVector& h, const double& xStart, const double& xEnd, const double& yStart, const double& yEnd, const bool drawAxes); |
| andrew@43 | 28 |
| andrew@43 | 29 double screenHeight; |
| andrew@43 | 30 double screenWidth; |
| andrew@43 | 31 int getY(const int& y); |
| andrew@45 | 32 bool plotPoints; |
| andrew@45 | 33 |
| andrew@45 | 34 |
| andrew@45 | 35 |
| andrew@43 | 36 }; |
| andrew@43 | 37 #endif |
