My Project
|
Public Types | |
enum | PlotState { PS_FIRST, PS_FIRST_READY, PS_DATA_READY, PS_DATA_PLOTTED } |
Public Member Functions | |
void | initialize () |
void | resize (unsigned npt, unsigned ntrans, Dft::Apodization apod=Dft::APOD_RECTANGLE) |
void | stepPowSpecState (MonitorGraph *graph, int ci, bool erase) |
void | pushSample (double sample, bool &first, double &ymin, double &ymax, bool doLog) |
void | redrawPowSpecData (MonitorGraph *graph, int ci, bool erase) |
void | setApodizationType (Dft::Apodization type) |
Public Attributes | |
Dft * | dft |
DoubleBufferVec< float > * | ydata |
double | ymin |
double | ymax |
PlotState | state |
bool | updateNeeded |
....................................................................... Define an object to manage a single FFT
void Spectrum::pushSample | ( | double | sample, |
bool & | first, | ||
double & | ymin, | ||
double & | ymax, | ||
bool | doLog | ||
) |
....................................................................... Method of Spectrum to push a single sample onto the dft ring buffer
void Spectrum::redrawPowSpecData | ( | MonitorGraph * | graph, |
int | ci, | ||
bool | erase | ||
) |
....................................................................... Draw the power spectrum data
void Spectrum::setApodizationType | ( | Dft::Apodization | type | ) |
....................................................................... Set the apodization type
void Spectrum::stepPowSpecState | ( | MonitorGraph * | graph, |
int | ci, | ||
bool | erase | ||
) |
....................................................................... Method of Spectrum class to draw power spectrum data and step the state machine of a power spectrum plot