Changeset 2896 for trunk/src/Plotter2.h
- Timestamp:
- 02/20/14 21:40:16 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Plotter2.h
r2895 r2896 10 10 11 11 namespace asap { 12 13 class Plotter2AnnotationInfo { 14 public: 15 Plotter2AnnotationInfo(); 16 ~Plotter2AnnotationInfo(); 17 18 std::string text; 19 float posx; 20 float posy; 21 float angle; 22 float fjust; 23 float size; 24 int color; 25 int bgcolor; 26 }; 27 28 class Plotter2ArrowInfo { 29 public: 30 Plotter2ArrowInfo(); 31 ~Plotter2ArrowInfo(); 32 33 float xhead; 34 float xtail; 35 float yhead; 36 float ytail; 37 38 int color; 39 int width; 40 int lineStyle; 41 float headSize; 42 int headFillStyle; 43 float headAngle; 44 float headVent; 45 }; 12 46 13 47 class Plotter2RectInfo { … … 101 135 // rectangles 102 136 std::vector<Plotter2RectInfo> vRect; 137 138 // arrows 139 std::vector<Plotter2ArrowInfo> vArro; 140 141 //annotations 142 std::vector<Plotter2AnnotationInfo> vAnno; 103 143 104 144 // x-label … … 198 238 void hidePoint(const int inVpid, const int inDataid); 199 239 void setMaskX(const float xmin, const float xmax, const int color, const int fill, const int width, const float hsep, const int inVpid); 240 void setArrow(const float xtail, const float xhead, const float ytail, const float yhead, const int color, const int width, const int lineStyle, const float headSize, const int headFillStyle, const float headAngle, const float headVent, const int inVpid, const int inArrowid); 241 void setAnnotation(const std::string& label, const float posx, const float posy, const float angle, const float fjust, const float size, const std::string& style, const int color, const int bgcolor, const int inVpid, const int inAnnid); 200 242 void setLabelX(const std::string& label, const float posx, const float posy, const float size, const std::string& style, const int color, const int bgcolor, const int inVpid); 201 243 void setLabelY(const std::string& label, const float posx, const float posy, const float size, const std::string& style, const int color, const int bgcolor, const int inVpid); 202 244 void setTitle(const std::string& label, const float posx, const float posy, const float size, const std::string& style, const int color, const int bgcolor, const int inVpid); 203 245 void setViewportBackgroundColor(const int bgcolor, const int inVpid); 204 //void setAnnotation(const std::string& label, const float posx, const float posy, const float angle, const float fjust, const float size, const std::string& style, const int color, const int bgcolor, const int inVpid);205 246 void plot(); 206 247 private: … … 215 256 void open(); 216 257 void close(); 258 void resetAttributes(const Plotter2ViewportInfo& vi); 217 259 }; 218 260
Note: See TracChangeset
for help on using the changeset viewer.