| 313 | } |
| 314 | |
| 315 | void |
| 316 | FrequencyCorrectionDialog::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 | |
| 355 | void |
| 356 | FrequencyCorrectionDialog::repaintSatellitePlot(void) |
no test coverage detected