view annotationCalculatorSrc/PlotTools.h @ 47:689704aa55d5

Added square and better scrolling through the matrix, better loading of files
author Andrew N Robertson <andrew.robertson@eecs.qmul.ac.uk>
date Wed, 09 May 2012 12:38:00 +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