|
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 |
| wxString | GetLabelX () const |
| wxString | GetLabelY1 () const |
| wxString | GetLabelY2 () const |
| wxString | GetLabelY3 () 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) |
| wxString | GetUnitsX () const |
| wxString | GetUnitsY1 () const |
| wxString | GetUnitsY2 () const |
| wxString | GetUnitsY3 () const |
| const std::map< wxString, TRACE * > & | GetTraces () const |
| TRACE * | GetTrace (const wxString &aVecName, int aType) const |
| void | ShowGrid (bool aEnable) |
| bool | IsGridShown () const |
| void | ShowLegend (bool aEnable) |
| bool | IsLegendShown () const |
| wxPoint | GetLegendPosition () const |
| void | SetLegendPosition (const wxPoint &aPosition) |
| void | SetDottedSecondary (bool aEnable) |
| Draw secondary signal traces (current or phase) with dotted lines. | |
| bool | GetDottedSecondary () const |
| void | SetSmithMode (bool aEnable) |
| bool | IsSmithMode () const |
| Refresh the grid z0 from the shown Smith traces. | |
| void | UpdateSmithReferenceImpedance () |
| double | GetSmithZoom () const |
| 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. | |
| void | ResetScales (bool aIncludeX) |
| Update trace line style. | |
| void | UpdateTraceStyle (TRACE *trace) |
| Update plot colors. | |
| void | UpdatePlotColors () |
| void | OnLanguageChanged () override |
| Getter for math plot window. | |
| mpWindow * | GetPlotWin () const |
| TRACE * | GetOrAddTrace (const wxString &aVectorName, int aType) |
| 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) |
| std::vector< std::pair< wxString, wxString > > & | Measurements () |
| void | EnsureThirdYAxisExists () |
| 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 |
| Construct the plot axes for DC simulation plot. | |
| void | prepareDCAxes (int aNewTraceType) |
| Create/Ensure axes are available for plotting. | |
| void | updateAxes (int aNewTraceType=SIM_TRACE_TYPE::SPT_UNKNOWN) |
| void | UpdateAxisVisibility () |
| void | onSmithMouseWheel (wxMouseEvent &aEvent) |
| void | onSmithMagnify (wxMouseEvent &aEvent) |
| void | onSmithMiddleDown (wxMouseEvent &aEvent) |
| void | onSmithLeftDown (wxMouseEvent &aEvent) |
| void | onSmithMotion (wxMouseEvent &aEvent) |
| void | onSmithLeftUp (wxMouseEvent &aEvent) |
| void | onSmithDClick (wxMouseEvent &aEvent) |
| void | onSmithRightDown (wxMouseEvent &aEvent) |
| void | onSmithRightUp (wxMouseEvent &aEvent) |
| void | onSmithMenuCommand (wxCommandEvent &aEvent) |
| bool | getSmithView (SMITH_VIEW &aView) 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 |
| mpWindow * | m_plotWin |
| wxBoxSizer * | m_sizer |
| std::map< wxString, TRACE * > | m_traces |
| mpScaleXBase * | m_axis_x |
| mpScaleY * | m_axis_y1 |
| mpScaleY * | m_axis_y2 |
| mpScaleY * | m_axis_y3 |
| mpInfoLegend * | m_legend |
| SMITH_GRID * | m_smithGrid |
| bool | m_dotted_cp |
| bool | m_smithMode |
| double | m_smithZoom |
| wxRealPoint | m_smithPan |
| bool | m_smithPanning |
| bool | m_smithLeftSkipped |
| wxPoint | m_smithPanLast |
| wxPoint | m_smithMenuPos |
| 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 309 of file sim_plot_tab.h.
| SIM_PLOT_TAB::SIM_PLOT_TAB | ( | const wxString & | aSimCommand, |
| wxWindow * | parent ) |
Definition at line 1244 of file sim_plot_tab.cpp.
References m_axis_x, m_axis_y1, m_axis_y2, m_axis_y3, m_dotted_cp, m_LastLegendPosition, m_legend, m_plotWin, m_sizer, m_smithGrid, m_smithLeftSkipped, m_smithMode, m_smithPanning, m_smithZoom, mpID_CENTER, mpID_FIT, mpID_ZOOM_IN, mpID_ZOOM_OUT, mpWindow, onSmithDClick(), onSmithLeftDown(), onSmithLeftUp(), onSmithMagnify(), onSmithMenuCommand(), onSmithMiddleDown(), onSmithMotion(), onSmithMouseWheel(), onSmithRightDown(), onSmithRightUp(), SIM_TAB::SIM_TAB(), updateAxes(), and UpdatePlotColors().
|
virtual |
Definition at line 1295 of file sim_plot_tab.cpp.
|
inlineoverridevirtual |
Reimplemented from SIM_TAB.
Definition at line 316 of file sim_plot_tab.h.
References convertMouseWheelActions(), m_plotWin, and SIM_PREFERENCES::mouse_wheel_actions.
Referenced by SIMULATOR_FRAME_UI::NewSimTab().
|
inlinestaticprivate |
Definition at line 518 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().
| bool SIM_PLOT_TAB::DeleteTrace | ( | const wxString & | aVectorName, |
| int | aTraceType ) |
Definition at line 1898 of file sim_plot_tab.cpp.
References DeleteTrace(), and GetTrace().
Referenced by DeleteTrace(), SIMULATOR_FRAME_UI::onSignalsGridCellChanged(), SIMULATOR_FRAME_UI::OnSimRefresh(), SIMULATOR_FRAME_UI::SetUserDefinedSignals(), and SIMULATOR_FRAME_UI::ToggleSmithChart().
| void SIM_PLOT_TAB::DeleteTrace | ( | TRACE * | aTrace | ) |
Definition at line 1874 of file sim_plot_tab.cpp.
References cursor, TRACE::GetCursors(), m_plotWin, m_traces, name, ResetScales(), UpdateAxisVisibility(), and UpdateSmithReferenceImpedance().
| void SIM_PLOT_TAB::DisableCursor | ( | TRACE * | aTrace, |
| int | aCursorId ) |
Reset scale ranges to fit the current traces.
Definition at line 2242 of file sim_plot_tab.cpp.
References cursor, mpWindow::DelLayer(), TRACE::GetCursor(), GetPlotWin(), and TRACE::SetCursor().
Referenced by SIMULATOR_FRAME_UI::onSignalsGridCellChanged().
| void SIM_PLOT_TAB::EnableCursor | ( | TRACE * | aTrace, |
| int | aCursorId, | ||
| const wxString & | aSignalName ) |
Definition at line 2206 of file sim_plot_tab.cpp.
References center, CURSOR, cursor, SMITH_TRACE::GetFrequencies(), mpWindow::GetMarginLeft(), mpWindow::GetMarginRight(), GetPlotWin(), TRACE::GetType(), mpWindow::GetXScreen(), KiROUND(), m_plotWin, 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 1634 of file sim_plot_tab.cpp.
References m_axis_y1, m_axis_y2, m_axis_y3, m_plotWin, and mpALIGN_BORDER_RIGHT.
Referenced by SIMULATOR_FRAME_UI::loadJsonWorkbook(), prepareDCAxes(), and updateAxes().
|
inline |
Definition at line 447 of file sim_plot_tab.h.
References m_dotted_cp.
Referenced by SIMULATOR_FRAME::setupUIConditions().
|
inline |
Definition at line 321 of file sim_plot_tab.h.
References m_axis_x.
Referenced by SIMULATOR_FRAME_UI::updatePlotCursors().
|
inline |
Definition at line 326 of file sim_plot_tab.h.
References m_axis_y1.
Referenced by SIMULATOR_FRAME_UI::updatePlotCursors().
|
inline |
Definition at line 331 of file sim_plot_tab.h.
References m_axis_y2.
Referenced by SIMULATOR_FRAME_UI::updatePlotCursors().
|
inline |
Definition at line 336 of file sim_plot_tab.h.
References m_axis_y3.
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().
|
inline |
Definition at line 422 of file sim_plot_tab.h.
References m_legend.
| TRACE * SIM_PLOT_TAB::GetOrAddTrace | ( | const wxString & | aVectorName, |
| int | aType ) |
Definition at line 1696 of file sim_plot_tab.cpp.
References SIM_TAB::GetSimType(), GetTrace(), getTraceId(), m_axis_y2, m_axis_y3, m_colors, m_plotWin, m_sessionTraceColors, m_traces, TRACE::SetTraceColour(), SPT_SP_SMITH, SPT_VOLTAGE, ST_DC, ST_TRAN, updateAxes(), and UpdateTraceStyle().
Referenced by SIMULATOR_FRAME_UI::updateTrace().
|
inline |
Definition at line 498 of file sim_plot_tab.h.
References m_plotWin.
Referenced by DisableCursor(), EnableCursor(), SIMULATOR_FRAME_UI::loadJsonWorkbook(), SIMULATOR_FRAME_UI::onSignalsGridCellChanged(), SIMULATOR_FRAME_UI::OnSimRefresh(), SIMULATOR_FRAME_UI::parseTraceParams(), SIMULATOR_FRAME::setupUIConditions(), and SIMULATOR_FRAME_UI::ToggleSmithChart().
|
inlineinherited |
Definition at line 48 of file sim_tab.h.
References m_simCommand.
Referenced by SIMULATOR_FRAME::EditAnalysis(), SIM_PLOT_TAB::prepareDCAxes(), SIMULATOR_FRAME_UI::rebuildSignalsGrid(), SIM_PLOT_TAB::ResetScales(), 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(), SIM_PLOT_TAB::ResetScales(), 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(), SIM_PLOT_TAB::updateAxes(), SIM_PLOT_TAB::UpdateAxisVisibility(), SIMULATOR_FRAME_UI::UpdateMeasurement(), SIMULATOR_FRAME_UI::updatePlotCursors(), and SIMULATOR_FRAME_UI::vectorNameFromSignalName().
|
inline |
|
private |
Definition at line 1975 of file sim_plot_tab.cpp.
References SMITH_GRID::GetChartView(), m_plotWin, m_smithPan, and m_smithZoom.
Referenced by onSmithMenuCommand(), SmithPanBy(), and SmithZoomAt().
|
inline |
|
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 379 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(), and SIMULATOR_FRAME_UI::ToggleSmithChart().
|
inlineprivate |
Construct the plot axes for DC simulation plot.
Definition at line 535 of file sim_plot_tab.h.
References SPT_Y_AXIS_MASK.
Referenced by GetOrAddTrace(), and GetTrace().
|
inline |
Definition at line 374 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::GetUnitsX | ( | ) | const |
Definition at line 1322 of file sim_plot_tab.cpp.
References LOG_SCALE< T_PARENT >::GetUnits(), and m_axis_x.
Referenced by SIMULATOR_FRAME_UI::updatePlotCursors().
| wxString SIM_PLOT_TAB::GetUnitsY1 | ( | ) | const |
Definition at line 1336 of file sim_plot_tab.cpp.
References LIN_SCALE< T_PARENT >::GetUnits(), and m_axis_y1.
Referenced by SIMULATOR_FRAME_UI::updatePlotCursors().
| wxString SIM_PLOT_TAB::GetUnitsY2 | ( | ) | const |
Definition at line 1347 of file sim_plot_tab.cpp.
References LIN_SCALE< T_PARENT >::GetUnits(), and m_axis_y2.
Referenced by SIMULATOR_FRAME_UI::updatePlotCursors().
| wxString SIM_PLOT_TAB::GetUnitsY3 | ( | ) | const |
Definition at line 1358 of file sim_plot_tab.cpp.
References LIN_SCALE< T_PARENT >::GetUnits(), and m_axis_y3.
Referenced by SIMULATOR_FRAME_UI::updatePlotCursors().
|
inline |
Definition at line 341 of file sim_plot_tab.h.
References m_axis_y1.
|
inline |
Definition at line 349 of file sim_plot_tab.h.
References m_axis_y2.
|
inline |
Definition at line 357 of file sim_plot_tab.h.
References m_axis_y3.
|
inline |
Definition at line 403 of file sim_plot_tab.h.
References m_axis_x, and m_axis_y1.
Referenced by SIMULATOR_FRAME::setupUIConditions().
|
inline |
Definition at line 417 of file sim_plot_tab.h.
References m_legend.
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.
Definition at line 453 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(), and SIMULATOR_FRAME_UI::vectorNameFromSignalName().
|
inline |
Definition at line 509 of file sim_plot_tab.h.
References m_measurements.
Referenced by SIMULATOR_FRAME_UI::loadJsonWorkbook(), and SIMULATOR_FRAME_UI::loadLegacyWorkbook().
|
overridevirtual |
Getter for math plot window.
Implements SIM_TAB.
Definition at line 1670 of file sim_plot_tab.cpp.
References m_plotWin, and updateAxes().
|
private |
Definition at line 2127 of file sim_plot_tab.cpp.
References m_plotWin, m_smithMode, and ResetSmithView().
Referenced by SIM_PLOT_TAB().
|
private |
Definition at line 2059 of file sim_plot_tab.cpp.
References m_plotWin, m_smithLeftSkipped, m_smithMode, m_smithPanLast, and m_smithPanning.
Referenced by SIM_PLOT_TAB().
|
private |
Definition at line 2109 of file sim_plot_tab.cpp.
References m_smithLeftSkipped, m_smithMode, and m_smithPanning.
Referenced by SIM_PLOT_TAB().
|
private |
Definition at line 2036 of file sim_plot_tab.cpp.
References m_smithMode, and SmithZoomAt().
Referenced by SIM_PLOT_TAB().
|
private |
Definition at line 2170 of file sim_plot_tab.cpp.
References getSmithView(), m_plotWin, m_smithMenuPos, m_smithMode, m_smithPan, mpID_CENTER, mpID_FIT, mpID_ZOOM_IN, mpID_ZOOM_OUT, ResetSmithView(), SmithZoomAt(), and SMITH_VIEW::ToGamma().
Referenced by SIM_PLOT_TAB().
|
private |
Definition at line 2051 of file sim_plot_tab.cpp.
References m_smithMode.
Referenced by SIM_PLOT_TAB().
|
private |
Definition at line 2081 of file sim_plot_tab.cpp.
References m_smithLeftSkipped, m_smithMode, m_smithPanLast, m_smithPanning, and SmithPanBy().
Referenced by SIM_PLOT_TAB().
|
private |
Definition at line 2019 of file sim_plot_tab.cpp.
References m_smithMode, and SmithZoomAt().
Referenced by SIM_PLOT_TAB().
|
private |
Definition at line 2142 of file sim_plot_tab.cpp.
References m_smithMenuPos, and m_smithMode.
Referenced by SIM_PLOT_TAB().
|
private |
Definition at line 2152 of file sim_plot_tab.cpp.
References m_plotWin, m_smithMode, mpID_ZOOM_REDO, and mpID_ZOOM_UNDO.
Referenced by SIM_PLOT_TAB().
|
private |
Create/Ensure axes are available for plotting.
Definition at line 1539 of file sim_plot_tab.cpp.
References _, EnsureThirdYAxisExists(), SIM_TAB::GetSimCommand(), m_axis_x, m_axis_y1, m_axis_y2, m_axis_y3, m_plotWin, mpALIGN_BOTTOM, mpALIGN_LEFT, mpALIGN_RIGHT, and SPT_POWER.
Referenced by updateAxes().
| void SIM_PLOT_TAB::ResetScales | ( | bool | aIncludeX | ) |
Update trace line style.
Definition at line 2255 of file sim_plot_tab.cpp.
References end, SIM_TAB::GetSimCommand(), SIM_TAB::GetSimType(), m_axis_x, m_axis_y1, m_axis_y2, m_axis_y3, m_traces, name, ST_TRAN, and SPICE_VALUE::ToDouble().
Referenced by DeleteTrace(), and SIMULATOR_FRAME_UI::OnSimRefresh().
|
inline |
Restore a saved view, values are validated and clamped.
Definition at line 461 of file sim_plot_tab.h.
References m_smithPan, and m_smithZoom.
Referenced by onSmithDClick(), onSmithMenuCommand(), SetSmithMode(), and SmithZoomAt().
|
inline |
Draw secondary signal traces (current or phase) with dotted lines.
Definition at line 437 of file sim_plot_tab.h.
References m_dotted_cp, m_plotWin, m_traces, 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().
|
inline |
Definition at line 427 of file sim_plot_tab.h.
References m_LastLegendPosition, and m_legend.
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 1910 of file sim_plot_tab.cpp.
References SIM_PLOT_COLORS::AXIS, SIM_TAB::GetSimType(), KIUI::GetStatusFont(), m_colors, m_plotWin, m_smithGrid, m_smithLeftSkipped, m_smithMode, m_smithPanning, ResetSmithView(), ST_SP, UpdateAxisVisibility(), and UpdateSmithReferenceImpedance().
Referenced by SIMULATOR_FRAME_UI::loadJsonWorkbook(), and SIMULATOR_FRAME_UI::ToggleSmithChart().
|
inline |
Definition at line 468 of file sim_plot_tab.h.
References m_smithPan, and m_smithZoom.
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 1747 of file sim_plot_tab.cpp.
References cursor, TRACE::GetCursors(), SIM_TAB::GetSimType(), TRACE::GetType(), m_axis_x, m_axis_y1, m_axis_y2, 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 UpdateAxisVisibility().
Referenced by SIMULATOR_FRAME_UI::updateTrace().
| void SIM_PLOT_TAB::SetY1Scale | ( | bool | aLock, |
| double | aMin, | ||
| double | aMax ) |
Definition at line 1301 of file sim_plot_tab.cpp.
References m_axis_y1.
Referenced by SIMULATOR_FRAME_UI::loadJsonWorkbook().
| void SIM_PLOT_TAB::SetY2Scale | ( | bool | aLock, |
| double | aMin, | ||
| double | aMax ) |
Definition at line 1308 of file sim_plot_tab.cpp.
References m_axis_y2.
Referenced by SIMULATOR_FRAME_UI::loadJsonWorkbook().
| void SIM_PLOT_TAB::SetY3Scale | ( | bool | aLock, |
| double | aMin, | ||
| double | aMax ) |
Definition at line 1315 of file sim_plot_tab.cpp.
References m_axis_y3.
Referenced by SIMULATOR_FRAME_UI::loadJsonWorkbook().
|
inline |
Definition at line 386 of file sim_plot_tab.h.
References m_axis_x, m_axis_y1, m_axis_y2, m_axis_y3, and m_plotWin.
Referenced by SIMULATOR_FRAME_UI::loadJsonWorkbook(), and SIMULATOR_FRAME_UI::parseTraceParams().
|
inline |
Definition at line 411 of file sim_plot_tab.h.
References m_legend, and m_plotWin.
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 2005 of file sim_plot_tab.cpp.
References getSmithView(), m_plotWin, m_smithPan, and SMITH_VIEW::radius.
Referenced by onSmithMotion().
|
inline |
Turn on/off the cursor for a particular trace.
Definition at line 480 of file sim_plot_tab.h.
References m_smithStashedCursors.
Referenced by SIMULATOR_FRAME_UI::loadJsonWorkbook(), and SIMULATOR_FRAME_UI::ToggleSmithChart().
|
inline |
Definition at line 479 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 1981 of file sim_plot_tab.cpp.
References getSmithView(), m_plotWin, m_smithPan, m_smithZoom, ResetSmithView(), and SMITH_MATH::ZoomAboutPoint().
Referenced by onSmithMagnify(), onSmithMenuCommand(), and onSmithMouseWheel().
|
private |
Definition at line 1369 of file sim_plot_tab.cpp.
References _, EnsureThirdYAxisExists(), SIM_TAB::GetSimType(), KIUI::GetStatusFont(), m_axis_x, m_axis_y1, m_axis_y2, m_axis_y3, m_plotWin, mpALIGN_BORDER_RIGHT, mpALIGN_BOTTOM, mpALIGN_LEFT, mpALIGN_RIGHT, prepareDCAxes(), SPT_CURRENT, SPT_POWER, ST_AC, ST_DC, ST_FFT, ST_NOISE, ST_SP, ST_TRAN, and UpdateAxisVisibility().
Referenced by GetOrAddTrace(), OnLanguageChanged(), and SIM_PLOT_TAB().
|
private |
Definition at line 1814 of file sim_plot_tab.cpp.
References SIM_TAB::GetSimType(), m_axis_x, m_axis_y1, m_axis_y2, m_axis_y3, m_plotWin, m_smithMode, m_traces, name, SPT_AC_PHASE, SPT_CURRENT, SPT_POWER, and ST_AC.
Referenced by DeleteTrace(), SetSmithMode(), SetTraceData(), and updateAxes().
| void SIM_PLOT_TAB::UpdatePlotColors | ( | ) |
Definition at line 1656 of file sim_plot_tab.cpp.
References SIM_PLOT_COLORS::AXIS, SIM_PLOT_COLORS::BACKGROUND, SIM_PLOT_COLORS::FOREGROUND, m_colors, m_plotWin, and m_smithGrid.
Referenced by SIMULATOR_FRAME_UI::onSignalsGridCellChanged(), SIM_PLOT_TAB(), and SIMULATOR_FRAME_UI::ToggleDarkModePlots().
| void SIM_PLOT_TAB::UpdateSmithReferenceImpedance | ( | ) |
Definition at line 1946 of file sim_plot_tab.cpp.
References SMITH_TRACE::GetReferenceImpedance(), m_smithGrid, m_traces, and name.
Referenced by DeleteTrace(), SetSmithMode(), and SIMULATOR_FRAME_UI::updateTrace().
| void SIM_PLOT_TAB::UpdateTraceStyle | ( | TRACE * | trace | ) |
Update plot colors.
Definition at line 1677 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 572 of file sim_plot_tab.h.
Referenced by GetLabelX(), GetUnitsX(), IsGridShown(), prepareDCAxes(), ResetScales(), SetTraceData(), ShowGrid(), SIM_PLOT_TAB(), updateAxes(), and UpdateAxisVisibility().
|
private |
Definition at line 573 of file sim_plot_tab.h.
Referenced by EnsureThirdYAxisExists(), GetLabelY1(), GetUnitsY1(), GetY1Scale(), IsGridShown(), prepareDCAxes(), ResetScales(), SetTraceData(), SetY1Scale(), ShowGrid(), SIM_PLOT_TAB(), updateAxes(), and UpdateAxisVisibility().
|
private |
Definition at line 574 of file sim_plot_tab.h.
Referenced by EnsureThirdYAxisExists(), GetLabelY2(), GetOrAddTrace(), GetUnitsY2(), GetY2Scale(), prepareDCAxes(), ResetScales(), SetTraceData(), SetY2Scale(), ShowGrid(), SIM_PLOT_TAB(), updateAxes(), and UpdateAxisVisibility().
|
private |
Definition at line 575 of file sim_plot_tab.h.
Referenced by EnsureThirdYAxisExists(), GetLabelY3(), GetOrAddTrace(), GetUnitsY3(), GetY3Scale(), prepareDCAxes(), ResetScales(), SetTraceData(), SetY3Scale(), ShowGrid(), SIM_PLOT_TAB(), updateAxes(), and UpdateAxisVisibility().
|
private |
Definition at line 562 of file sim_plot_tab.h.
Referenced by GetOrAddTrace(), SetSmithMode(), and UpdatePlotColors().
|
private |
Definition at line 579 of file sim_plot_tab.h.
Referenced by GetDottedSecondary(), SetDottedSecondary(), SIM_PLOT_TAB(), and UpdateTraceStyle().
| wxPoint SIM_PLOT_TAB::m_LastLegendPosition |
Definition at line 514 of file sim_plot_tab.h.
Referenced by SetLegendPosition(), and SIM_PLOT_TAB().
|
privateinherited |
Definition at line 63 of file sim_tab.h.
Referenced by GetLastSchTextSimCommand(), and SetLastSchTextSimCommand().
|
private |
Definition at line 576 of file sim_plot_tab.h.
Referenced by GetLegendPosition(), IsLegendShown(), SetLegendPosition(), ShowLegend(), and SIM_PLOT_TAB().
|
private |
Definition at line 592 of file sim_plot_tab.h.
Referenced by Measurements().
|
private |
Definition at line 566 of file sim_plot_tab.h.
Referenced by ApplyPreferences(), DeleteTrace(), EnableCursor(), EnsureThirdYAxisExists(), GetOrAddTrace(), GetPlotWin(), getSmithView(), OnLanguageChanged(), onSmithDClick(), onSmithLeftDown(), onSmithMenuCommand(), onSmithRightUp(), prepareDCAxes(), SetDottedSecondary(), SetSmithMode(), ShowGrid(), ShowLegend(), SIM_PLOT_TAB(), SmithPanBy(), SmithZoomAt(), updateAxes(), UpdateAxisVisibility(), and UpdatePlotColors().
|
private |
Definition at line 563 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 567 of file sim_plot_tab.h.
Referenced by SIM_PLOT_TAB().
|
private |
Definition at line 577 of file sim_plot_tab.h.
Referenced by SetSmithMode(), SIM_PLOT_TAB(), UpdatePlotColors(), and UpdateSmithReferenceImpedance().
|
private |
Definition at line 584 of file sim_plot_tab.h.
Referenced by onSmithLeftDown(), onSmithLeftUp(), onSmithMotion(), SetSmithMode(), and SIM_PLOT_TAB().
|
private |
Definition at line 586 of file sim_plot_tab.h.
Referenced by onSmithMenuCommand(), and onSmithRightDown().
|
private |
Definition at line 580 of file sim_plot_tab.h.
Referenced by IsSmithMode(), onSmithDClick(), onSmithLeftDown(), onSmithLeftUp(), onSmithMagnify(), onSmithMenuCommand(), onSmithMiddleDown(), onSmithMotion(), onSmithMouseWheel(), onSmithRightDown(), onSmithRightUp(), SetSmithMode(), SIM_PLOT_TAB(), and UpdateAxisVisibility().
|
private |
Definition at line 582 of file sim_plot_tab.h.
Referenced by GetSmithPan(), getSmithView(), onSmithMenuCommand(), ResetSmithView(), SetSmithView(), SmithPanBy(), and SmithZoomAt().
|
private |
Definition at line 585 of file sim_plot_tab.h.
Referenced by onSmithLeftDown(), and onSmithMotion().
|
private |
Definition at line 583 of file sim_plot_tab.h.
Referenced by onSmithLeftDown(), onSmithLeftUp(), onSmithMotion(), SetSmithMode(), and SIM_PLOT_TAB().
|
private |
Definition at line 589 of file sim_plot_tab.h.
Referenced by SmithStashedCursors().
|
private |
Definition at line 588 of file sim_plot_tab.h.
Referenced by SmithStashedTraces().
|
private |
Definition at line 581 of file sim_plot_tab.h.
Referenced by getSmithView(), GetSmithZoom(), ResetSmithView(), SetSmithView(), SIM_PLOT_TAB(), and SmithZoomAt().
|
privateinherited |
Definition at line 64 of file sim_tab.h.
Referenced by GetSpicePlotName(), and SetSpicePlotName().
|
private |
Definition at line 570 of file sim_plot_tab.h.
Referenced by DeleteTrace(), GetOrAddTrace(), GetTrace(), GetTraces(), ResetScales(), SetDottedSecondary(), UpdateAxisVisibility(), and UpdateSmithReferenceImpedance().