void MainWindow::CChanged() { if (Chebyshev_on==NULL) { shape = "Chebyshev"; lpf_sel(shape.c_str()); Chebyshev_on = ui->customPlot->addGraph(); plot2(ui->customPlot); } else { ui->customPlot->removeGraph(Chebyshev_on); Chebyshev_on = NULL; ui->customPlot->replot(); } }
void MainWindow::EChanged() { if (Elliptic_on==NULL) { shape = "Elliptic"; lpf_sel(shape.c_str()); Elliptic_on = ui->customPlot->addGraph(); plot2(ui->customPlot); } else { ui->customPlot->removeGraph(Elliptic_on); Elliptic_on = NULL; ui->customPlot->replot(); } }
void MainWindow::CBChanged() { if (CutBoost_on==NULL) { shape = "Cut/Boost"; lpf_sel(shape.c_str()); CutBoost_on = ui->customPlot->addGraph(); plot2(ui->customPlot); } else { ui->customPlot->removeGraph(CutBoost_on); CutBoost_on = NULL; ui->customPlot->replot(); } }
void MainWindow::BChanged() { if (Butterworth_on==NULL) { shape = "Butterworth"; lpf_sel(shape.c_str()); Butterworth_on = ui->customPlot->addGraph(); plot2(ui->customPlot); } else { ui->customPlot->removeGraph(Butterworth_on); Butterworth_on = NULL; ui->customPlot->replot(); } }
void MainWindow::NChanged() { if (NotchIIR_on==NULL) { shape = "Notch"; lpf_sel(shape.c_str()); NotchIIR_on = ui->customPlot->addGraph(); plot2(ui->customPlot); } else { ui->customPlot->removeGraph(NotchIIR_on); NotchIIR_on = NULL; ui->customPlot->replot(); } }
void MainWindow::RChanged() { if (Remez_on==NULL) { shape = "Remez FIR"; lpf_sel(shape.c_str()); Remez_on = ui->customPlot->addGraph(); plot2(ui->customPlot); } else { ui->customPlot->removeGraph(Remez_on); Remez_on = NULL; ui->customPlot->replot(); } }
void MainWindow::RRCChanged() { if (RootRaisedCosine_on==NULL) { shape = "Root Raised Cosine"; lpf_sel(shape.c_str()); RootRaisedCosine_on = ui->customPlot->addGraph(); plot2(ui->customPlot); } else { ui->customPlot->removeGraph(RootRaisedCosine_on); RootRaisedCosine_on = NULL; ui->customPlot->replot(); } }
void MainWindow::FHChanged() { if (MaxflatHalfband_on==NULL) { shape = "Maxflat Subband"; lpf_sel(shape.c_str()); MaxflatHalfband_on = ui->customPlot->addGraph(); plot2(ui->customPlot); } else { ui->customPlot->removeGraph(MaxflatHalfband_on); MaxflatHalfband_on = NULL; ui->customPlot->replot(); } }
void MainWindow::C2Changed() { if (Chebyshev2_on==NULL) { shape = "Chebyshev2"; lpf_sel(shape.c_str()); order = get_order(); ui->order->setText(QApplication::translate("MainWindow", std::to_string(order).c_str(), 0)); ui->ripple->setText(QApplication::translate("MainWindow", std::to_string(ripple()).c_str(), 0)); ui->fc->setText(QApplication::translate("MainWindow", std::to_string(fc()).c_str(), 0)); Chebyshev2_on = ui->customPlot->addGraph(); plot2(ui->customPlot); } else { ui->customPlot->removeGraph(Chebyshev2_on); Chebyshev2_on = NULL; ui->customPlot->replot(); } }