Changeset 4328 in ntrip for trunk/BNC/src/rinex
- Timestamp:
- Jun 23, 2012, 6:04:45 PM (12 years ago)
- Location:
- trunk/BNC/src/rinex
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/polarplot.cpp
r4327 r4328 20 20 #include <qwt_symbol.h> 21 21 #include <qwt_polar_grid.h> 22 #include <qwt_ color_map.h>22 #include <qwt_scale_widget.h> 23 23 24 24 #include "polarplot.h" 25 26 class t_colorMap: public QwtLinearColorMap {27 public:28 t_colorMap() : QwtLinearColorMap(Qt::darkBlue, Qt::yellow) {29 addColorStop(0.05, Qt::blue);30 addColorStop(0.30, Qt::cyan);31 addColorStop(0.60, Qt::green);32 addColorStop(0.98, Qt::red);33 }34 };35 36 t_colorMap colorMap;37 25 38 26 // Draw Symbols (virtual) - change symbol's color … … 42 30 const QwtScaleMap& radialMap, 43 31 const QPointF& pole, int from, int to) const { 32 t_colorMap colorMap; 44 33 for (int ii = from; ii <= to; ii++) { 45 34 QwtSymbol ss(symbol); … … 119 108 grid->attach(this); 120 109 110 _colorMap = new t_colorMap(); 111 QwtScaleWidget* colorScale = new QwtScaleWidget(this); 112 colorScale->setAlignment(QwtScaleDraw::RightScale); 113 colorScale->setColorBarEnabled(true); 114 colorScale->setColorMap(QwtInterval(0.0,1.0), _colorMap); 115 121 116 // Curves 122 117 // ------ -
trunk/BNC/src/rinex/polarplot.h
r4322 r4328 5 5 #include <qwt_polar_plot.h> 6 6 #include <qwt_polar_curve.h> 7 #include <qwt_color_map.h> 8 9 // 10 ////////////////////////////////////////////////////////////////////////////// 11 class t_colorMap: public QwtLinearColorMap { 12 public: 13 t_colorMap() : QwtLinearColorMap(Qt::darkBlue, Qt::yellow) { 14 addColorStop(0.05, Qt::blue); 15 addColorStop(0.30, Qt::cyan); 16 addColorStop(0.60, Qt::green); 17 addColorStop(0.98, Qt::red); 18 } 19 }; 7 20 8 21 // … … 56 69 private: 57 70 t_polarCurve* createCurve() const; 71 t_colorMap* _colorMap; 58 72 }; 59 73
Note:
See TracChangeset
for help on using the changeset viewer.