Mercurial > hg > multitrack-audio-matcher
annotate annotationCalculatorSrc/PlotTools.h @ 43:b7ad807c9cde
Added annotation writing and the src for the result calculator
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Fri, 04 May 2012 15:33:36 +0100 |
parents | |
children | d23685b9e766 |
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@43 | 27 void plotTwoVectors(const DoubleVector& d, const DoubleVector& h, const double& xStart, const double& xEnd, const double& yStart, const double& yEnd); |
andrew@43 | 28 |
andrew@43 | 29 double screenHeight; |
andrew@43 | 30 double screenWidth; |
andrew@43 | 31 int getY(const int& y); |
andrew@43 | 32 }; |
andrew@43 | 33 #endif |