MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / paintAzimuthElevationSatPath

Method paintAzimuthElevationSatPath

Components/FrequencyCorrectionDialog.cpp:315–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313}
314
315void
316FrequencyCorrectionDialog::paintAzimuthElevationSatPath(QPixmap &pixmap)
317{
318 QPainter p(&pixmap);
319 xyz_t azel;
320
321 QPen pen(
322 this->colors.constellationForeground,
323 FREQUENCY_CORRECTION_DIALOG_OVERSAMPLING);
324
325 if (this->haveOrbit) {
326 qreal mkwidth =
327 (this->azElAxesRadius / 40) * FREQUENCY_CORRECTION_DIALOG_OVERSAMPLING;
328
329 this->paintAzimuthElevationPass(p);
330
331 sgdp4_prediction_update(&this->prediction, &this->timeStamp);
332 sgdp4_prediction_get_azel(&this->prediction, &azel);
333
334 if (azel.elevation > 0) {
335 p.setBrush(Qt::cyan);
336 p.drawEllipse(
337 this->azElToPoint(azel),
338 mkwidth,
339 mkwidth);
340
341 pen.setColor(this->colors.spectrumText);
342 p.setPen(pen);
343
344 this->paintTextAt(
345 p,
346 this->azElToPoint(azel),
347 " " + QString(
348 this->currentOrbit.name == nullptr
349 ? "NO NAME"
350 : this->currentOrbit.name));
351 }
352 }
353}
354
355void
356FrequencyCorrectionDialog::repaintSatellitePlot(void)

Callers 1

repaintSatellitePlotMethod · 0.95

Calls 4

azElToPointMethod · 0.95
paintTextAtMethod · 0.95
setColorMethod · 0.80

Tested by

no test coverage detected