Changeset 4316 in ntrip for trunk/BNC


Ignore:
Timestamp:
Jun 23, 2012, 3:38: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

    r4315 r4316  
    2222
    2323#include "polarplot.h"
     24
     25// Constructor
     26////////////////////////////////////////////////////////////////////////////
     27t_polarCurve::t_polarCurve() {
     28}
     29
     30// Destructor (virtual)
     31////////////////////////////////////////////////////////////////////////////
     32t_polarCurve::~t_polarCurve() {
     33}
     34
     35// drawSymbols (virtual)
     36////////////////////////////////////////////////////////////////////////////
     37void t_polarCurve::drawSymbols(QPainter* painter, const QwtSymbol& symbol,
     38                               const QwtScaleMap& azimuthMap,
     39                               const QwtScaleMap& radialMap,
     40                               const QPointF& pole, int from, int to) const {
     41  for (int ii = from; ii <= to; ii++) {
     42    QwtPolarCurve::drawSymbols(painter, symbol, azimuthMap,
     43                               radialMap, pole, ii, ii);
     44  }
     45}
     46
    2447
    2548const QwtInterval zenithInterval(0.0, 90.0);
     
    108131  // Curves
    109132  // ------
    110   QwtPolarCurve* curve = createCurve();
     133  t_polarCurve* curve = createCurve();
    111134  curve->attach(this);
    112135}
     
    119142//
    120143////////////////////////////////////////////////////////////////////////////
    121 QwtPolarCurve* t_polarPlot::createCurve() const {
     144t_polarCurve* t_polarPlot::createCurve() const {
    122145  const int numPoints = 200;
    123   QwtPolarCurve* curve = new QwtPolarCurve();
     146  t_polarCurve* curve = new t_polarCurve();
    124147  curve->setStyle(QwtPolarCurve::NoCurve);  // draw only symbols
    125148  curve->setSymbol(new QwtSymbol(QwtSymbol::Ellipse,
  • trunk/BNC/src/rinex/polarplot.h

    r4314 r4316  
    55#include <qwt_polar_plot.h>
    66#include <qwt_polar_curve.h>
     7
     8class t_polarCurve : public QwtPolarCurve {
     9 public:
     10  t_polarCurve();
     11  virtual ~t_polarCurve();
     12 protected:
     13   virtual void drawSymbols (QPainter* painter, const QwtSymbol& symbol,
     14                             const QwtScaleMap& azimuthMap,
     15                             const QwtScaleMap& radialMap,
     16                             const QPointF& pole, int from, int to) const;
     17};
    718
    819class t_polarPlot: public QwtPolarPlot {
     
    1627
    1728 private:
    18   QwtPolarCurve* createCurve() const;
     29  t_polarCurve* createCurve() const;
    1930};
    2031
Note: See TracChangeset for help on using the changeset viewer.