Update.
[flatland.git] / canvas.h
1
2 /*
3  *  dyncnn is a deep-learning algorithm for the prediction of
4  *  interacting object dynamics
5  *
6  *  Copyright (c) 2016 Idiap Research Institute, http://www.idiap.ch/
7  *  Written by Francois Fleuret <francois.fleuret@idiap.ch>
8  *
9  *  This file is part of dyncnn.
10  *
11  *  dyncnn is free software: you can redistribute it and/or modify it
12  *  under the terms of the GNU General Public License version 3 as
13  *  published by the Free Software Foundation.
14  *
15  *  dyncnn is distributed in the hope that it will be useful, but
16  *  WITHOUT ANY WARRANTY; without even the implied warranty of
17  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18  *  General Public License for more details.
19  *
20  *  You should have received a copy of the GNU General Public License
21  *  along with dyncnn.  If not, see <http://www.gnu.org/licenses/>.
22  *
23  */
24
25 #ifndef CANVAS_H
26 #define CANVAS_H
27
28 #include "misc.h"
29
30 class Canvas {
31 public:
32   virtual ~Canvas();
33   virtual void clear() = 0;
34   virtual void set_line_width(scalar_t w) = 0;
35   virtual void set_drawing_color(scalar_t r, scalar_t g, scalar_t b) = 0;
36   virtual void draw_polygon(int filled, int nb, scalar_t *x, scalar_t *y) = 0;
37 };
38
39 #endif