Fixed text file permissions
[snark14.git] / tools / Display / line_window_t.hpp
1 /** @file line_window_t.hpp
2     @package snark14Display
3     @author Bruno M. Carvalho and Deniz Sarioz
4     licensed under (open-source) QPL v1.0
5     which accompanies this distribution in the file QPL
6 */
7
8 #ifndef _LINE_WINDOW_T
9 #define _LINE_WINDOW_T
10
11 #include <list>
12
13 class QPainter;
14 class QColor;
15
16 class point_window_t;
17
18 /** these correspond to segments */
19 class line_window_t
20 {
21   typedef std::list<point_window_t> data_window_t;
22   data_window_t data;
23 public:
24   void add(int x, int y);
25
26   void add(point_window_t& ptw);
27
28   bool empty();
29   
30   void clear();
31
32   /** pre: all coordinates are within paint's win          */
33   /* (i.e., all points in data ought to be within window.) */
34   void plot(QPainter& P, QColor& C, Qt::PenStyle & Ps);
35
36   void show();
37
38 }; // -- class line_window_t
39
40 #endif