KiCad PCB EDA Suite
Loading...
Searching...
No Matches
SIM_PLOT_TAB Class Reference

#include <sim_plot_tab.h>

Inheritance diagram for SIM_PLOT_TAB:
SIM_TAB

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
 
SIM_VIEW * GetDefaultView () const
 The view new traces default to, and legacy (single-view) settings apply to.
 
SIM_VIEW * AddView ()
 Add a new (empty) view, stacked below the existing ones.
 
bool RemoveView (SIM_VIEW *aView)
 Remove a view.
 
void SyncXView (SIM_VIEW *aSource)
 Mirror aSource's current X range onto every other view of this tab.
 
wxString GetLabelX () const
 
wxString GetUnitsX () const
 
wxString GetUnitsForTrace (TRACE *aTrace) const
 Get the display units (e.g. "V", "A", "dB") for a given trace's own view.
 
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
 
void SetSmithMode (bool aEnable)
 Smith mode is tab-wide: every view of the tab shows a Smith chart while it is on.
 
bool IsSmithMode () const
 
void UpdateSmithReferenceImpedance ()
 Refresh the grid z0 from the shown Smith traces, on every view.
 
double GetSmithZoom () const
 The saved/restored pan and zoom track the default view.
 
wxRealPoint GetSmithPan () const
 
void ResetSmithView ()
 
void SetSmithView (double aZoom, double aPanX, double aPanY)
 Restore a saved view, values are validated and clamped.
 
void SmithZoomAt (const wxPoint &aPos, double aFactor)
 
void SmithPanBy (const wxPoint &aDelta)
 
std::vector< SMITH_STASHED_TRACE > & SmithStashedTraces ()
 Traces and cursors set aside while in Smith mode, restored when leaving it.
 
std::vector< SMITH_STASHED_CURSOR > & SmithStashedCursors ()
 
void EnableTrackCursor (bool aEnable)
 Turn on/off the crosshair that follows the mouse and reads out every trace's value.
 
bool IsTrackCursorEnabled () const
 
void SetTrackCursorX (double aPlotX)
 Show the track cursor of every view at a shared plot-space X.
 
void HideTrackCursor ()
 
void EnableCursor (TRACE *aTrace, int aCursorId, const wxString &aSignalName)
 Turn on/off the cursor for a particular trace.
 
void DisableCursor (TRACE *aTrace, int aCursorId)
 
void ResetScales (bool aIncludeX)
 Reset scale ranges to fit the current traces, on every view.
 
void UpdateTraceStyle (TRACE *trace)
 Update trace line style.
 
void UpdatePlotColors ()
 Update plot colors.
 
wxColour GetPlotColor (SIM_PLOT_COLORS::COLOR_SET aColorId)
 
void OnLanguageChanged () override
 
mpWindow * GetPlotWin () const
 Getter for the default view's math plot window (back-compat for zoom undo/redo, export).
 
TRACE * GetOrAddTrace (const wxString &aVectorName, int aType, SIM_VIEW *aView)
 Get (or create, on aView) the TRACE for a signal.
 
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
 Shared implementation of GetY1Scale/GetY2Scale/GetY3Scale for axis slot 1/2/3.
 
bool getYScale (int aSlot, double *aMin, double *aMax) 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_trackCursorEnabled
 
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
 

Detailed Description

Definition at line 618 of file sim_plot_tab.h.

Constructor & Destructor Documentation

◆ SIM_PLOT_TAB()

◆ ~SIM_PLOT_TAB()

SIM_PLOT_TAB::~SIM_PLOT_TAB ( )
virtual

Definition at line 2511 of file sim_plot_tab.cpp.

Member Function Documentation

◆ AddView()

◆ ApplyPreferences()

void SIM_PLOT_TAB::ApplyPreferences ( const SIM_PREFERENCES & aPrefs)
overridevirtual

◆ convertMouseWheelActions()

◆ DeleteTrace() [1/2]

bool SIM_PLOT_TAB::DeleteTrace ( const wxString & aVectorName,
int aTraceType )

◆ DeleteTrace() [2/2]

