#ifndef CANVAS_HPP #define CANVAS_HPP class Canvas { protected: unsigned int dimension; Canvas (const unsigned int dimension) : dimension (dimension) {}; public: unsigned int getDimension() const { return dimension; }; virtual ~Canvas() {}; virtual void clear() = 0; virtual void plot (const double * normalizedPosition) = 0; virtual void output_file (const char * filename) const = 0; }; #endif // CANVAS_HPP