Signal value plot panel.
More...
#include <SignalPlotPanel.hpp>
|
| static double | ToSeconds (const std::string &raw, double firstSec) |
| |
Signal value plot panel.
Plots the numeric/signal fields selected in the Signal Browser dock. Call SetSelectedSignals() whenever the selection changes; the chart updates immediately. Refresh() is also called lazily by MainWindow when the tab first becomes visible.
◆ SignalPlotPanel()
◆ BuildLayout()
| void ui::qt::SignalPlotPanel::BuildLayout |
( |
| ) |
|
|
private |
◆ OnAttachedToModel()
Called when the view is attached to a model.
This method is called after the view is registered with a model. Views can use this to initialize model-specific state.
- Parameters
-
| model | The model the view was attached to (optional) |
◆ OnCurrentIndexUpdated()
| void ui::qt::SignalPlotPanel::OnCurrentIndexUpdated |
( |
int |
index | ) |
|
|
inlineoverridevirtual |
Called when the current item index in the model is updated.
This method should be implemented to update the view based on the new current item index.
- Parameters
-
| index | The new current item index in the model |
Implements mvc::IView.
◆ OnDataUpdated()
| void ui::qt::SignalPlotPanel::OnDataUpdated |
( |
| ) |
|
|
overridevirtual |
Called when the model's data is updated.
This method should be implemented to refresh the view with the latest data from the model.
Implements mvc::IView.
◆ OnDetachedFromModel()
| virtual void mvc::IView::OnDetachedFromModel |
( |
| ) |
|
|
inlinevirtualinherited |
Called when the view is detached from a model.
This method is called when the view is unregistered from a model. Views can use this to clean up model-specific state.
◆ RebuildChart()
| void ui::qt::SignalPlotPanel::RebuildChart |
( |
| ) |
|
|
private |
◆ Refresh()
| void ui::qt::SignalPlotPanel::Refresh |
( |
| ) |
|
Called by MainWindow when the Signals tab becomes active.
◆ SetSelectedSignals()
| void ui::qt::SignalPlotPanel::SetSelectedSignals |
( |
const std::vector< std::string > & |
keys | ) |
|
Update the set of signals to plot and redraw the chart immediately.
◆ ToSeconds()
| double ui::qt::SignalPlotPanel::ToSeconds |
( |
const std::string & |
raw, |
|
|
double |
firstSec |
|
) |
| |
|
staticprivate |
◆ m_chartView
| QChartView* ui::qt::SignalPlotPanel::m_chartView {nullptr} |
|
private |
◆ m_dirty
| bool ui::qt::SignalPlotPanel::m_dirty {false} |
|
private |
◆ m_events
◆ m_selectedSignals
| std::vector<std::string> ui::qt::SignalPlotPanel::m_selectedSignals |
|
private |
◆ m_statusLabel
| QLabel* ui::qt::SignalPlotPanel::m_statusLabel {nullptr} |
|
private |
The documentation for this class was generated from the following files: