Changeset 4328 in ntrip for trunk/BNC/src/rinex


Ignore:
Timestamp:
Jun 23, 2012, 6:04:45 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

    r4327 r4328  
    2020#include <qwt_symbol.h>
    2121#include <qwt_polar_grid.h>
    22 #include <qwt_color_map.h>
     22#include <qwt_scale_widget.h>
    2323
    2424#include "polarplot.h"
    25 
    26 class t_colorMap: public QwtLinearColorMap {
    27  public:
    28   t_colorMap() : QwtLinearColorMap(Qt::darkBlue, Qt::yellow) {
    29     addColorStop(0.05, Qt::blue);
    30     addColorStop(0.30, Qt::cyan);
    31     addColorStop(0.60, Qt::green);
    32     addColorStop(0.98, Qt::red);
    33   }
    34 };
    35 
    36 t_colorMap colorMap;
    3725
    3826// Draw Symbols (virtual) - change symbol's color
     
    4230                               const QwtScaleMap& radialMap,
    4331                               const QPointF& pole, int from, int to) const {
     32  t_colorMap colorMap;
    4433  for (int ii = from; ii <= to; ii++) {
    4534    QwtSymbol ss(symbol);
     
    119108  grid->attach(this);
    120109
     110  _colorMap = new t_colorMap();
     111  QwtScaleWidget* colorScale = new QwtScaleWidget(this);
     112  colorScale->setAlignment(QwtScaleDraw::RightScale);
     113  colorScale->setColorBarEnabled(true);
     114  colorScale->setColorMap(QwtInterval(0.0,1.0), _colorMap);
     115
    121116  // Curves
    122117  // ------
  • trunk/BNC/src/rinex/polarplot.h

    r4322 r4328  
    55#include <qwt_polar_plot.h>
    66#include <qwt_polar_curve.h>
     7#include <qwt_color_map.h>
     8
     9//
     10//////////////////////////////////////////////////////////////////////////////
     11class t_colorMap: public QwtLinearColorMap {
     12 public:
     13  t_colorMap() : QwtLinearColorMap(Qt::darkBlue, Qt::yellow) {
     14    addColorStop(0.05, Qt::blue);
     15    addColorStop(0.30, Qt::cyan);
     16    addColorStop(0.60, Qt::green);
     17    addColorStop(0.98, Qt::red);
     18  }
     19};
    720
    821//
     
    5669 private:
    5770  t_polarCurve* createCurve() const;
     71  t_colorMap*   _colorMap;
    5872};
    5973
Note: See TracChangeset for help on using the changeset viewer.