UNIVERS
15.3
UNIVERS base processing software API
|
#include <zqdlg_spectrum.hpp>
Public Member Functions | |
ZqDlgSpectrum (QWidget *parent, ZqbNatGroup &NatF, int n, float dt, const float vt[]) | |
ZqDlgSpectrum (QWidget *parent, ZqbNatGroup &NatF, const ZqbRealTrace &rtr) | |
virtual | ~ZqDlgSpectrum () |
ZqCurve * | curve () |
void | newData (int n, float dt, const float vt[]) |
void | newData (const ZqbRealTrace &rtr) |
Public Member Functions inherited from ZqDlgPlot2D | |
ZqDlgPlot2D (QWidget *parent, ZqbNatGroup &NatX, ZqbNatGroup &NatY, ZqRubberBox::RangeMode eZoomMode=ZqRubberBox::Rectangle) | |
virtual | ~ZqDlgPlot2D () |
QDialog * | dialog () |
ZqbPlaceholder * | place (const char *szGrpX, const char *szGrpY) |
ZqbPlaceholder * | plotPlace () |
ZqTitle * | title () |
ZqZoom * | zoom () |
void | setAreaSize (const QSize qsize) |
Protected Member Functions | |
float * | fft (int n, float dt, const float vt[], int &m, float &df, float &maxf) |
void | zqInit (ZqbNatGroup &NatF) |
void | zqLoad (int m, float *vf, float df, float maxf) |
Protected Attributes | |
float * | m_pfSpectrum |
ZdFVectorFloat * | m_zdSpectrum |
ZqCurve * | m_zqSpectrum |
Protected Attributes inherited from ZqDlgPlot2D | |
QDialog * | m_qDlg |
QVBoxLayout * | m_qVLayout |
QzqArea * | m_qzArea |
ZqLayout * | m_zqLayout |
ZqTitle * | m_zqTitle |
ZqScale * | m_zqScaleX |
ZqScale * | m_zqScaleY |
ZqGrid * | m_zqGridX |
ZqGrid * | m_zqGridY |
ZqZoom * | m_zqZoom |
Additional Inherited Members | |
Public Attributes inherited from ZqDlgPlot2D | |
ZqbNatGroup & | m_NatX |
ZqbNatGroup & | m_NatY |
The class implements window with spectrum drawing. Natural group can be passed to control range of visualized spectrum.
ZqDlgSpectrum::ZqDlgSpectrum | ( | QWidget * | parent, |
ZqbNatGroup & | NatF, | ||
int | n, | ||
float | dt, | ||
const float | vt[] | ||
) |
Create dialog window to display the spectrum of given vector. Given natural group is used for frequency.
ZqDlgSpectrum::ZqDlgSpectrum | ( | QWidget * | parent, |
ZqbNatGroup & | NatF, | ||
const ZqbRealTrace & | rtr | ||
) |
Create dialog window to display the spectrum of given trace. Given natural group is used for frequency.
|
virtual |
Destroy the object.
ZqCurve* ZqDlgSpectrum::curve | ( | ) |
The visual object used for spectrum drawing.
|
protected |
Calculate spectrum from given source and normalize it to [0..1] range.
void ZqDlgSpectrum::newData | ( | int | n, |
float | dt, | ||
const float | vt[] | ||
) |
Load another vector to the same window instead of previous.
void ZqDlgSpectrum::newData | ( | const ZqbRealTrace & | rtr | ) |
Load another trace the same window instead of previous.
|
protected |
Create spectrum-specific Zqools controls.
NatF | frequency natural group |
|
protected |
Attach data to spectrum-specific Zqools controls.
m | number of samples in spectrum |
vf | vector of spectrum samples |
df | delta frequency value |
maxf | maximum frequency to display |
|
protected |
Stored vector of spectrum values.
|
protected |
Object used as a container for drawing spectrum.
|
protected |
Object used for drawing spectrum.