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

#include <Plot.h>

Inheritance diagram for Widgets::Plot:
Inheritance graph
Collaboration diagram for Widgets::Plot:
Collaboration graph

Public Member Functions

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

Private Slots

void updateData ()
 
void updateRange ()
 

Private Attributes

int m_index
 
double m_min
 
double m_max
 
bool m_autoscale
 
QwtPlot m_plot
 
QwtPlotCurve m_curve
 
QVBoxLayout m_layout
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ Plot()

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

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

Member Function Documentation

◆ updateData

void Widgets::Plot::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.

◆ updateRange

void Widgets::Plot::updateRange ( )
privateslot

Updates the number of horizontal divisions of the plot

Member Data Documentation

◆ m_autoscale

bool Widgets::Plot::m_autoscale
private

◆ m_curve

QwtPlotCurve Widgets::Plot::m_curve
private

◆ m_index

int Widgets::Plot::m_index
private

◆ m_layout

QVBoxLayout Widgets::Plot::m_layout
private

◆ m_max

double Widgets::Plot::m_max
private

◆ m_min

double Widgets::Plot::m_min
private

◆ m_plot

QwtPlot Widgets::Plot::m_plot
private

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