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


Ignore:
Timestamp:
Jun 24, 2012, 6:52:38 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r4345 r4356  
    3333    QwtSymbol ss(symbol);
    3434    const QwtPointPolar& point = sample(ii);
    35     const QColor color = colorMap.color(QwtInterval(0.0, 1.0), point._value);
     35    const QColor color = colorMap.color(_scaleInterval, point._value);
    3636    ss.setBrush(QBrush(color));
    3737    ss.setPen(QPen(color));
     
    4242// Constructor
    4343////////////////////////////////////////////////////////////////////////////
    44 t_polarPlot::t_polarPlot(const QwtText& title, QWidget* parent) :
     44t_polarPlot::t_polarPlot(const QwtText& title, const QwtInterval& scaleInterval,
     45                         QWidget* parent) : QwtPolarPlot(title, parent) {
    4546
    46   QwtPolarPlot(title, parent) {
     47  _scaleInterval = scaleInterval;
    4748
    4849  setPlotBackground(Qt::white);
     
    8182void t_polarPlot::addCurve(QVector<t_polarPoint*>* data) {
    8283  t_polarCurve* curve = new t_polarCurve();
     84  curve->setScaleInterval(_scaleInterval);
    8385  curve->setStyle(QwtPolarCurve::NoCurve);  // draw only symbols
    8486  curve->setSymbol(new QwtSymbol(QwtSymbol::Ellipse,
Note: See TracChangeset for help on using the changeset viewer.