Serial Studio 1.1.6
A dashboard software for your embedded projects
Widgets::FFTPlot Class Reference

#include <FFTPlot.h>

Inheritance diagram for Widgets::FFTPlot:
Inheritance graph
Collaboration diagram for Widgets::FFTPlot:
Collaboration graph

Public Member Functions

 FFTPlot (const int index=-1)
 
 ~FFTPlot ()
 
- Public Member Functions inherited from Widgets::DashboardWidgetBase
 DashboardWidgetBase ()
 
void repaint ()
 
void requestRepaint ()
 

Private Slots

void updateData ()
 

Private Attributes

float * m_fft
 
float * m_samples
 
int m_size
 
int m_index
 
QwtPlot m_plot
 
QwtPlotCurve m_curve
 
QVBoxLayout m_layout
 
QFourierTransformer m_transformer
 

Additional Inherited Members

- Signals inherited from Widgets::DashboardWidgetBase
void updated ()
 

Constructor & Destructor Documentation

◆ FFTPlot()

Widgets::FFTPlot::FFTPlot ( const int  index = -1)

Constructor function, configures widget style & signal/slot connections.

◆ ~FFTPlot()

Widgets::FFTPlot::~FFTPlot ( )

Destructor function

Member Function Documentation

◆ updateData

void Widgets::FFTPlot::updateData ( )
privateslot

Checks if the widget is enabled, if so, the widget shall be updated to display the latest data frame.

If the widget is disabled (e.g. the user hides it, or the external window is hidden), then the new data shall be saved to the plot vector, but the widget shall not be redrawn.

Member Data Documentation

◆ m_curve

QwtPlotCurve Widgets::FFTPlot::m_curve
private

◆ m_fft

float* Widgets::FFTPlot::m_fft
private

◆ m_index

int Widgets::FFTPlot::m_index
private

◆ m_layout

QVBoxLayout Widgets::FFTPlot::m_layout
private

◆ m_plot

QwtPlot Widgets::FFTPlot::m_plot
private

◆ m_samples

float* Widgets::FFTPlot::m_samples
private

◆ m_size

int Widgets::FFTPlot::m_size
private

◆ m_transformer

QFourierTransformer Widgets::FFTPlot::m_transformer
private

The documentation for this class was generated from the following files: