Changeset 4331 in ntrip
- Timestamp:
- Jun 23, 2012, 7:47:04 PM (12 years ago)
- Location:
- trunk/BNC
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_point_polar.h
r4271 r4331 53 53 54 54 QwtPointPolar normalized() const; 55 56 double _value; // Change by LM 55 57 56 58 private: -
trunk/BNC/src/rinex/polarplot.cpp
r4329 r4331 34 34 for (int ii = from; ii <= to; ii++) { 35 35 QwtSymbol ss(symbol); 36 const t_polarData* polarData = reinterpret_cast<const t_polarData*>(data()); 37 const t_polarPoint& point = polarData->sample(ii); 36 const QwtPointPolar& point = sample(ii); 38 37 const QColor color = colorMap.color(QwtInterval(0.0, 1.0), point._value); 39 38 ss.setBrush(QBrush(color)); … … 45 44 // Sample (virtual) - this is for testing only 46 45 //////////////////////////////////////////////////////////////////////////// 47 t_polarPointt_polarData::sample(size_t ii) const {46 QwtPointPolar t_polarData::sample(size_t ii) const { 48 47 const QwtInterval zenithInterval(0.0, 90.0); 49 48 const QwtInterval azimuthInterval(0.0, 360.0 ); … … 57 56 double value = static_cast<double>(ii) / _size; 58 57 59 return t_polarPoint(aa, rr, value); 58 QwtPointPolar point(aa,rr); 59 point._value = value; 60 61 return point; 60 62 } 61 63 … … 70 72 QSize(3, 3))); 71 73 t_polarData* data = new t_polarData(numPoints); 72 curve->setData( reinterpret_cast<QwtSeriesData<QwtPointPolar>*>(data));74 curve->setData(data); 73 75 return curve; 74 76 } -
trunk/BNC/src/rinex/polarplot.h
r4329 r4331 20 20 // 21 21 ////////////////////////////////////////////////////////////////////////////// 22 class t_polarPoint : public QwtPointPolar { 23 public: 24 t_polarPoint(double az, double zen, double value) : QwtPointPolar(az, zen) { 25 _value = value; 26 } 27 ~t_polarPoint() {} 28 double _value; // the third coordinate 29 }; 30 31 // 32 ////////////////////////////////////////////////////////////////////////////// 33 class t_polarData: public QwtSeriesData<t_polarPoint> { 22 class t_polarData: public QwtSeriesData<QwtPointPolar> { 34 23 public: 35 24 t_polarData(size_t size) { 36 25 _size = size; 37 26 } 38 virtual t_polarPointsample(size_t ii) const;27 virtual QwtPointPolar sample(size_t ii) const; 39 28 virtual size_t size() const {return _size;} 40 29 virtual QRectF boundingRect() const { -
trunk/BNC/src/src.pro
r4306 r4331 4 4 # Switch to debug configuration 5 5 # ----------------------------- 6 CONFIG -= debug7 CONFIG += release6 CONFIG -= release 7 CONFIG += debug 8 8 9 9 DEFINES += NO_RTCM3_MAIN
Note:
See TracChangeset
for help on using the changeset viewer.