Changeset 4317 in ntrip


Ignore:
Timestamp:
Jun 23, 2012, 3:41:46 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r4316 r4317  
    3333}
    3434
    35 // drawSymbols (virtual)
     35// Draw Symbols (virtual) - change symbol's color
    3636////////////////////////////////////////////////////////////////////////////
    3737void t_polarCurve::drawSymbols(QPainter* painter, const QwtSymbol& symbol,
     
    4040                               const QPointF& pole, int from, int to) const {
    4141  for (int ii = from; ii <= to; ii++) {
    42     QwtPolarCurve::drawSymbols(painter, symbol, azimuthMap,
    43                                radialMap, pole, ii, ii);
     42    QwtSymbol ss(symbol);
     43    if (ii % 2 == 0) {
     44      ss.setPen(QPen(Qt::red));
     45    }
     46    else {
     47      ss.setPen(QPen(Qt::blue));
     48    }
     49    QwtPolarCurve::drawSymbols(painter, ss, azimuthMap, radialMap, pole, ii,ii);
    4450  }
    4551}
Note: See TracChangeset for help on using the changeset viewer.