void FFT::output() { ApplicationWindow *app = (ApplicationWindow *)parent(); QString tableName = app->generateUniqueName(QString(objectName())); QStringList header = QStringList(); if(d_inverse){ d_explanation = tr("Inverse") + " " + tr("FFT") + " " + tr("of") + " "; header << tr("Time"); } else { d_explanation = tr("Forward") + " " + tr("FFT") + " " + tr("of") + " "; header << tr("Frequency"); } if (d_curve) d_explanation += d_curve->title().text(); else if (d_table) d_explanation += d_table->colName(d_real_col); d_result_table = app->newHiddenTable(tableName, d_explanation, d_n, 5); d_result_table->setHeader(header << tr("Real") << tr("Imaginary") << tr("Amplitude") << tr("Angle")); if (d_graph && d_curve) fftCurve(); else if (d_table) fftTable(); if (d_graphics_display) outputGraphs(); }
void FFT::output() { QList<Column *> columns; if (d_graph && d_curve) columns = fftCurve(); else if (d_table) columns = fftTable(); if (!columns.isEmpty()) output(columns); }
void FFT::output() { QString text; if (d_graph && d_curve) text = fftCurve(); else if (d_table) text = fftTable(); if (!text.isEmpty()) output(text); }