Changeset 4331 in ntrip for trunk/BNC/src/rinex/polarplot.cpp


Ignore:
Timestamp:
Jun 23, 2012, 7:47:04 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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}
Note: See TracChangeset for help on using the changeset viewer.