|
KiCad PCB EDA Suite
|
#include <sim_plot_tab.h>
Public Member Functions | |
| SIM_PLOT_TAB (const wxString &aSimCommand, wxWindow *parent) | |
| virtual | ~SIM_PLOT_TAB () |
| void | ApplyPreferences (const SIM_PREFERENCES &aPrefs) override |
| const std::vector< SIM_VIEW * > & | GetViews () const |
| SIM_VIEW * | GetView (int aIndex) const |
| int | GetViewIndex (SIM_VIEW *aView) const |
| int | GetViewCount () const |
| The view new traces default to, and legacy (single-view) settings apply to. | |
| SIM_VIEW * | GetDefaultView () const |
| Add a new (empty) view, stacked below the existing ones. | |
| SIM_VIEW * | AddView () |
| Remove a view. | |
| bool | RemoveView (SIM_VIEW *aView) |
| Mirror aSource's current X range onto every other view of this tab. | |
| void | SyncXView (SIM_VIEW *aSource) |
| wxString | GetLabelX () const |
| wxString | GetUnitsX () const |
| Get the display units (e.g. "V", "A", "dB") for a given trace's own view. | |
| wxString | GetUnitsForTrace (TRACE *aTrace) const |
| void | ShowGrid (bool aEnable) |
| bool | IsGridShown () const |
| void | ShowLegend (bool aEnable) |
| bool | IsLegendShown () const |
| wxPoint | GetLegendPosition () const |
| void | SetLegendPosition (const wxPoint &aPosition) |
| wxString | GetLabelY1 () const |
| wxString | GetLabelY2 () const |
| wxString | GetLabelY3 () const |
| wxString | GetUnitsY1 () const |
| wxString | GetUnitsY2 () const |
| wxString | GetUnitsY3 () const |
| bool | GetY1Scale (double *aMin, double *aMax) const |
| bool | GetY2Scale (double *aMin, double *aMax) const |
| bool | GetY3Scale (double *aMin, double *aMax) const |
| void | SetY1Scale (bool aLock, double aMin, double aMax) |
| void | SetY2Scale (bool aLock, double aMin, double aMax) |
| void | SetY3Scale (bool aLock, double aMin, double aMax) |
| void | EnsureThirdYAxisExists () |
| void | SetDottedSecondary (bool aEnable) |
| Draw secondary signal traces (current or phase) with dotted lines. | |
| bool | GetDottedSecondary () const |
| Smith mode is tab-wide: every view of the tab shows a Smith chart while it is on. | |
| void | SetSmithMode (bool aEnable) |
| bool | IsSmithMode () const |
| Refresh the grid z0 from the shown Smith traces, on every view. | |
| void | UpdateSmithReferenceImpedance () |
| The saved/restored pan and zoom track the default view. | |
| double | GetSmithZoom () const |
| wxRealPoint | GetSmithPan () const |
| void | ResetSmithView () |
| Restore a saved view, values are validated and clamped. | |
| void | SetSmithView (double aZoom, double aPanX, double aPanY) |
| void | SmithZoomAt (const wxPoint &aPos, double aFactor) |
| void | SmithPanBy (const wxPoint &aDelta) |
| Traces and cursors set aside while in Smith mode, restored when leaving it. | |
| std::vector< SMITH_STASHED_TRACE > & | SmithStashedTraces () |
| std::vector< SMITH_STASHED_CURSOR > & | SmithStashedCursors () |
| Turn on/off the cursor for a particular trace. | |
| void | EnableCursor (TRACE *aTrace, int aCursorId, const wxString &aSignalName) |
| void | DisableCursor (TRACE *aTrace, int aCursorId) |
| Reset scale ranges to fit the current traces, on every view. | |
| void | ResetScales (bool aIncludeX) |
| Update trace line style. | |
| void | UpdateTraceStyle (TRACE *trace) |
| Update plot colors. | |
| void | UpdatePlotColors () |
| wxColour | GetPlotColor (SIM_PLOT_COLORS::COLOR_SET aColorId) |
| void | OnLanguageChanged () override |
| Getter for the default view's math plot window (back-compat for zoom undo/redo, export). | |
| mpWindow * | GetPlotWin () const |
| Get (or create, on aView) the TRACE for a signal. | |
| TRACE * | GetOrAddTrace (const wxString &aVectorName, int aType, SIM_VIEW *aView) |
| void | SetTraceData (TRACE *aTrace, std::vector< double > &aX, std::vector< double > &aY, int aSweepCount, size_t aSweepSize, bool aIsMultiRun=false, const std::vector< wxString > &aMultiRunLabels={}) |
| bool | DeleteTrace (const wxString &aVectorName, int aTraceType) |
| void | DeleteTrace (TRACE *aTrace) |
| const std::map< wxString, TRACE * > & | GetTraces () const |
| TRACE * | GetTrace (const wxString &aVecName, int aType) const |
| std::vector< std::pair< wxString, wxString > > & | Measurements () |
| SIM_TYPE | GetSimType () const |
| const wxString & | GetSimCommand () const |
| void | SetSimCommand (const wxString &aSimCommand) |
| int | GetSimOptions () const |
| void | SetSimOptions (int aOptions) |
| wxString | GetLastSchTextSimCommand () const |
| void | SetLastSchTextSimCommand (const wxString &aCmd) |
| const wxString & | GetSpicePlotName () const |
| void | SetSpicePlotName (const wxString &aPlotName) |
Static Public Member Functions | |
| static bool | IsPlottable (SIM_TYPE aSimType) |
Public Attributes | |
| wxPoint | m_LastLegendPosition |
Private Member Functions | |
| wxString | getTraceId (const wxString &aVectorName, int aType) const |
Static Private Member Functions | |
| static mpWindow::MouseWheelActionSet | convertMouseWheelActions (const SIM_MOUSE_WHEEL_ACTION_SET &s) |
Private Attributes | |
| SIM_PLOT_COLORS | m_colors |
| std::map< wxString, wxColour > | m_sessionTraceColors |
| wxBoxSizer * | m_viewsSizer |
| std::vector< SIM_VIEW * > | m_views |
| mpWindow::MouseWheelActionSet | m_mouseWheelActions |
| std::map< wxString, TRACE * > | m_traces |
| bool | m_dotted_cp |
| bool | m_syncingXView |
| bool | m_smithMode |
| std::vector< SMITH_STASHED_TRACE > | m_smithStashedTraces |
| std::vector< SMITH_STASHED_CURSOR > | m_smithStashedCursors |
| std::vector< std::pair< wxString, wxString > > | m_measurements |
| wxString | m_simCommand |
| unsigned | m_simOptions |
| wxString | m_lastSchTextSimCommand |
| wxString | m_spicePlotName |
Definition at line 548 of file sim_plot_tab.h.
| SIM_PLOT_TAB::SIM_PLOT_TAB | ( | const wxString & | aSimCommand, |
| wxWindow * | parent ) |
Definition at line 2178 of file sim_plot_tab.cpp.
References _, AddView(), convertMouseWheelActions(), SIM_MOUSE_WHEEL_ACTION_SET::GetMouseDefaults(), GetViews(), KiBitmapBundle(), m_dotted_cp, m_mouseWheelActions, m_smithMode, m_syncingXView, m_viewsSizer, RemoveView(), STD_BITMAP_BUTTON::SetBitmap(), SIM_TAB::SIM_TAB(), small_plus, and small_trash.
|
virtual |
Definition at line 2227 of file sim_plot_tab.cpp.
| SIM_VIEW * SIM_PLOT_TAB::AddView | ( | ) |
Remove a view.
Any traces plotted on it are unplotted (not deleted from the grid). The last remaining view cannot be removed.
Definition at line 2242 of file sim_plot_tab.cpp.
References mpWindow::AddLayer(), mpWindow::EnableDoubleBuffer(), mpInfoLayer::GetPosition(), mpWindow::LimitView(), SIM_VIEW::m_lastLegendPosition, SIM_VIEW::m_legend, m_mouseWheelActions, m_smithMode, m_views, m_viewsSizer, mpWindow::SetMargins(), mpWindow::SetMouseWheelActions(), SIM_VIEW::SetSmithChart(), mpLayer::SetVisible(), SyncXView(), mpWindow::UpdateAll(), SIM_VIEW::updateAxes(), and UpdatePlotColors().
Referenced by SIMULATOR_FRAME_UI::loadJsonWorkbook(), and SIM_PLOT_TAB().
|
overridevirtual |
Reimplemented from SIM_TAB.
Definition at line 2233 of file sim_plot_tab.cpp.
References convertMouseWheelActions(), m_mouseWheelActions, m_views, and SIM_PREFERENCES::mouse_wheel_actions.
Referenced by SIMULATOR_FRAME_UI::NewSimTab().
|
inlinestaticprivate |
Definition at line 704 of file sim_plot_tab.h.
References mpWindow::COUNT, COUNT, mpWindow::MouseWheelActionSet::horizontal, SIM_MOUSE_WHEEL_ACTION_SET::horizontal, SIM_MOUSE_WHEEL_ACTION_SET::vertical_unmodified, SIM_MOUSE_WHEEL_ACTION_SET::vertical_with_alt, SIM_MOUSE_WHEEL_ACTION_SET::vertical_with_ctrl, SIM_MOUSE_WHEEL_ACTION_SET::vertical_with_shift, mpWindow::MouseWheelActionSet::verticalUnmodified, mpWindow::MouseWheelActionSet::verticalWithAlt, mpWindow::MouseWheelActionSet::verticalWithCtrl, and mpWindow::MouseWheelActionSet::verticalWithShift.
Referenced by ApplyPreferences(), and SIM_PLOT_TAB().
| bool SIM_PLOT_TAB::DeleteTrace | ( | const wxString & | aVectorName, |
| int | aTraceType ) |
Definition at line 2781 of file sim_plot_tab.cpp.
References DeleteTrace(), and GetTrace().
Referenced by DeleteTrace(), SIMULATOR_FRAME_UI::onSignalsGridCellChanged(), SIMULATOR_FRAME_UI::OnSimRefresh(), RemoveView(), SIMULATOR_FRAME_UI::SetUserDefinedSignals(), and SIMULATOR_FRAME_UI::ToggleSmithChart().
| void SIM_PLOT_TAB::DeleteTrace | ( | TRACE * | aTrace | ) |
Definition at line 2753 of file sim_plot_tab.cpp.
References cursor, TRACE::GetCursors(), TRACE::GetView(), m_traces, name, and ResetScales().
| void SIM_PLOT_TAB::DisableCursor | ( | TRACE * | aTrace, |
| int | aCursorId ) |
Reset scale ranges to fit the current traces, on every view.
Definition at line 2833 of file sim_plot_tab.cpp.
References cursor, TRACE::GetCursor(), TRACE::GetView(), and TRACE::SetCursor().
Referenced by SIMULATOR_FRAME_UI::onSignalsGridCellChanged().
| void SIM_PLOT_TAB::EnableCursor | ( | TRACE * | aTrace, |
| int | aCursorId, | ||
| const wxString & | aSignalName ) |
Definition at line 2793 of file sim_plot_tab.cpp.
References mpWindow::AddLayer(), center, CURSOR, cursor, SMITH_TRACE::GetFrequencies(), mpWindow::GetMarginLeft(), mpWindow::GetMarginRight(), TRACE::GetType(), TRACE::GetView(), mpWindow::GetXScreen(), KiROUND(), TRACE::SetCursor(), and SPT_SP_SMITH.
Referenced by SIMULATOR_FRAME_UI::loadJsonWorkbook(), SIMULATOR_FRAME_UI::onSignalsGridCellChanged(), and SIMULATOR_FRAME_UI::ToggleSmithChart().
| void SIM_PLOT_TAB::EnsureThirdYAxisExists | ( | ) |
Definition at line 2513 of file sim_plot_tab.cpp.
References GetDefaultView().
Referenced by SIMULATOR_FRAME_UI::loadJsonWorkbook().
|
inline |
Add a new (empty) view, stacked below the existing ones.
Definition at line 571 of file sim_plot_tab.h.
References m_views.
Referenced by EnsureThirdYAxisExists(), GetLabelX(), GetLabelY1(), GetLabelY2(), GetLabelY3(), GetLegendPosition(), GetPlotWin(), GetSmithPan(), GetSmithZoom(), GetUnitsForTrace(), GetUnitsX(), GetUnitsY1(), GetUnitsY2(), GetUnitsY3(), GetY1Scale(), GetY2Scale(), GetY3Scale(), IsGridShown(), IsLegendShown(), SetLegendPosition(), SetY1Scale(), SetY2Scale(), SetY3Scale(), SIMULATOR_FRAME_UI::ToggleSmithChart(), and SIMULATOR_FRAME_UI::updateTrace().
|
inline |
Smith mode is tab-wide: every view of the tab shows a Smith chart while it is on.
Definition at line 633 of file sim_plot_tab.h.
References m_dotted_cp.
Referenced by SIMULATOR_FRAME::setupUIConditions().
| wxString SIM_PLOT_TAB::GetLabelX | ( | ) | const |
Definition at line 2364 of file sim_plot_tab.cpp.
References GetDefaultView(), and SIM_VIEW::GetLabelX().
Referenced by SIMULATOR_FRAME_UI::updatePlotCursors().
| wxString SIM_PLOT_TAB::GetLabelY1 | ( | ) | const |
Definition at line 2429 of file sim_plot_tab.cpp.
References GetDefaultView(), and SIM_VIEW::GetLabelY1().
Referenced by SIMULATOR_FRAME_UI::updatePlotCursors().
| wxString SIM_PLOT_TAB::GetLabelY2 | ( | ) | const |
Definition at line 2436 of file sim_plot_tab.cpp.
References GetDefaultView(), and SIM_VIEW::GetLabelY2().
Referenced by SIMULATOR_FRAME_UI::updatePlotCursors().
| wxString SIM_PLOT_TAB::GetLabelY3 | ( | ) | const |
Definition at line 2443 of file sim_plot_tab.cpp.
References GetDefaultView(), and SIM_VIEW::GetLabelY3().
Referenced by SIMULATOR_FRAME_UI::updatePlotCursors().
|
inlineinherited |
Definition at line 54 of file sim_tab.h.
References m_lastSchTextSimCommand.
Referenced by SIMULATOR_FRAME_UI::SaveWorkbook(), and SIMULATOR_FRAME::StartSimulation().
| wxPoint SIM_PLOT_TAB::GetLegendPosition | ( | ) | const |
Definition at line 2413 of file sim_plot_tab.cpp.
References GetDefaultView(), and SIM_VIEW::GetLegendPosition().
Definition at line 2631 of file sim_plot_tab.cpp.
References mpWindow::AddLayer(), SIM_TAB::GetSimType(), GetTrace(), getTraceId(), SIM_VIEW::m_axis_y2, SIM_VIEW::m_axis_y3, m_colors, m_sessionTraceColors, m_traces, mpScaleY::SetMasterScale(), TRACE::SetTraceColour(), TRACE::SetView(), SPT_SP_SMITH, SPT_VOLTAGE, ST_DC, ST_TRAN, SIM_VIEW::updateAxes(), and UpdateTraceStyle().
Referenced by SIMULATOR_FRAME_UI::updateTrace().
|
inline |
Definition at line 671 of file sim_plot_tab.h.
References m_colors.
| mpWindow * SIM_PLOT_TAB::GetPlotWin | ( | ) | const |
Get (or create, on aView) the TRACE for a signal.
If the trace already exists (on any view), it is returned unchanged – callers wanting to move an existing trace to a different view should DeleteTrace() it first.
Definition at line 2916 of file sim_plot_tab.cpp.
References GetDefaultView().
Referenced by SIMULATOR_FRAME_UI::loadJsonWorkbook(), and SIMULATOR_FRAME::setupUIConditions().
|
inlineinherited |
Definition at line 48 of file sim_tab.h.
References m_simCommand.
Referenced by SIMULATOR_FRAME::EditAnalysis(), SIMULATOR_FRAME_UI::rebuildSignalsGrid(), SIMULATOR_FRAME_UI::SaveWorkbook(), SIMULATOR_FRAME::StartSimulation(), and SIMULATOR_FRAME_UI::updateTrace().
|
inlineinherited |
Definition at line 51 of file sim_tab.h.
References m_simOptions.
Referenced by SIMULATOR_FRAME::EditAnalysis(), SIMULATOR_FRAME_UI::SaveWorkbook(), and SIMULATOR_FRAME::StartSimulation().
|
inherited |
Definition at line 71 of file sim_tab.cpp.
References SPICE_CIRCUIT_MODEL::CommandToSimType(), and m_simCommand.
Referenced by SIM_PLOT_TAB::GetOrAddTrace(), SIMULATOR_FRAME_UI::GetSimTab(), SIMULATOR_FRAME_UI::onPlotClosed(), SIMULATOR_FRAME_UI::OnSimRefresh(), SIMULATOR_FRAME_UI::rebuildSignalsGrid(), SIMULATOR_FRAME_UI::rebuildSignalsList(), SIMULATOR_FRAME_UI::SaveWorkbook(), SIM_PLOT_TAB::SetSmithMode(), SIM_PLOT_TAB::SetTraceData(), SIMULATOR_FRAME::setupUIConditions(), SIMULATOR_FRAME_UI::SetUserDefinedSignals(), SIGNALS_GRID_TRICKS::showPopupMenu(), SIMULATOR_FRAME_UI::ToggleSmithChart(), SIMULATOR_FRAME_UI::UpdateMeasurement(), SIMULATOR_FRAME_UI::updatePlotCursors(), and SIMULATOR_FRAME_UI::vectorNameFromSignalName().
| wxRealPoint SIM_PLOT_TAB::GetSmithPan | ( | ) | const |
Definition at line 2564 of file sim_plot_tab.cpp.
References GetDefaultView(), and SIM_VIEW::GetSmithPan().
| double SIM_PLOT_TAB::GetSmithZoom | ( | ) | const |
Definition at line 2557 of file sim_plot_tab.cpp.
References GetDefaultView(), and SIM_VIEW::GetSmithZoom().
|
inlineinherited |
Definition at line 57 of file sim_tab.h.
References m_spicePlotName.
Referenced by SIMULATOR_FRAME::destroyTabPlot(), SIMULATOR_FRAME_UI::IsPlotOwnedByOtherTab(), and SIMULATOR_FRAME_UI::OnSimRefresh().
|
inline |
Definition at line 691 of file sim_plot_tab.h.
References getTraceId(), and m_traces.
Referenced by DeleteTrace(), GetOrAddTrace(), SIMULATOR_FRAME_UI::onSignalsGridCellChanged(), SIMULATOR_FRAME_UI::OnSimRefresh(), SIMULATOR_FRAME_UI::rebuildSignalsGrid(), SIMULATOR_FRAME_UI::SetUserDefinedSignals(), SIMULATOR_FRAME_UI::signalsGridCursorUpdate(), SIMULATOR_FRAME_UI::ToggleSmithChart(), and SIMULATOR_FRAME_UI::updateTrace().
|
inlineprivate |
Definition at line 721 of file sim_plot_tab.h.
References SPT_Y_AXIS_MASK.
Referenced by GetOrAddTrace(), and GetTrace().
|
inline |
Definition at line 689 of file sim_plot_tab.h.
References m_traces.
Referenced by SIMULATOR_FRAME_UI::onCursorsGridCellChanged(), SIMULATOR_FRAME_UI::onSignalsGridCellChanged(), SIMULATOR_FRAME_UI::OnSimRefresh(), SIMULATOR_FRAME_UI::ToggleSmithChart(), and SIMULATOR_FRAME_UI::updatePlotCursors().
| wxString SIM_PLOT_TAB::GetUnitsForTrace | ( | TRACE * | aTrace | ) | const |
Definition at line 2378 of file sim_plot_tab.cpp.
References GetDefaultView(), SIM_VIEW::GetUnitsForTrace(), and TRACE::GetView().
| wxString SIM_PLOT_TAB::GetUnitsX | ( | ) | const |
Get the display units (e.g. "V", "A", "dB") for a given trace's own view.
Definition at line 2371 of file sim_plot_tab.cpp.
References GetDefaultView(), and SIM_VIEW::GetUnitsX().
Referenced by SIMULATOR_FRAME_UI::updatePlotCursors().
| wxString SIM_PLOT_TAB::GetUnitsY1 | ( | ) | const |
Definition at line 2450 of file sim_plot_tab.cpp.
References GetDefaultView(), and SIM_VIEW::GetUnitsY1().
Referenced by SIMULATOR_FRAME_UI::updatePlotCursors().
| wxString SIM_PLOT_TAB::GetUnitsY2 | ( | ) | const |
Definition at line 2457 of file sim_plot_tab.cpp.
References GetDefaultView(), and SIM_VIEW::GetUnitsY2().
Referenced by SIMULATOR_FRAME_UI::updatePlotCursors().
| wxString SIM_PLOT_TAB::GetUnitsY3 | ( | ) | const |
Definition at line 2464 of file sim_plot_tab.cpp.
References GetDefaultView(), and SIM_VIEW::GetUnitsY3().
Referenced by SIMULATOR_FRAME_UI::updatePlotCursors().
|
inline |
Definition at line 561 of file sim_plot_tab.h.
References m_views.
Referenced by SIMULATOR_FRAME_UI::onSignalsGridCellChanged().
|
inline |
The view new traces default to, and legacy (single-view) settings apply to.
Definition at line 568 of file sim_plot_tab.h.
References m_views.
Referenced by SIMULATOR_FRAME_UI::getViewChoices().
| int SIM_PLOT_TAB::GetViewIndex | ( | SIM_VIEW * | aView | ) | const |
Definition at line 2326 of file sim_plot_tab.cpp.
References m_views.
Referenced by SIMULATOR_FRAME_UI::getViewLabel().
|
inline |
Definition at line 559 of file sim_plot_tab.h.
References m_views.
Referenced by SIMULATOR_FRAME_UI::getYScaleTargetViews(), SIMULATOR_FRAME_UI::onSignalsGridCellChanged(), SIMULATOR_FRAME_UI::OnSimRefresh(), SIM_PLOT_TAB(), and SIMULATOR_FRAME_UI::ToggleSmithChart().
| bool SIM_PLOT_TAB::GetY1Scale | ( | double * | aMin, |
| double * | aMax ) const |
Definition at line 2471 of file sim_plot_tab.cpp.
References GetDefaultView(), and SIM_VIEW::GetY1Scale().
| bool SIM_PLOT_TAB::GetY2Scale | ( | double * | aMin, |
| double * | aMax ) const |
Definition at line 2478 of file sim_plot_tab.cpp.
References GetDefaultView(), and SIM_VIEW::GetY2Scale().
| bool SIM_PLOT_TAB::GetY3Scale | ( | double * | aMin, |
| double * | aMax ) const |
Definition at line 2485 of file sim_plot_tab.cpp.
References GetDefaultView(), and SIM_VIEW::GetY3Scale().
| bool SIM_PLOT_TAB::IsGridShown | ( | ) | const |
Definition at line 2392 of file sim_plot_tab.cpp.
References GetDefaultView(), and SIM_VIEW::IsGridShown().
Referenced by SIMULATOR_FRAME::setupUIConditions().
| bool SIM_PLOT_TAB::IsLegendShown | ( | ) | const |
Definition at line 2406 of file sim_plot_tab.cpp.
References GetDefaultView(), and SIM_VIEW::IsLegendShown().
Referenced by SIMULATOR_FRAME::setupUIConditions().
|
staticinherited |
Definition at line 49 of file sim_tab.cpp.
References ST_AC, ST_DC, ST_FFT, ST_NOISE, ST_SP, and ST_TRAN.
Referenced by SIMULATOR_FRAME_UI::AddTrace(), SIMULATOR_FRAME_UI::NewSimTab(), SIMULATOR_FRAME_UI::OnSimRefresh(), and SIMULATOR_FRAME_UI::updateTrace().
|
inline |
Refresh the grid z0 from the shown Smith traces, on every view.
Definition at line 637 of file sim_plot_tab.h.
References m_smithMode.
Referenced by SIMULATOR_FRAME_UI::rebuildSignalsGrid(), SIMULATOR_FRAME_UI::rebuildSignalsList(), SIMULATOR_FRAME::setupUIConditions(), SIMULATOR_FRAME_UI::ToggleSmithChart(), SIMULATOR_FRAME_UI::updatePlotCursors(), and SIMULATOR_FRAME_UI::vectorNameFromSignalName().
|
inline |
Definition at line 698 of file sim_plot_tab.h.
References m_measurements.
Referenced by SIMULATOR_FRAME_UI::loadJsonWorkbook(), and SIMULATOR_FRAME_UI::loadLegacyWorkbook().
|
overridevirtual |
Getter for the default view's math plot window (back-compat for zoom undo/redo, export).
Implements SIM_TAB.
Definition at line 2602 of file sim_plot_tab.cpp.
References m_views.
| bool SIM_PLOT_TAB::RemoveView | ( | SIM_VIEW * | aView | ) |
Mirror aSource's current X range onto every other view of this tab.
Definition at line 2279 of file sim_plot_tab.cpp.
References DeleteTrace(), m_traces, m_views, m_viewsSizer, name, and ResetScales().
Referenced by SIM_PLOT_TAB().
| void SIM_PLOT_TAB::ResetScales | ( | bool | aIncludeX | ) |
Update trace line style.
Definition at line 2848 of file sim_plot_tab.cpp.
References m_traces, m_views, and name.
Referenced by DeleteTrace(), SIMULATOR_FRAME_UI::onSignalsGridCellChanged(), SIMULATOR_FRAME_UI::OnSimRefresh(), and RemoveView().
| void SIM_PLOT_TAB::ResetSmithView | ( | ) |
Restore a saved view, values are validated and clamped.
Definition at line 2571 of file sim_plot_tab.cpp.
References m_views.
|
inline |
Draw secondary signal traces (current or phase) with dotted lines.
Definition at line 622 of file sim_plot_tab.h.
References m_dotted_cp, m_traces, m_views, name, and UpdateTraceStyle().
Referenced by SIMULATOR_FRAME_UI::loadJsonWorkbook(), and SIMULATOR_FRAME_UI::parseTraceParams().
|
inlineinherited |
Definition at line 55 of file sim_tab.h.
References m_lastSchTextSimCommand.
Referenced by SIMULATOR_FRAME_UI::loadLegacyWorkbook(), and SIMULATOR_FRAME::StartSimulation().
| void SIM_PLOT_TAB::SetLegendPosition | ( | const wxPoint & | aPosition | ) |
Definition at line 2420 of file sim_plot_tab.cpp.
References GetDefaultView(), and m_LastLegendPosition.
Referenced by SIMULATOR_FRAME_UI::loadJsonWorkbook().
|
inlineinherited |
Definition at line 49 of file sim_tab.h.
References m_simCommand.
Referenced by SIMULATOR_FRAME::EditAnalysis(), and SIMULATOR_FRAME::StartSimulation().
|
inlineinherited |
Definition at line 52 of file sim_tab.h.
References m_simOptions.
Referenced by DIALOG_SIM_COMMAND::ApplySettings(), SIMULATOR_FRAME_UI::InitWorkbook(), SIMULATOR_FRAME_UI::loadJsonWorkbook(), and SIMULATOR_FRAME_UI::loadLegacyWorkbook().
| void SIM_PLOT_TAB::SetSmithMode | ( | bool | aEnable | ) |
Definition at line 2534 of file sim_plot_tab.cpp.
References SIM_TAB::GetSimType(), m_smithMode, m_views, and ST_SP.
Referenced by SIMULATOR_FRAME_UI::loadJsonWorkbook(), and SIMULATOR_FRAME_UI::ToggleSmithChart().
| void SIM_PLOT_TAB::SetSmithView | ( | double | aZoom, |
| double | aPanX, | ||
| double | aPanY ) |
Definition at line 2581 of file sim_plot_tab.cpp.
References m_views.
Referenced by SIMULATOR_FRAME_UI::loadJsonWorkbook().
|
inlineinherited |
Definition at line 58 of file sim_tab.h.
References m_spicePlotName.
Referenced by SIMULATOR_FRAME::destroyTabPlot(), SIMULATOR_FRAME_UI::OnSimRefresh(), and SIMULATOR_FRAME::StartSimulation().
| void SIM_PLOT_TAB::SetTraceData | ( | TRACE * | aTrace, |
| std::vector< double > & | aX, | ||
| std::vector< double > & | aY, | ||
| int | aSweepCount, | ||
| size_t | aSweepSize, | ||
| bool | aIsMultiRun = false, | ||
| const std::vector< wxString > & | aMultiRunLabels = {} ) |
Definition at line 2683 of file sim_plot_tab.cpp.
References cursor, TRACE::GetCursors(), SIM_TAB::GetSimType(), TRACE::GetType(), TRACE::GetView(), SIM_VIEW::m_axis_x, SIM_VIEW::m_axis_y1, SIM_VIEW::m_axis_y2, SIM_VIEW::m_axis_y3, M_PI, MagnitudeToDb(), TRACE::SetData(), TRACE::SetIsMultiRun(), TRACE::SetMultiRunLabels(), mpFXY::SetScale(), mpFXYVector::SetSweepCount(), mpFXYVector::SetSweepSize(), SPT_AC_PHASE, SPT_CURRENT, SPT_POWER, SPT_SP_SMITH, ST_AC, ST_FFT, and SIM_VIEW::UpdateAxisVisibility().
Referenced by SIMULATOR_FRAME_UI::updateTrace().
| void SIM_PLOT_TAB::SetY1Scale | ( | bool | aLock, |
| double | aMin, | ||
| double | aMax ) |
Definition at line 2492 of file sim_plot_tab.cpp.
References GetDefaultView().
Referenced by SIMULATOR_FRAME_UI::loadJsonWorkbook().
| void SIM_PLOT_TAB::SetY2Scale | ( | bool | aLock, |
| double | aMin, | ||
| double | aMax ) |
Definition at line 2499 of file sim_plot_tab.cpp.
References GetDefaultView().
Referenced by SIMULATOR_FRAME_UI::loadJsonWorkbook().
| void SIM_PLOT_TAB::SetY3Scale | ( | bool | aLock, |
| double | aMin, | ||
| double | aMax ) |
Definition at line 2506 of file sim_plot_tab.cpp.
References GetDefaultView().
Referenced by SIMULATOR_FRAME_UI::loadJsonWorkbook().
| void SIM_PLOT_TAB::ShowGrid | ( | bool | aEnable | ) |
Definition at line 2385 of file sim_plot_tab.cpp.
References m_views.
Referenced by SIMULATOR_FRAME_UI::loadJsonWorkbook(), and SIMULATOR_FRAME_UI::parseTraceParams().
| void SIM_PLOT_TAB::ShowLegend | ( | bool | aEnable | ) |
Definition at line 2399 of file sim_plot_tab.cpp.
References m_views.
Referenced by SIMULATOR_FRAME_UI::loadJsonWorkbook().
| void SIM_PLOT_TAB::SmithPanBy | ( | const wxPoint & | aDelta | ) |
Traces and cursors set aside while in Smith mode, restored when leaving it.
Definition at line 2595 of file sim_plot_tab.cpp.
References m_views.
|
inline |
Turn on/off the cursor for a particular trace.
Definition at line 656 of file sim_plot_tab.h.
References m_smithStashedCursors.
Referenced by SIMULATOR_FRAME_UI::loadJsonWorkbook(), and SIMULATOR_FRAME_UI::ToggleSmithChart().
|
inline |
Definition at line 655 of file sim_plot_tab.h.
References m_smithStashedTraces.
Referenced by SIMULATOR_FRAME_UI::loadJsonWorkbook(), and SIMULATOR_FRAME_UI::ToggleSmithChart().
| void SIM_PLOT_TAB::SmithZoomAt | ( | const wxPoint & | aPos, |
| double | aFactor ) |
Definition at line 2588 of file sim_plot_tab.cpp.
References m_views.
| void SIM_PLOT_TAB::SyncXView | ( | SIM_VIEW * | aSource | ) |
Definition at line 2338 of file sim_plot_tab.cpp.
References mpWindow::GetDesiredXmax(), mpWindow::GetDesiredXmin(), mpWindow::GetPosX(), mpWindow::GetScaleX(), m_syncingXView, and m_views.
Referenced by AddView().
| void SIM_PLOT_TAB::UpdatePlotColors | ( | ) |
Definition at line 2520 of file sim_plot_tab.cpp.
References SIM_PLOT_COLORS::AXIS, SIM_PLOT_COLORS::BACKGROUND, SIM_PLOT_COLORS::FOREGROUND, m_colors, and m_views.
Referenced by AddView(), SIMULATOR_FRAME_UI::onSignalsGridCellChanged(), and SIMULATOR_FRAME_UI::ToggleDarkModePlots().
| void SIM_PLOT_TAB::UpdateSmithReferenceImpedance | ( | ) |
The saved/restored pan and zoom track the default view.
Definition at line 2550 of file sim_plot_tab.cpp.
References m_views.
Referenced by SIMULATOR_FRAME_UI::updateTrace().
| void SIM_PLOT_TAB::UpdateTraceStyle | ( | TRACE * | trace | ) |
Update plot colors.
Definition at line 2612 of file sim_plot_tab.cpp.
References mpLayer::GetName(), TRACE::GetTraceColour(), TRACE::GetType(), m_dotted_cp, m_sessionTraceColors, mpLayer::SetPen(), SPT_AC_GAIN, SPT_AC_PHASE, and SPT_CURRENT.
Referenced by GetOrAddTrace(), SIMULATOR_FRAME_UI::onSignalsGridCellChanged(), SIMULATOR_FRAME_UI::parseTraceParams(), and SetDottedSecondary().
|
private |
Definition at line 727 of file sim_plot_tab.h.
Referenced by GetOrAddTrace(), GetPlotColor(), and UpdatePlotColors().
|
private |
Definition at line 741 of file sim_plot_tab.h.
Referenced by GetDottedSecondary(), SetDottedSecondary(), SIM_PLOT_TAB(), and UpdateTraceStyle().
| wxPoint SIM_PLOT_TAB::m_LastLegendPosition |
Definition at line 701 of file sim_plot_tab.h.
Referenced by SetLegendPosition().
|
privateinherited |
Definition at line 63 of file sim_tab.h.
Referenced by GetLastSchTextSimCommand(), and SetLastSchTextSimCommand().
|
private |
Definition at line 754 of file sim_plot_tab.h.
Referenced by Measurements().
|
private |
Definition at line 736 of file sim_plot_tab.h.
Referenced by AddView(), ApplyPreferences(), and SIM_PLOT_TAB().
|
private |
Definition at line 728 of file sim_plot_tab.h.
Referenced by GetOrAddTrace(), and UpdateTraceStyle().
|
privateinherited |
Definition at line 61 of file sim_tab.h.
Referenced by GetSimCommand(), GetSimType(), SetSimCommand(), SIM_TAB(), and SIM_TAB().
|
privateinherited |
Definition at line 62 of file sim_tab.h.
Referenced by GetSimOptions(), SetSimOptions(), SIM_TAB(), and SIM_TAB().
|
private |
Definition at line 748 of file sim_plot_tab.h.
Referenced by AddView(), IsSmithMode(), SetSmithMode(), and SIM_PLOT_TAB().
|
private |
Definition at line 751 of file sim_plot_tab.h.
Referenced by SmithStashedCursors().
|
private |
Definition at line 750 of file sim_plot_tab.h.
Referenced by SmithStashedTraces().
|
privateinherited |
Definition at line 64 of file sim_tab.h.
Referenced by GetSpicePlotName(), and SetSpicePlotName().
|
private |
Definition at line 744 of file sim_plot_tab.h.
Referenced by SIM_PLOT_TAB(), and SyncXView().
|
private |
Definition at line 739 of file sim_plot_tab.h.
Referenced by DeleteTrace(), GetOrAddTrace(), GetTrace(), GetTraces(), RemoveView(), ResetScales(), and SetDottedSecondary().
|
private |
Definition at line 733 of file sim_plot_tab.h.
Referenced by AddView(), ApplyPreferences(), GetDefaultView(), GetView(), GetViewCount(), GetViewIndex(), GetViews(), OnLanguageChanged(), RemoveView(), ResetScales(), ResetSmithView(), SetDottedSecondary(), SetSmithMode(), SetSmithView(), ShowGrid(), ShowLegend(), SmithPanBy(), SmithZoomAt(), SyncXView(), UpdatePlotColors(), and UpdateSmithReferenceImpedance().
|
private |
Definition at line 730 of file sim_plot_tab.h.
Referenced by AddView(), RemoveView(), and SIM_PLOT_TAB().