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

Method feed

Components/PanoramicDialog.cpp:454–483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

452}
453
454void
455PanoramicDialog::feed(
456 qint64 freqStart,
457 qint64 freqEnd,
458 float *data,
459 size_t size)
460{
461 if (this->freqStart != freqStart || this->freqEnd != freqEnd) {
462 this->freqStart = freqStart;
463 this->freqEnd = freqEnd;
464
465 this->adjustingRange = true;
466 this->setWfRange(
467 static_cast<qint64>(freqStart),
468 static_cast<qint64>(freqEnd));
469 this->adjustingRange = false;
470 }
471
472 this->saved.set(
473 static_cast<qint64>(freqStart),
474 static_cast<qint64>(freqEnd),
475 data,
476 size);
477
478 this->ui->exportButton->setEnabled(true);
479 this->ui->waterfall->setNewFftData(data, static_cast<int>(size));
480
481 ++this->frames;
482 this->redrawMeasures();
483}
484
485void
486PanoramicDialog::setColors(ColorConfig const &cfg)

Callers

nothing calls this directly

Calls 4

setWfRangeMethod · 0.95
redrawMeasuresMethod · 0.95
setMethod · 0.45
setEnabledMethod · 0.45

Tested by

no test coverage detected