00001 #ifndef __SVGPLOTTER_H 00002 #define __SVGPLOTTER_H 00003 00004 #include <iostream> 00005 #include <fstream> 00006 #include <vector> 00007 00011 namespace Teem 00012 { 00015 class SVGPlotter 00016 { 00017 protected: 00019 std::ofstream outputFile; 00021 std::vector<std::pair<double, double> > trajectories; 00022 public: 00024 SVGPlotter(const std::string &filename, double width, double height); 00026 virtual ~SVGPlotter(); 00028 size_t createTrajectory(double x, double y); 00030 void drawLine(size_t trajectory, double x, double y, double r, double g, double b); 00031 }; 00032 } 00033 00034 #endif