KiCad PCB EDA Suite
SIM_PANEL_BASE Class Reference

#include <sim_panel_base.h>

Inheritance diagram for SIM_PANEL_BASE:
SIM_NOPLOT_PANEL SIM_PLOT_PANEL

Public Member Functions

 SIM_PANEL_BASE ()
 
 SIM_PANEL_BASE (const wxString &aCommand, int aOptions, wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxString &name=wxPanelNameStr)
 
virtual ~SIM_PANEL_BASE ()
 
SIM_TYPE GetType () const
 

Static Public Member Functions

static bool IsPlottable (SIM_TYPE aSimType)
 

Protected Member Functions

const wxString & getSimCommand () const
 
void setSimCommand (const wxString &aSimCommand)
 
const int getSimOptions () const
 
void setSimOptions (int aOptions)
 

Private Attributes

wxString m_simCommand
 
int m_simOptions
 

Friends

class SIM_WORKBOOK
 

Detailed Description

Definition at line 36 of file sim_panel_base.h.

Constructor & Destructor Documentation

◆ SIM_PANEL_BASE() [1/2]

SIM_PANEL_BASE::SIM_PANEL_BASE ( )

Definition at line 33 of file sim_panel_base.cpp.

◆ SIM_PANEL_BASE() [2/2]

SIM_PANEL_BASE::SIM_PANEL_BASE ( const wxString &  aCommand,
int  aOptions,
wxWindow *  parent,
wxWindowID  id,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = 0,
const wxString &  name = wxPanelNameStr 
)

Definition at line 40 of file sim_panel_base.cpp.

42 :
43 wxWindow( parent, id, pos, size, style, name ),
44 m_simCommand( aCommand ),
45 m_simOptions( aOptions )
46{
47}
const char * name
Definition: DXF_plotter.cpp:56

◆ ~SIM_PANEL_BASE()

SIM_PANEL_BASE::~SIM_PANEL_BASE ( )
virtual

Definition at line 50 of file sim_panel_base.cpp.

51{
52}

Member Function Documentation

◆ getSimCommand()

const wxString & SIM_PANEL_BASE::getSimCommand ( ) const
inlineprotected

Definition at line 56 of file sim_panel_base.h.

56{ return m_simCommand; }

References m_simCommand.

Referenced by SIM_WORKBOOK::GetSimCommand(), and SIM_PLOT_PANEL::prepareDCAxes().

◆ getSimOptions()

const int SIM_PANEL_BASE::getSimOptions ( ) const
inlineprotected

Definition at line 66 of file sim_panel_base.h.

66{ return m_simOptions; }

References m_simOptions.

Referenced by SIM_WORKBOOK::GetSimOptions().

◆ GetType()

◆ IsPlottable()

bool SIM_PANEL_BASE::IsPlottable ( SIM_TYPE  aSimType)
static

Definition at line 55 of file sim_panel_base.cpp.

56{
57 switch( aSimType )
58 {
59 case ST_AC:
60 case ST_DC:
61 case ST_TRANSIENT:
62 return true;
63
64 default:
65 return false;
66 }
67}
@ ST_TRANSIENT
Definition: sim_types.h:42
@ ST_AC
Definition: sim_types.h:34
@ ST_DC
Definition: sim_types.h:35

References ST_AC, ST_DC, and ST_TRANSIENT.

Referenced by SIM_PLOT_FRAME::addPlot(), SIM_PLOT_FRAME::menuNewPlot(), SIM_PLOT_FRAME::NewPlotPanel(), SIM_PLOT_FRAME::onSimFinished(), and SIM_PLOT_FRAME::updatePlot().

◆ setSimCommand()

void SIM_PANEL_BASE::setSimCommand ( const wxString &  aSimCommand)
inlineprotected

Definition at line 58 of file sim_panel_base.h.

59 {
60 wxCHECK_RET( GetType() == NGSPICE_CIRCUIT_MODEL::CommandToSimType( aSimCommand ),
61 "Cannot change the type of simulation of the existing plot panel" );
62
63 m_simCommand = aSimCommand;
64 }
SIM_TYPE GetType() const

References NGSPICE_CIRCUIT_MODEL::CommandToSimType(), GetType(), and m_simCommand.

Referenced by SIM_WORKBOOK::SetSimCommand().

◆ setSimOptions()

void SIM_PANEL_BASE::setSimOptions ( int  aOptions)
inlineprotected

Definition at line 67 of file sim_panel_base.h.

67{ m_simOptions = aOptions; }

References m_simOptions.

Referenced by SIM_WORKBOOK::SetSimOptions().

Friends And Related Function Documentation

◆ SIM_WORKBOOK

friend class SIM_WORKBOOK
friend

Definition at line 38 of file sim_panel_base.h.

Member Data Documentation

◆ m_simCommand

wxString SIM_PANEL_BASE::m_simCommand
private

Definition at line 70 of file sim_panel_base.h.

Referenced by getSimCommand(), GetType(), and setSimCommand().

◆ m_simOptions

int SIM_PANEL_BASE::m_simOptions
private

Definition at line 71 of file sim_panel_base.h.

Referenced by getSimOptions(), and setSimOptions().


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