27 #ifndef GPSCONSTELLATIONWIDGET_H_
28 #define GPSCONSTELLATIONWIDGET_H_
30 #include <QGraphicsView>
31 #include <QtSvg/QSvgRenderer>
32 #include <QtSvg/QGraphicsSvgItem>
43 void updateSat(
int index,
int prn,
int elevation,
int azimuth,
int snr);
48 static const int MAX_SATELLITES = 32;
49 int satellites[MAX_SATELLITES][4];
50 QGraphicsScene *scene;
51 QSvgRenderer *renderer;
52 QGraphicsSvgItem *world;
53 QGraphicsSvgItem *satIcons[MAX_SATELLITES];
54 QGraphicsSimpleTextItem *satTexts[MAX_SATELLITES];
56 QPointF polarToCoord(
int elevation,
int azimuth);
~GpsConstellationWidget()
void showEvent(QShowEvent *event)
void updateSat(int index, int prn, int elevation, int azimuth, int snr)
GpsConstellationWidget(QWidget *parent=nullptr)
void resizeEvent(QResizeEvent *event)