void SIM_PLOT_TAB::DeleteTrace ( TRACE * aTrace)

Definition at line 3142 of file sim_plot_tab.cpp.

References cursor, TRACE::GetCursors(), TRACE::GetView(), m_traces, name, and ResetScales().

◆ DisableCursor()

void SIM_PLOT_TAB::DisableCursor ( TRACE * aTrace,
int aCursorId )

◆ EnableCursor()

◆ EnableTrackCursor()

void SIM_PLOT_TAB::EnableTrackCursor ( bool aEnable)

Turn on/off the crosshair that follows the mouse and reads out every trace's value.

It is a tab-wide mode: the crosshair shows on every stacked view at the same X.

Definition at line 2892 of file sim_plot_tab.cpp.

References HideTrackCursor(), and m_trackCursorEnabled.

Referenced by SIMULATOR_FRAME_UI::loadJsonWorkbook().

◆ EnsureThirdYAxisExists()

void SIM_PLOT_TAB::EnsureThirdYAxisExists ( )

Definition at line 2871 of file sim_plot_tab.cpp.

References m_views.

Referenced by SIMULATOR_FRAME_UI::loadJsonWorkbook().

◆ GetDefaultView()

SIM_VIEW * SIM_PLOT_TAB::GetDefaultView ( ) const
inline

◆ GetDottedSecondary()

bool SIM_PLOT_TAB::GetDottedSecondary ( ) const
inline

Definition at line 703 of file sim_plot_tab.h.

References m_dotted_cp.

Referenced by SIMULATOR_FRAME::setupUIConditions().

◆ GetLabelX()

wxString SIM_PLOT_TAB::GetLabelX ( ) const

Definition at line 2671 of file sim_plot_tab.cpp.

References GetDefaultView(), and SIM_VIEW::GetLabelX().

Referenced by SIMULATOR_FRAME_UI::updatePlotCursors().

◆ GetLabelY1()

wxString SIM_PLOT_TAB::GetLabelY1 ( ) const

Definition at line 2736 of file sim_plot_tab.cpp.

References GetDefaultView(), and SIM_VIEW::GetLabelY1().

Referenced by SIMULATOR_FRAME_UI::updatePlotCursors().

◆ GetLabelY2()

wxString SIM_PLOT_TAB::GetLabelY2 ( ) const

Definition at line 2743 of file sim_plot_tab.cpp.

References GetDefaultView(), and SIM_VIEW::GetLabelY2().

Referenced by SIMULATOR_FRAME_UI::updatePlotCursors().

◆ GetLabelY3()

wxString SIM_PLOT_TAB::GetLabelY3 ( ) const

Definition at line 2750 of file sim_plot_tab.cpp.

References GetDefaultView(), and SIM_VIEW::GetLabelY3().

Referenced by SIMULATOR_FRAME_UI::updatePlotCursors().

◆ GetLastSchTextSimCommand()

wxString SIM_TAB::GetLastSchTextSimCommand ( ) const
inlineinherited

◆ GetLegendPosition()

wxPoint SIM_PLOT_TAB::GetLegendPosition ( ) const

Definition at line 2720 of file sim_plot_tab.cpp.

References GetDefaultView(), and SIM_VIEW::GetLegendPosition().

◆ GetOrAddTrace()

TRACE * SIM_PLOT_TAB::GetOrAddTrace ( const wxString & aVectorName,
int aType,
SIM_VIEW * aView )

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 3019 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, SIM_VIEW::RaiseOverlays(), 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().

◆ GetPlotColor()

wxColour SIM_PLOT_TAB::GetPlotColor ( SIM_PLOT_COLORS::COLOR_SET aColorId)
inline

Definition at line 751 of file sim_plot_tab.h.

References m_colors.

◆ GetPlotWin()

mpWindow * SIM_PLOT_TAB::GetPlotWin ( ) const

Getter for the default view's math plot window (back-compat for zoom undo/redo, export).

Definition at line 3306 of file sim_plot_tab.cpp.

References GetDefaultView().

Referenced by SIMULATOR_FRAME_UI::loadJsonWorkbook(), and SIMULATOR_FRAME::setupUIConditions().

