00001 // LabPlot : AnnotateValues.h 00002 00003 #ifndef ANNOTATEVALUES_H 00004 #define ANNOTATEVALUES_H 00005 00006 #include "Point.h" 00007 00008 class AnnotateValues 00009 { 00010 public: 00011 AnnotateValues(int t=0, int p=0, int d=10); 00012 void draw(QPainter *p,int X, int Y, double x, double y, double z=0); // draw to p @ X,Y using values x,y,z 00013 void save(QTextStream *t); 00014 void open(QTextStream *t, int version); 00015 00016 int Type() { return type; } 00017 void setType(int t) { type=t; } 00018 int Position() { return position; } 00019 void setPosition(int p) { position=p; } 00020 int Distance() { return distance; } 00021 void setDistance(int d) { distance=d; } 00022 private: 00023 int type; // 0: NONE, 1: x, 2: x, 3: z, 4: x,y, 5: x,y,z 00024 int position; // 0:top,1:bottom,2:left,3:right 00025 int distance; // distance from point 00026 }; 00027 00028 #endif //ANNOTATEVALUES_H