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

GraphVTK.h

Go to the documentation of this file.
00001 //LabPlot : GraphVTK.h
00002 
00003 #ifndef GRAPHVTK_H
00004 #define GRAPHVTK_H
00005 
00006 #include <qstringlist.h>
00007 #include <qtextstream.h>
00008 #include <qprogressdialog.h>
00009 #include <kdebug.h>
00010 #include "Graph.h"
00011 #include "Point.h"
00012 
00013 #ifdef HAVE_VTK
00014 // vtk header
00015 #endif
00016 
00017 class GraphVTK: public Graph
00018 {
00019 public:
00020         GraphVTK(QString n="", QString l="",LRange r[3]=0, LSource src=SFUNCTION, PType t=PVTK, Style *st=0, 
00021                 Symbol *sy=0, int nr=0);
00022         LRange getRange(int i) { return range[i]; }
00023         void setRange(LRange *r) { range[0]=r[0];range[1]=r[1];range[2]=r[2]; }
00024         QStringList Info();
00025 
00026         int getObject() { return object; }
00027         void setObject(int o) { object = o; }
00028         QColor getColor() { return color; }
00029         void setColor(QColor c) { color=c; }
00030         bool getBoxed() { return boxed; }
00031         void setBoxed(bool b) { boxed = b; }
00032 
00033         void save(QTextStream *t);
00034         void open(QTextStream *t, int version, QProgressDialog *progress);
00035 private:
00036         LRange *range;
00037         int object;             // type of object : 0-cone,1-cube,2-sphere,3-cylinder,4-point
00038         QColor color;   // object color
00039         bool boxed;             // draw box
00040 };
00041 
00042 #endif // GRAPHVTK_H

Generated on Fri Mar 25 19:47:03 2005 for LabPlot by doxygen 1.3.6