Changeset 4322 in ntrip


Ignore:
Timestamp:
Jun 23, 2012, 4:51:25 PM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/rinex
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/polarplot.cpp

    r4321 r4322  
    4343}
    4444
    45 // Sample (virtual)
     45// Sample (virtual) - this is for testing only
    4646////////////////////////////////////////////////////////////////////////////
    4747t_polarPoint t_polarData::sample(size_t ii) const {
     
    5555  const double rr    = zenithInterval.minValue() + ii * stepR;
    5656
    57   return t_polarPoint(aa, rr);
     57  double value = 0.0;
     58  if (ii % 3 == 0) {
     59    value = 1.0;
     60  }
     61
     62  return t_polarPoint(aa, rr, value);
    5863}
    5964
     
    8388  // Scales
    8489  // ------
    85   setScale(QwtPolar::Radius, 0.0, 90.0);
    86   setScale(QwtPolar::Azimuth, 360.0, 0, 30.0);
     90  setScale(QwtPolar::Radius,    0.0, 90.0);
     91  setScale(QwtPolar::Azimuth, 360.0,  0.0, 30.0);
    8792
    8893  // Grids, Axes
  • trunk/BNC/src/rinex/polarplot.h

    r4321 r4322  
    2323class t_polarPoint : public QwtPointPolar {
    2424 public:
    25  t_polarPoint(double azimuth, double zenith) : QwtPointPolar(azimuth, zenith) {}
     25  t_polarPoint(double az, double zen, double value) : QwtPointPolar(az, zen) {
     26    _value = value;
     27  }
    2628  ~t_polarPoint() {}
    27   double zz; // the third coordinate
     29  double _value; // the third coordinate
    2830};
    2931
     
    4143  }
    4244 protected:
    43   size_t      _size;
     45  size_t _size;
    4446};
    4547
Note: See TracChangeset for help on using the changeset viewer.