◆ GetSimCommand()

const wxString & SIM_TAB::GetSimCommand ( ) const
inlineinherited

◆ GetSimOptions()

int SIM_TAB::GetSimOptions ( ) const
inlineinherited

◆ GetSimType()

◆ GetSmithPan()

wxRealPoint SIM_PLOT_TAB::GetSmithPan ( ) const

Definition at line 2952 of file sim_plot_tab.cpp.

References GetDefaultView(), and SIM_VIEW::GetSmithPan().

◆ GetSmithZoom()

double SIM_PLOT_TAB::GetSmithZoom ( ) const

The saved/restored pan and zoom track the default view.

Definition at line 2945 of file sim_plot_tab.cpp.

References GetDefaultView(), and SIM_VIEW::GetSmithZoom().

◆ GetSpicePlotName()

const wxString & SIM_TAB::GetSpicePlotName ( ) const
inlineinherited

◆ GetTrace()

◆ getTraceId()

wxString SIM_PLOT_TAB::getTraceId ( const wxString & aVectorName,
int aType ) const
inlineprivate

Shared implementation of GetY1Scale/GetY2Scale/GetY3Scale for axis slot 1/2/3.

Definition at line 801 of file sim_plot_tab.h.

References SPT_Y_AXIS_MASK.

Referenced by GetOrAddTrace(), and GetTrace().

◆ GetTraces()

◆ GetUnitsForTrace()

wxString SIM_PLOT_TAB::GetUnitsForTrace ( TRACE * aTrace) const

Get the display units (e.g. "V", "A", "dB") for a given trace's own view.

Definition at line 2685 of file sim_plot_tab.cpp.

References GetDefaultView(), SIM_VIEW::GetUnitsForTrace(), and TRACE::GetView().

◆ GetUnitsX()

wxString SIM_PLOT_TAB::GetUnitsX ( ) const

Definition at line 2678 of file sim_plot_tab.cpp.

References GetDefaultView(), and SIM_VIEW::GetUnitsX().

Referenced by SIMULATOR_FRAME_UI::updatePlotCursors().

◆ GetUnitsY1()

wxString SIM_PLOT_TAB::GetUnitsY1 ( ) const

Definition at line 2757 of file sim_plot_tab.cpp.

References GetDefaultView(), and SIM_VIEW::GetUnitsY1().

Referenced by SIMULATOR_FRAME_UI::updatePlotCursors().

◆ GetUnitsY2()

wxString SIM_PLOT_TAB::GetUnitsY2 ( ) const

Definition at line 2764 of file sim_plot_tab.cpp.

References GetDefaultView(), and SIM_VIEW::GetUnitsY2().

Referenced by SIMULATOR_FRAME_UI::updatePlotCursors().

◆ GetUnitsY3()

wxString SIM_PLOT_TAB::GetUnitsY3 ( ) const

Definition at line 2771 of file sim_plot_tab.cpp.

References GetDefaultView(), and SIM_VIEW::GetUnitsY3().

Referenced by SIMULATOR_FRAME_UI::updatePlotCursors().

◆ GetView()

SIM_VIEW * SIM_PLOT_TAB::GetView ( int aIndex) const
inline

Definition at line 631 of file sim_plot_tab.h.

References m_views.

Referenced by SIMULATOR_FRAME_UI::onSignalsGridCellChanged().

◆ GetViewCount()

int SIM_PLOT_TAB::GetViewCount ( ) const
inline

Definition at line 638 of file sim_plot_tab.h.

References m_views.

Referenced by SIMULATOR_FRAME_UI::getViewChoices().

◆ GetViewIndex()

int SIM_PLOT_TAB::GetViewIndex ( SIM_VIEW * aView) const

Definition at line 2633 of file sim_plot_tab.cpp.

References m_views.

Referenced by SIMULATOR_FRAME_UI::getViewLabel().

◆ GetViews()

const std::vector< SIM_VIEW * > & SIM_PLOT_TAB::GetViews ( ) const
inline

◆ GetY1Scale()

