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 "defs.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=Style(), 
00020                         Symbol sy=Symbol(),int nr=0, bool s=TRUE);
00021         void openGraph(QTextStream *t,int version);
00022         void saveGraph(QTextStream *t);
00023         QString Name() { return name; }
00024         QString Label() { return label; }
00025         void setLabel(QString l) { label=l; }
00026         LSource Source() { return source; }
00027         void setSource(LSource s) { source=s; }
00028         PType Type() { return type; }
00029         Style getStyle() { return style; }
00030         void setStyle(Style s) { style = s; }
00031         Symbol getSymbol() { return symbol; }
00032         void setSymbol(Symbol s) { symbol = s; }
00033         int Number() { return number; }
00034         void setNumber(int n) { number = n; }
00035         bool isShown() { return shown; }
00036         void setShown(bool b) { shown = b; }
00037         AnnotateValues getAnnotateValues() { return av; }
00038         void setAnnotateValues(AnnotateValues a) { av=a;}
00039         
00040 protected:
00041         QString name, label;    // name and label (plotted name)
00042         LSource source;
00043         PType type;             // plot type of a graph
00044         Style style;
00045         Symbol symbol;
00046         int number;
00047         bool shown;             // shown/hidden
00048         AnnotateValues av;
00049 };
00050 
00051 #endif // GRAPH_H

Generated on Sun Nov 28 22:31:16 2004 for LabPlot by doxygen 1.3.6