Mercurial > hg > multitrack-audio-matcher
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/annotationCalculatorSrc/PlotTools.h Fri May 04 15:33:36 2012 +0100 @@ -0,0 +1,33 @@ +/* + * PlotTools.h + * annotationResultCalculator + * + * Created by Andrew on 04/05/2012. + * Copyright 2012 QMUL. All rights reserved. + * + */ + + +#ifndef PLOT_TOOLS +#define PLOT_TOOLS + +#include "ofMain.h" + + + +class PlotTools{ +public: + PlotTools(); + typedef std::vector<double> DoubleVector; + + void plotVector(const DoubleVector& d); + void plotVector(const DoubleVector& d, const double& xStart, const double& xEnd, const double& yStart, const double& yEnd); + + void plotTwoVectors(const DoubleVector& d, const DoubleVector& h); + void plotTwoVectors(const DoubleVector& d, const DoubleVector& h, const double& xStart, const double& xEnd, const double& yStart, const double& yEnd); + + double screenHeight; + double screenWidth; + int getY(const int& y); +}; +#endif \ No newline at end of file