bool SIM_PLOT_TAB::GetY1Scale ( double * aMin,
double * aMax ) const

Definition at line 2832 of file sim_plot_tab.cpp.

References getYScale().

◆ GetY2Scale()

bool SIM_PLOT_TAB::GetY2Scale ( double * aMin,
double * aMax ) const

Definition at line 2838 of file sim_plot_tab.cpp.

References getYScale().

◆ GetY3Scale()

bool SIM_PLOT_TAB::GetY3Scale ( double * aMin,
double * aMax ) const

Definition at line 2844 of file sim_plot_tab.cpp.

References getYScale().

◆ getYScale()

bool SIM_PLOT_TAB::getYScale ( int aSlot,
double * aMin,
double * aMax ) const
private

◆ HideTrackCursor()

void SIM_PLOT_TAB::HideTrackCursor ( )

Definition at line 2912 of file sim_plot_tab.cpp.

References m_views.

Referenced by EnableTrackCursor().

◆ IsGridShown()

bool SIM_PLOT_TAB::IsGridShown ( ) const

Definition at line 2699 of file sim_plot_tab.cpp.

References GetDefaultView(), and SIM_VIEW::IsGridShown().

Referenced by SIMULATOR_FRAME::setupUIConditions().

◆ IsLegendShown()

bool SIM_PLOT_TAB::IsLegendShown ( ) const

Definition at line 2713 of file sim_plot_tab.cpp.

References GetDefaultView(), and SIM_VIEW::IsLegendShown().

Referenced by SIMULATOR_FRAME::setupUIConditions().

◆ IsPlottable()

bool SIM_TAB::IsPlottable ( SIM_TYPE aSimType)
staticinherited

◆ IsSmithMode()

◆ IsTrackCursorEnabled()

bool SIM_PLOT_TAB::IsTrackCursorEnabled ( ) const
inline

Definition at line 731 of file sim_plot_tab.h.

References m_trackCursorEnabled.

Referenced by SIMULATOR_FRAME::setupUIConditions().

◆ Measurements()

std::vector< std::pair< wxString, wxString > > & SIM_PLOT_TAB::Measurements ( )
inline

◆ OnLanguageChanged()

void SIM_PLOT_TAB::OnLanguageChanged ( )
overridevirtual

Implements SIM_TAB.

Definition at line 2990 of file sim_plot_tab.cpp.

References m_views.

◆ RemoveView()

bool SIM_PLOT_TAB::RemoveView ( SIM_VIEW * aView)

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 2586 of file sim_plot_tab.cpp.

References DeleteTrace(), m_traces, m_views, m_viewsSizer, name, and ResetScales().

Referenced by SIM_PLOT_TAB().

◆ ResetScales()

void SIM_PLOT_TAB::ResetScales ( bool aIncludeX)

Reset scale ranges to fit the current traces, on every view.

Definition at line 3238 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().

◆ ResetSmithView()

void SIM_PLOT_TAB::ResetSmithView ( )

Definition at line 2959 of file sim_plot_tab.cpp.

References m_views.

◆ SetDottedSecondary()

void SIM_PLOT_TAB::SetDottedSecondary ( bool aEnable)
inline

Draw secondary signal traces (current or phase) with dotted lines.

Definition at line 692 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().

◆ SetLastSchTextSimCommand()

void SIM_TAB::SetLastSchTextSimCommand ( const wxString & aCmd)
inlineinherited

◆ SetLegendPosition()

void SIM_PLOT_TAB::SetLegendPosition ( const wxPoint & aPosition)

Definition at line 2727 of file sim_plot_tab.cpp.

References GetDefaultView(), and m_LastLegendPosition.

Referenced by SIMULATOR_FRAME_UI::loadJsonWorkbook().

◆ SetSimCommand()

void SIM_TAB::SetSimCommand ( const wxString & aSimCommand)
inlineinherited

Definition at line 49 of file sim_tab.h.

References m_simCommand.

Referenced by SIMULATOR_FRAME::EditAnalysis(), and SIMULATOR_FRAME::StartSimulation().

◆ SetSimOptions()

void SIM_TAB::SetSimOptions ( int aOptions)
inlineinherited

