Changeset 4331 in ntrip


Ignore:
Timestamp:
Jun 23, 2012, 7:47:04 PM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/qwt/qwt_point_polar.h

    r4271 r4331  
    5353
    5454    QwtPointPolar normalized() const;
     55
     56    double _value; // Change by LM
    5557
    5658private:
  • trunk/BNC/src/rinex/polarplot.cpp

    r4329 r4331  
    3434  for (int ii = from; ii <= to; ii++) {
    3535    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);
    3837    const QColor color = colorMap.color(QwtInterval(0.0, 1.0), point._value);
    3938    ss.setBrush(QBrush(color));
     
    4544// Sample (virtual) - this is for testing only
    4645////////////////////////////////////////////////////////////////////////////
    47 t_polarPoint t_polarData::sample(size_t ii) const {
     46QwtPointPolar t_polarData::sample(size_t ii) const {
    4847  const QwtInterval zenithInterval(0.0, 90.0);
    4948  const QwtInterval azimuthInterval(0.0, 360.0 );
     
    5756  double value = static_cast<double>(ii) / _size;
    5857
    59   return t_polarPoint(aa, rr, value);
     58  QwtPointPolar point(aa,rr);
     59  point._value = value;
     60
     61  return point;
    6062}
    6163
     
    7072                                 QSize(3, 3)));
    7173  t_polarData* data = new t_polarData(numPoints);
    72   curve->setData(reinterpret_cast<QwtSeriesData<QwtPointPolar>*>(data));
     74  curve->setData(data);
    7375  return curve;
    7476}
  • trunk/BNC/src/rinex/polarplot.h

    r4329 r4331  
    2020//
    2121//////////////////////////////////////////////////////////////////////////////
    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> {
     22class t_polarData: public QwtSeriesData<QwtPointPolar> {
    3423 public:
    3524  t_polarData(size_t size) {
    3625    _size = size;
    3726  }
    38   virtual t_polarPoint sample(size_t ii) const;
     27  virtual QwtPointPolar sample(size_t ii) const;
    3928  virtual size_t size() const {return _size;}
    4029  virtual QRectF boundingRect() const {
  • trunk/BNC/src/src.pro

    r4306 r4331  
    44# Switch to debug configuration
    55# -----------------------------
    6 CONFIG -= debug
    7 CONFIG += release
     6CONFIG -= release
     7CONFIG += debug
    88
    99DEFINES += NO_RTCM3_MAIN
Note: See TracChangeset for help on using the changeset viewer.