Fixed text file permissions
[snark14.git] / tools / Display / line_real_t.hpp
1 /** @file line_real_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_REAL_T
9 #define _LINE_REAL_T
10
11 #include "sd_line_t.hpp"
12
13 #include <list>
14
15 #include <qstring.h>
16
17 class QString;
18 class line_real_set_t;
19 class line_window_onevar_t;
20 class line_real_t
21 {
22   typedef std::list<point_real_t> data_real_t;
23   data_real_t data;
24   QString plotname;
25   friend class line_window_onevar_t; // hey, this worked!
26   line_real_set_t* mySetP;
27   // maybe make 'struct' nodes and trees in historytree.cpp into friendly classes too?
28 public:
29   line_real_t(QString name);
30
31   line_real_t(QString name, int fromX, int toX, double atY); // good for phantom
32   bool empty();
33   void add(int x, double y);
34   void clear();
35   int getMinX(); // definitions must wait until the end of line_real_set_t def
36   int getMaxX();
37   double getMinY();
38   double getMaxY();
39   QString getName();
40   void setset(line_real_set_t* sp);
41   void show();
42 }; // --class line_real_t
43 #endif