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

Method giveSpectrum

Components/DopplerDialog.cpp:163–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163void
164DopplerDialog::giveSpectrum(std::vector<SUCOMPLEX> &&data)
165{
166 this->data = std::move(data);
167 this->ui->waveform->setData(&this->data);
168 this->ui->waveform->setRealComponent(true);
169 this->ui->waveform->setOriginX(-static_cast<qint64>(this->data.size()) / 2.);
170 this->ui->waveform->setSampleRate(this->fs);
171}
172
173DopplerDialog::~DopplerDialog()
174{

Callers 1

onTaskDoneMethod · 0.80

Calls 3

setDataMethod · 0.80
sizeMethod · 0.45
setSampleRateMethod · 0.45

Tested by

no test coverage detected