- Timestamp:
- Jun 23, 2012, 3:38:25 PM (12 years ago)
- Location:
- trunk/BNC/src/rinex
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/polarplot.cpp
r4315 r4316 22 22 23 23 #include "polarplot.h" 24 25 // Constructor 26 //////////////////////////////////////////////////////////////////////////// 27 t_polarCurve::t_polarCurve() { 28 } 29 30 // Destructor (virtual) 31 //////////////////////////////////////////////////////////////////////////// 32 t_polarCurve::~t_polarCurve() { 33 } 34 35 // drawSymbols (virtual) 36 //////////////////////////////////////////////////////////////////////////// 37 void t_polarCurve::drawSymbols(QPainter* painter, const QwtSymbol& symbol, 38 const QwtScaleMap& azimuthMap, 39 const QwtScaleMap& radialMap, 40 const QPointF& pole, int from, int to) const { 41 for (int ii = from; ii <= to; ii++) { 42 QwtPolarCurve::drawSymbols(painter, symbol, azimuthMap, 43 radialMap, pole, ii, ii); 44 } 45 } 46 24 47 25 48 const QwtInterval zenithInterval(0.0, 90.0); … … 108 131 // Curves 109 132 // ------ 110 QwtPolarCurve* curve = createCurve();133 t_polarCurve* curve = createCurve(); 111 134 curve->attach(this); 112 135 } … … 119 142 // 120 143 //////////////////////////////////////////////////////////////////////////// 121 QwtPolarCurve* t_polarPlot::createCurve() const {144 t_polarCurve* t_polarPlot::createCurve() const { 122 145 const int numPoints = 200; 123 QwtPolarCurve* curve = new QwtPolarCurve();146 t_polarCurve* curve = new t_polarCurve(); 124 147 curve->setStyle(QwtPolarCurve::NoCurve); // draw only symbols 125 148 curve->setSymbol(new QwtSymbol(QwtSymbol::Ellipse, -
trunk/BNC/src/rinex/polarplot.h
r4314 r4316 5 5 #include <qwt_polar_plot.h> 6 6 #include <qwt_polar_curve.h> 7 8 class t_polarCurve : public QwtPolarCurve { 9 public: 10 t_polarCurve(); 11 virtual ~t_polarCurve(); 12 protected: 13 virtual void drawSymbols (QPainter* painter, const QwtSymbol& symbol, 14 const QwtScaleMap& azimuthMap, 15 const QwtScaleMap& radialMap, 16 const QPointF& pole, int from, int to) const; 17 }; 7 18 8 19 class t_polarPlot: public QwtPolarPlot { … … 16 27 17 28 private: 18 QwtPolarCurve* createCurve() const;29 t_polarCurve* createCurve() const; 19 30 }; 20 31
Note:
See TracChangeset
for help on using the changeset viewer.