polaroid-pp

Schlieren and contour plot tool
git clone https://git.0xfab.ch/polaroid-pp.git
Log | Files | Refs | Submodules | README | LICENSE

PhotoINFO.h (1026B)


      1 // File       : PhotoINFO.h
      2 // Date       : Tue 12 Jul 2016 04:17:47 PM CEST
      3 // Author     : Fabian Wermelinger
      4 // Description: Statistics photo
      5 // Copyright 2016 ETH Zurich. All Rights Reserved.
      6 #ifndef PHOTOINFO_H_SVPPOILX
      7 #define PHOTOINFO_H_SVPPOILX
      8 
      9 #include <string>
     10 #include <sstream>
     11 #include "common.h"
     12 #include "PhotoPaper.h"
     13 #include "Types.h"
     14 
     15 class PhotoINFO: public PhotoPaper
     16 {
     17     std::ostringstream m_buf;
     18 
     19 public:
     20     PhotoINFO(const std::string filename="ascii") : PhotoPaper(0,0,filename)
     21     {
     22         m_description = "ASCII information";
     23     }
     24     virtual ~PhotoINFO() { }
     25 
     26     virtual void make_new(const std::string name, const int dummy1=0, const int dummy2=0);
     27     virtual void resize(const int dummy1, const int dummy2) { }
     28     virtual void write() { }
     29     virtual void set_pixel(const double dummy1, const int dummy2, const int dummy3) { }
     30     virtual std::string suffix() const { return std::string(".info"); }
     31     void write(const Slice2D_Statistics& stat);
     32 };
     33 
     34 #endif /* PHOTOINFO_H_SVPPOILX */