Mercurial > hg > multitrack-audio-matcher
view annotationCalculatorSrc/PlotTools.h @ 50:93d21c20cfbc
Added Markers and the ability to switch to these points in the file when playing
author | Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk> |
---|---|
date | Thu, 14 Jun 2012 20:04:49 +0100 |
parents | d23685b9e766 |
children |
line wrap: on
line source
/* * 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, const bool drawAxes); double screenHeight; double screenWidth; int getY(const int& y); bool plotPoints; }; #endif