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

Method setData

Components/TimeWindow.cpp:979–1002  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

977}
978
979void
980TimeWindow::setData(std::vector<SUCOMPLEX> const &data, qreal fs, qreal bw)
981{
982 if (this->fs != fs) {
983 this->fs = fs;
984 this->ui->costasBwSpin->setValue(this->fs / 200);
985 this->ui->pllCutOffSpin->setValue(this->fs / 200);
986 }
987
988 if (!sufeq(this->bw, bw, 1e-6)) {
989 this->bw = bw;
990 this->ui->costasArmBwSpin->setValue(bw / 100);
991 }
992
993 this->ui->syncFreqSpin->setMinimum(-this->fs / 2);
994 this->ui->syncFreqSpin->setMaximum(this->fs / 2);
995 this->ui->realWaveform->setSampleRate(fs);
996 this->ui->imagWaveform->setSampleRate(fs);
997
998 this->data = &data;
999
1000 this->setDisplayData(&data);
1001 this->onCarrierSlidersChanged();
1002}
1003
1004void
1005TimeWindow::adjustButtonToSize(QPushButton *button, QString text)

Callers 10

giveSpectrumMethod · 0.80
RMSViewTabMethod · 0.80
setDisplayDataMethod · 0.80
resetRawInspectorMethod · 0.80
openTimeWindowMethod · 0.80
WaveformTabMethod · 0.80
feedMethod · 0.80
clearMethod · 0.80
resizeFACMethod · 0.80
feedMethod · 0.80

Calls 4

setDisplayDataMethod · 0.95
setValueMethod · 0.80
setSampleRateMethod · 0.45

Tested by

no test coverage detected