◆ SetSmithMode()

void SIM_PLOT_TAB::SetSmithMode ( bool aEnable)

Smith mode is tab-wide: every view of the tab shows a Smith chart while it is on.

Definition at line 2922 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().

◆ SetSmithView()

void SIM_PLOT_TAB::SetSmithView ( double aZoom,
double aPanX,
double aPanY )

Restore a saved view, values are validated and clamped.

Definition at line 2969 of file sim_plot_tab.cpp.

References m_views.

Referenced by SIMULATOR_FRAME_UI::loadJsonWorkbook().

◆ SetSpicePlotName()

void SIM_TAB::SetSpicePlotName ( const wxString & aPlotName)
inlineinherited

◆ SetTraceData()

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 = {} )

◆ SetTrackCursorX()

void SIM_PLOT_TAB::SetTrackCursorX ( double aPlotX)

Show the track cursor of every view at a shared plot-space X.

Definition at line 2901 of file sim_plot_tab.cpp.

References m_views.

◆ SetY1Scale()

void SIM_PLOT_TAB::SetY1Scale ( bool aLock,
double aMin,
double aMax )

Definition at line 2850 of file sim_plot_tab.cpp.

References m_views.

Referenced by SIMULATOR_FRAME_UI::loadJsonWorkbook().

◆ SetY2Scale()

void SIM_PLOT_TAB::SetY2Scale ( bool aLock,
double aMin,
double aMax )

Definition at line 2857 of file sim_plot_tab.cpp.

References m_views.

Referenced by SIMULATOR_FRAME_UI::loadJsonWorkbook().

◆ SetY3Scale()

void SIM_PLOT_TAB::SetY3Scale ( bool aLock,
double aMin,
double aMax )

Definition at line 2864 of file sim_plot_tab.cpp.

References m_views.

Referenced by SIMULATOR_FRAME_UI::loadJsonWorkbook().

◆ ShowGrid()

void SIM_PLOT_TAB::ShowGrid ( bool aEnable)

◆ ShowLegend()

void SIM_PLOT_TAB::ShowLegend ( bool aEnable)

Definition at line 2706 of file sim_plot_tab.cpp.

References m_views.

Referenced by SIMULATOR_FRAME_UI::loadJsonWorkbook().

◆ SmithPanBy()

void SIM_PLOT_TAB::SmithPanBy ( const wxPoint & aDelta)

Definition at line 2983 of file sim_plot_tab.cpp.

References m_views.

◆ SmithStashedCursors()

std::vector< SMITH_STASHED_CURSOR > & SIM_PLOT_TAB::SmithStashedCursors ( )
inline

◆ SmithStashedTraces()

std::vector< SMITH_STASHED_TRACE > & SIM_PLOT_TAB::SmithStashedTraces ( )
inline

Traces and cursors set aside while in Smith mode, restored when leaving it.

Definition at line 725 of file sim_plot_tab.h.

References m_smithStashedTraces.

Referenced by SIMULATOR_FRAME_UI::loadJsonWorkbook(), and SIMULATOR_FRAME_UI::ToggleSmithChart().

◆ SmithZoomAt()

void SIM_PLOT_TAB::SmithZoomAt ( const wxPoint & aPos,
double aFactor )

Definition at line 2976 of file sim_plot_tab.cpp.

References m_views.

◆ SyncXView()

void SIM_PLOT_TAB::SyncXView ( SIM_VIEW * aSource)

Mirror aSource's current X range onto every other view of this tab.

Definition at line 2645 of file sim_plot_tab.cpp.

References mpWindow::GetDesiredXmax(), mpWindow::GetDesiredXmin(), mpWindow::GetPosX(), mpWindow::GetScaleX(), m_syncingXView, and m_views.

Referenced by AddView().

◆ UpdatePlotColors()

void SIM_PLOT_TAB::UpdatePlotColors ( )

◆ UpdateSmithReferenceImpedance()

void SIM_PLOT_TAB::UpdateSmithReferenceImpedance ( )

Refresh the grid z0 from the shown Smith traces, on every view.

