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

#include <MultiPlot.h>

Inheritance diagram for Widgets::MultiPlot:
Inheritance graph
Collaboration diagram for Widgets::MultiPlot:
Collaboration graph

Public Member Functions

 MultiPlot (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
 
QwtPlot m_plot
 
QwtLegend m_legend
 
QVBoxLayout m_layout
 
QVector< QwtPlotCurve * > m_curves
 
QVector< PlotDatam_yData
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ MultiPlot()

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

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

Member Function Documentation

◆ updateData

void Widgets::MultiPlot::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 vectors, but the widget shall not be redrawn.

◆ updateRange

void Widgets::MultiPlot::updateRange ( )
privateslot

Updates the number of horizontal divisions of the plot

Member Data Documentation

◆ m_curves

QVector<QwtPlotCurve *> Widgets::MultiPlot::m_curves
private

◆ m_index

int Widgets::MultiPlot::m_index
private

◆ m_layout

QVBoxLayout Widgets::MultiPlot::m_layout
private

◆ m_legend

QwtLegend Widgets::MultiPlot::m_legend
private

◆ m_plot

QwtPlot Widgets::MultiPlot::m_plot
private

◆ m_yData

QVector<PlotData> Widgets::MultiPlot::m_yData
private

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