Changeset 4629 in ntrip


Ignore:
Timestamp:
Sep 1, 2012, 2:48:11 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncmap_svg.cpp

    r4628 r4629  
    66#include <qwt_plot_curve.h>
    77#include <qwt_plot_marker.h>
    8 #include <qwt_plot_grid.h>
    9 #include <qwt_plot_layout.h>
    108#include <qwt_plot_canvas.h>
    119#include <qwt_plot_panner.h>
    1210#include <qwt_plot_magnifier.h>
     11#include <qwt_symbol.h>
    1312
    1413#include "bncmap.h"
     
    4443/////////////////////////////////////////////////////////////////////////////
    4544void t_bncMap::slotNewPoint(const QString& name, double latDeg, double lonDeg) {
     45  QColor red(220,20,60);
     46  QwtSymbol* symbol = new QwtSymbol(QwtSymbol::Rect, QBrush(red),
     47                                    QPen(red), QSize(2,2));
    4648  QwtPlotMarker* marker = new QwtPlotMarker();
    4749  marker->setValue(lonDeg, latDeg);
     50  marker->setLabelAlignment(Qt::AlignRight);
    4851  marker->setLabel(QwtText(name.left(4)));
     52  marker->setSymbol(symbol);
    4953  marker->attach(_mapPlot);
    5054}
Note: See TracChangeset for help on using the changeset viewer.