NDEVR
API Documentation
CAzimuthElevationWidget.h
1#pragma once
2#include "GPSInterface/Headers/GPSSensor.h"
3#include "Base/Headers/Dictionary.h"
4#include <QWidget>
5#include <QPropertyAnimation>
6#include <QPointer>
7namespace NDEVR
8{
9 class GPSSensor;
12 class CAzimuthElevationWidget : public QWidget
13 {
14 Q_OBJECT
15 Q_PROPERTY(double current_render_sat_ratio READ activeRenderRatio WRITE setActiveRenderRatio)
16 public:
19 explicit CAzimuthElevationWidget(QWidget* parent = 0);
22 void paintEvent(QPaintEvent*);
25 void setSensor(GPSSensor* sensor);
34 QSize sizeHint() const;
35 protected slots:
38 protected:
46 QPointF AEToPoint(qreal dCenterX, qreal dCenterY, Angle<fltp08> nAzimuth, fltp08 nElevation, QRectF& DrawRect);
49#if GNSS_USE_ANIMATIONS
50 QPointer<QPropertyAnimation> m_primary_animation;
51#endif
54 };
55}
Stores an angle in an optimized internal format with support for efficient trigonometric operations.
Definition Angle.h:83
GPSSensor * m_sensor
The GPS sensor providing satellite data.
CAzimuthElevationWidget(QWidget *parent=0)
Constructs the azimuth-elevation widget.
fltp08 m_current_render_ratio
Current animation interpolation ratio.
QPointer< QPropertyAnimation > m_primary_animation
Animation for smooth satellite position transitions.
QPointF AEToPoint(qreal dCenterX, qreal dCenterY, Angle< fltp08 > nAzimuth, fltp08 nElevation, QRectF &DrawRect)
Converts azimuth and elevation angles to a screen point within the draw rectangle.
void OnNewPositionUpdateGPS()
Slot called when new GPS position data is available.
Dictionary< UUID, GNSSSatelliteInfo > m_current_sat_info
Current satellite info from sensor.
void setActiveRenderRatio(fltp08 quality)
Sets the render ratio for animation interpolation.
Dictionary< UUID, GNSSSatelliteInfo > m_current_render_sat_info
Interpolated satellite info for rendering.
QSize sizeHint() const
Returns the preferred size for this widget.
void paintEvent(QPaintEvent *)
Paints the skyplot diagram and satellite positions.
void setSensor(GPSSensor *sensor)
Sets the GPS sensor to visualize.
fltp08 activeRenderRatio()
Returns the current animation render ratio for smooth transitions.
A hash-based key-value store, useful for quick associative lookups.
Definition Dictionary.h:64
A GPS sensor implementation that receives NMEA data from serial connections, files,...
Definition GPSSensor.h:61
The primary namespace for the NDEVR SDK.
double fltp08
Defines an alias representing an 8 byte floating-point number.