My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
Spectrum Struct Reference

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

Dftdft
 
DoubleBufferVec< float > * ydata
 
double ymin
 
double ymax
 
PlotState state
 
bool updateNeeded
 

Detailed Description

....................................................................... Define an object to manage a single FFT

Member Function Documentation

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


The documentation for this struct was generated from the following file: