NDEVR
API Documentation
CAzimuthElevationWidget

A skyplot widget that renders satellite positions in an azimuth-elevation polar diagram, showing their relative positions and signal strengths. More...

Collaboration diagram for CAzimuthElevationWidget:
[legend]

Public Member Functions

 CAzimuthElevationWidget (QWidget *parent=0)
 Constructs the azimuth-elevation widget.
fltp08 activeRenderRatio ()
 Returns the current animation render ratio for smooth transitions.
void paintEvent (QPaintEvent *)
 Paints the skyplot diagram and satellite positions.
void setActiveRenderRatio (fltp08 quality)
 Sets the render ratio for animation interpolation.
void setSensor (GPSSensor *sensor)
 Sets the GPS sensor to visualize.
QSize sizeHint () const
 Returns the preferred size for this widget.

Protected Member Functions

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.

Protected Attributes

fltp08 m_current_render_ratio = 0.0
 Current animation interpolation ratio.
Dictionary< UUID, GNSSSatelliteInfom_current_render_sat_info
 Interpolated satellite info for rendering.
Dictionary< UUID, GNSSSatelliteInfom_current_sat_info
 Current satellite info from sensor.
QPointer< QPropertyAnimation > m_primary_animation
 Animation for smooth satellite position transitions.
GPSSensorm_sensor
 The GPS sensor providing satellite data.

Detailed Description

A skyplot widget that renders satellite positions in an azimuth-elevation polar diagram, showing their relative positions and signal strengths.

Definition at line 12 of file CAzimuthElevationWidget.h.

Constructor & Destructor Documentation

◆ CAzimuthElevationWidget()

CAzimuthElevationWidget::CAzimuthElevationWidget ( QWidget * parent = 0)
explicit

Constructs the azimuth-elevation widget.

Parameters
[in]parentOptional parent widget.

Member Function Documentation

◆ activeRenderRatio()

fltp08 CAzimuthElevationWidget::activeRenderRatio ( )
inline

Returns the current animation render ratio for smooth transitions.

Returns
The render ratio (0.0 to 1.0).

Definition at line 28 of file CAzimuthElevationWidget.h.

References m_current_render_ratio.

◆ AEToPoint()

QPointF CAzimuthElevationWidget::AEToPoint ( qreal dCenterX,
qreal dCenterY,
Angle< fltp08 > nAzimuth,
fltp08 nElevation,
QRectF & DrawRect )
protected

Converts azimuth and elevation angles to a screen point within the draw rectangle.

Parameters
[in]dCenterXThe center X coordinate.
[in]dCenterYThe center Y coordinate.
[in]nAzimuthThe azimuth angle.
[in]nElevationThe elevation value.
[in]DrawRectThe bounding rectangle for the plot.
Returns
The computed screen point.

◆ paintEvent()

void CAzimuthElevationWidget::paintEvent ( QPaintEvent * )

Paints the skyplot diagram and satellite positions.

Parameters
[in]eventThe paint event.

◆ setActiveRenderRatio()

void CAzimuthElevationWidget::setActiveRenderRatio ( fltp08 quality)

Sets the render ratio for animation interpolation.

Parameters
[in]qualityThe render ratio to set.

◆ setSensor()

void CAzimuthElevationWidget::setSensor ( GPSSensor * sensor)

Sets the GPS sensor to visualize.

Parameters
[in]sensorThe GPS sensor.

◆ sizeHint()

QSize CAzimuthElevationWidget::sizeHint ( ) const

Returns the preferred size for this widget.

Returns
The recommended size hint.

The documentation for this class was generated from the following file: