andrew@43: /* andrew@43: * PlotTools.h andrew@43: * annotationResultCalculator andrew@43: * andrew@43: * Created by Andrew on 04/05/2012. andrew@43: * Copyright 2012 QMUL. All rights reserved. andrew@43: * andrew@43: */ andrew@43: andrew@43: andrew@43: #ifndef PLOT_TOOLS andrew@43: #define PLOT_TOOLS andrew@43: andrew@43: #include "ofMain.h" andrew@43: andrew@43: andrew@43: andrew@43: class PlotTools{ andrew@43: public: andrew@43: PlotTools(); andrew@43: typedef std::vector DoubleVector; andrew@43: andrew@43: void plotVector(const DoubleVector& d); andrew@43: void plotVector(const DoubleVector& d, const double& xStart, const double& xEnd, const double& yStart, const double& yEnd); andrew@43: andrew@43: void plotTwoVectors(const DoubleVector& d, const DoubleVector& h); andrew@45: 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: andrew@43: double screenHeight; andrew@43: double screenWidth; andrew@43: int getY(const int& y); andrew@45: bool plotPoints; andrew@45: andrew@45: andrew@45: andrew@43: }; andrew@43: #endif