Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

Graph.h

Go to the documentation of this file.
00001 //LabPlot : Graph.h
00002 
00003 #ifndef GRAPH_H
00004 #define GRAPH_H
00005 
00006 #include <qstring.h>
00007 #include <qstringlist.h>
00008 #include <klocale.h>
00009 #include "LRange.h"
00010 #include "Style.h"
00011 #include "Symbol.h"
00012 #include "AnnotateValues.h"
00013 #include "plottypes.h"
00014 #include "source.h"
00015 
00016 class Graph
00017 {
00018 public:
00019         Graph(QString n="", QString label="", LSource src=SFUNCTION, PType t=P2D, Style *st=0, 
00020                         Symbol *sy=0,int nr=0, bool s=true);
00021         virtual ~Graph() {}
00022         void openGraph(QTextStream *t,int version);
00023         void saveGraph(QTextStream *t);
00024         QString Name() { return name; }
00025         QString Label() { return label; }
00026         void setLabel(QString l) { label=l; }
00027         LSource Source() { return source; }
00028         void setSource(LSource s) { source=s; }
00029         int ReadAs() { return readas; }
00030         void setReadAs(int r) { readas = r; }
00031         PType Type() { return type; }
00032         Style *getStyle() { return style; }
00033         void setStyle(Style *s) { style = s; }
00034         Symbol *getSymbol() { return symbol; }
00035         void setSymbol(Symbol *s) { symbol = s; }
00036         int Number() { return number; }
00037         void setNumber(int n) { number = n; }
00038         bool isShown() { return shown; }
00039         void setShown(bool b) { shown = b; }
00040         AnnotateValues getAnnotateValues() { return av; }
00041         void setAnnotateValues(AnnotateValues a) { av=a;}
00042         QString FitFunction() { return fitfunction; }
00043         void setFitFunction(QString f) { fitfunction=f; }
00044         
00045 protected:
00046         QString name, label;    // name and label (plotted name)
00047         LSource source;
00048         int readas;             // selected read as for data
00049         PType type;             // plot type of a graph
00050         Style *style;
00051         Symbol *symbol;
00052         int number;
00053         bool shown;             // shown/hidden
00054         AnnotateValues av;
00055         QString fitfunction;
00056 };
00057 
00058 #endif // GRAPH_H

Generated on Fri Aug 19 21:34:44 2005 for LabPlot by doxygen 1.3.6