00001 #ifndef __IMAGEARITHMATICCUBE_H 00002 #define __IMAGEARITHMATICCUBE_H 00003 00004 #include "ImageCube.h" 00005 //#include <muParserDLL.h> 00006 #include <muParser.h> 00007 00008 #include <iostream> 00009 #include <sstream> 00010 00011 using namespace mu; 00012 00013 class ImageArithmaticCube : public ImageCube { 00014 00023 public: 00024 00033 ImageArithmaticCube(int x1, int y1, int w1, int h1); 00034 00039 ~ImageArithmaticCube(); 00040 00046 void setEquation(std::string eq); 00047 00054 std::vector<double>* calculateLayer(); 00055 00065 bool calculate(); 00066 00078 std::vector<double>* getCalculatedLayer(); 00079 00080 protected: 00081 Parser parser ; 00082 std::vector<double>* calculatedLayer; 00083 bool eqset; 00084 00085 }; 00086 #endif 00087