Definition at line 2938 of file sim_plot_tab.cpp.

References m_views.

Referenced by SIMULATOR_FRAME_UI::updateTrace().

◆ UpdateTraceStyle()

Member Data Documentation

◆ m_colors

SIM_PLOT_COLORS SIM_PLOT_TAB::m_colors
private

Definition at line 810 of file sim_plot_tab.h.

Referenced by GetOrAddTrace(), GetPlotColor(), and UpdatePlotColors().

◆ m_dotted_cp

bool SIM_PLOT_TAB::m_dotted_cp
private

◆ m_LastLegendPosition

wxPoint SIM_PLOT_TAB::m_LastLegendPosition

Definition at line 781 of file sim_plot_tab.h.

Referenced by SetLegendPosition().

◆ m_lastSchTextSimCommand

wxString SIM_TAB::m_lastSchTextSimCommand
privateinherited

Definition at line 63 of file sim_tab.h.

Referenced by GetLastSchTextSimCommand(), and SetLastSchTextSimCommand().

◆ m_measurements

std::vector<std::pair<wxString, wxString> > SIM_PLOT_TAB::m_measurements
private

Definition at line 839 of file sim_plot_tab.h.

Referenced by Measurements().

◆ m_mouseWheelActions

mpWindow::MouseWheelActionSet SIM_PLOT_TAB::m_mouseWheelActions
private

Definition at line 819 of file sim_plot_tab.h.

Referenced by AddView(), ApplyPreferences(), and SIM_PLOT_TAB().

◆ m_sessionTraceColors

std::map<wxString, wxColour> SIM_PLOT_TAB::m_sessionTraceColors
private

Definition at line 811 of file sim_plot_tab.h.

Referenced by GetOrAddTrace(), and UpdateTraceStyle().

◆ m_simCommand

wxString SIM_TAB::m_simCommand
privateinherited

Definition at line 61 of file sim_tab.h.

Referenced by GetSimCommand(), GetSimType(), SetSimCommand(), SIM_TAB(), and SIM_TAB().

◆ m_simOptions

unsigned SIM_TAB::m_simOptions
privateinherited

Definition at line 62 of file sim_tab.h.

Referenced by GetSimOptions(), SetSimOptions(), SIM_TAB(), and SIM_TAB().

◆ m_smithMode

bool SIM_PLOT_TAB::m_smithMode
private

Definition at line 833 of file sim_plot_tab.h.

Referenced by AddView(), IsSmithMode(), SetSmithMode(), and SIM_PLOT_TAB().

◆ m_smithStashedCursors

std::vector<SMITH_STASHED_CURSOR> SIM_PLOT_TAB::m_smithStashedCursors
private

Definition at line 836 of file sim_plot_tab.h.

Referenced by SmithStashedCursors().

◆ m_smithStashedTraces

std::vector<SMITH_STASHED_TRACE> SIM_PLOT_TAB::m_smithStashedTraces
private

Definition at line 835 of file sim_plot_tab.h.

Referenced by SmithStashedTraces().

◆ m_spicePlotName

wxString SIM_TAB::m_spicePlotName
privateinherited

Definition at line 64 of file sim_tab.h.

Referenced by GetSpicePlotName(), and SetSpicePlotName().

◆ m_syncingXView

bool SIM_PLOT_TAB::m_syncingXView
private

Definition at line 827 of file sim_plot_tab.h.

Referenced by SIM_PLOT_TAB(), and SyncXView().

◆ m_traces

std::map<wxString, TRACE*> SIM_PLOT_TAB::m_traces
private

◆ m_trackCursorEnabled

bool SIM_PLOT_TAB::m_trackCursorEnabled
private

Definition at line 829 of file sim_plot_tab.h.

Referenced by EnableTrackCursor(), IsTrackCursorEnabled(), and SIM_PLOT_TAB().

◆ m_views

◆ m_viewsSizer

wxBoxSizer* SIM_PLOT_TAB::m_viewsSizer
private

Definition at line 813 of file sim_plot_tab.h.

Referenced by AddView(), RemoveView(), and SIM_PLOT_TAB().


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