Changeset 4329 in ntrip
- Timestamp:
- Jun 23, 2012, 6:35:24 PM (12 years ago)
- Location:
- trunk/BNC/src/rinex
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/graphwin.cpp
r4310 r4329 40 40 41 41 #include "graphwin.h" 42 #include "qwt_scale_widget.h" 42 43 43 44 using namespace std; … … 61 62 connect(_buttonOK, SIGNAL(clicked()), this, SLOT(slotOK())); 62 63 64 // Color Scale 65 // ----------- 66 _colorScale = new QwtScaleWidget( this ); 67 _colorScale->setAlignment( QwtScaleDraw::RightScale ); 68 _colorScale->setColorBarEnabled( true ); 69 70 QwtText title( "Intensity" ); 71 QFont font = _colorScale->font(); 72 font.setBold( true ); 73 title.setFont( font ); 74 _colorScale->setTitle( title ); 75 76 _colorScale->setColorMap(QwtInterval(0.0, 1.0), new t_colorMap()); 77 63 78 // Layout 64 79 // ------ … … 67 82 plotLayout->addWidget(plots[ip]); 68 83 } 84 plotLayout->addWidget(_colorScale); 69 85 70 86 QHBoxLayout* buttonLayout = new QHBoxLayout; -
trunk/BNC/src/rinex/graphwin.h
r4310 r4329 28 28 #include <QtCore> 29 29 #include <QtGui> 30 #include <qwt_color_map.h> 30 31 32 class QwtScaleWidget; 33 34 // 35 ////////////////////////////////////////////////////////////////////////////// 36 class t_colorMap: public QwtLinearColorMap { 37 public: 38 t_colorMap() : QwtLinearColorMap(Qt::darkBlue, Qt::yellow) { 39 addColorStop(0.05, Qt::blue); 40 addColorStop(0.30, Qt::cyan); 41 addColorStop(0.60, Qt::green); 42 addColorStop(0.98, Qt::red); 43 } 44 }; 45 46 // 47 ////////////////////////////////////////////////////////////////////////////// 31 48 class t_graphWin : public QDialog { 32 49 … … 46 63 47 64 private: 48 QPushButton* _buttonOK; 65 QPushButton* _buttonOK; 66 QwtScaleWidget* _colorScale; 49 67 }; 50 68 -
trunk/BNC/src/rinex/polarplot.cpp
r4328 r4329 23 23 24 24 #include "polarplot.h" 25 #include "graphwin.h" 25 26 26 27 // Draw Symbols (virtual) - change symbol's color … … 108 109 grid->attach(this); 109 110 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 116 111 // Curves 117 112 // ------ -
trunk/BNC/src/rinex/polarplot.h
r4328 r4329 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 };20 21 7 // 22 8 ////////////////////////////////////////////////////////////////////////////// … … 69 55 private: 70 56 t_polarCurve* createCurve() const; 71 t_colorMap* _colorMap;72 57 }; 73 58
Note:
See TracChangeset
for help on using the changeset viewer.