Changeset 4334 in ntrip for trunk/BNC/src/rinex/reqcanalyze.cpp


Ignore:
Timestamp:
Jun 24, 2012, 10:34:29 AM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r4310 r4334  
    8585void t_reqcAnalyze::slotDisplayGraph() {
    8686  if (((bncApp*) qApp)->mode() == bncApp::interactive) {
     87
     88    QVector<t_polarPoint*>* data1 = new QVector<t_polarPoint*>;
     89
     90    //// beg test
     91    {   
     92      const QwtInterval zenithInterval(0.0, 90.0);
     93      const QwtInterval azimuthInterval(0.0, 360.0 );
     94      const int    numPoints = 1000;
     95      const double stepA     = 4 * azimuthInterval.width() / numPoints;
     96      const double stepR     = zenithInterval.width() / numPoints;
     97      for (int ii = 0; ii < numPoints; ii++) {
     98        double aa = azimuthInterval.minValue() + ii * stepA;
     99        double rr = zenithInterval.minValue() + ii * stepR;
     100        double vv = static_cast<double>(ii) / numPoints;
     101        (*data1) << (new t_polarPoint(aa, rr, vv));
     102      }
     103    }
     104    //// end test
     105
     106    t_polarPlot* plotMP1 = new t_polarPlot(0);
     107    plotMP1->addCurve(data1);
     108
     109    QVector<t_polarPoint*>* data2 = new QVector<t_polarPoint*>;
     110
     111    //// beg test
     112    {   
     113      const QwtInterval zenithInterval(0.0, 90.0);
     114      const QwtInterval azimuthInterval(0.0, 360.0 );
     115      const int    numPoints = 1000;
     116      const double stepA     = 4 * azimuthInterval.width() / numPoints;
     117      const double stepR     = zenithInterval.width() / numPoints;
     118      for (int ii = 0; ii < numPoints; ii++) {
     119        double aa = azimuthInterval.minValue() + ii * stepA;
     120        double rr = zenithInterval.minValue() + ii * stepR;
     121        double vv = static_cast<double>(ii) / numPoints;
     122        (*data2) << (new t_polarPoint(aa, rr, vv));
     123      }
     124    }
     125    //// end test
     126
     127    t_polarPlot* plotMP2 = new t_polarPlot(0);
     128    plotMP2->addCurve(data2);
     129   
    87130    QVector<QWidget*> plots;
    88     t_polarPlot* plotMP1 = new t_polarPlot(0); plots << plotMP1;
    89     t_polarPlot* plotMP2 = new t_polarPlot(0); plots << plotMP2;
    90    
     131    plots << plotMP1;
     132    plots << plotMP2;
     133
    91134    t_graphWin* graphWin = new t_graphWin(0, plots);
     135
    92136    graphWin->show();
    93137  }
Note: See TracChangeset for help on using the changeset viewer.