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)
 
 SIM_PANEL_BASE (const wxString &aCommand, 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)
 

Private Attributes

wxString m_simCommand
 

Friends

class SIM_WORKBOOK
 

Detailed Description

Definition at line 36 of file sim_panel_base.h.

Constructor & Destructor Documentation

◆ SIM_PANEL_BASE() [1/3]

SIM_PANEL_BASE::SIM_PANEL_BASE ( )

Definition at line 33 of file sim_panel_base.cpp.

33  : m_simCommand( wxEmptyString )
34 {
35 }
wxString m_simCommand

◆ SIM_PANEL_BASE() [2/3]

SIM_PANEL_BASE::SIM_PANEL_BASE ( const wxString &  aCommand)

Definition at line 38 of file sim_panel_base.cpp.

38  : m_simCommand( aCommand )
39 {
40 }
wxString m_simCommand

◆ SIM_PANEL_BASE() [3/3]

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

Definition at line 43 of file sim_panel_base.cpp.

45  :
46  wxWindow( parent, id, pos, size, style, name ),
47  m_simCommand( aCommand )
48 {
49 }
wxString m_simCommand
const char * name
Definition: DXF_plotter.cpp:56

◆ ~SIM_PANEL_BASE()

SIM_PANEL_BASE::~SIM_PANEL_BASE ( )
virtual

Definition at line 52 of file sim_panel_base.cpp.

53 {
54 }

Member Function Documentation

◆ getSimCommand()

const wxString& SIM_PANEL_BASE::getSimCommand ( ) const
inlineprotected

Definition at line 57 of file sim_panel_base.h.

57 { return m_simCommand; }
wxString m_simCommand

References m_simCommand.

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

◆ GetType()

◆ IsPlottable()

bool SIM_PANEL_BASE::IsPlottable ( SIM_TYPE  aSimType)
static

Definition at line 57 of file sim_panel_base.cpp.

58 {
59  switch( aSimType )
60  {
61  case ST_AC:
62  case ST_DC:
63  case ST_TRANSIENT:
64  return true;
65 
66  default:
67  return false;
68  }
69 }

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 59 of file sim_panel_base.h.

60  {
61  wxCHECK_RET( GetType() == NETLIST_EXPORTER_PSPICE_SIM::CommandToSimType( aSimCommand ),
62  "Cannot change the type of simulation of the existing plot panel" );
63 
64  m_simCommand = aSimCommand;
65  }
static SIM_TYPE CommandToSimType(const wxString &aCmd)
Return simulation type basing on a simulation command directive.
wxString m_simCommand
SIM_TYPE GetType() const

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

Referenced by SIM_WORKBOOK::SetSimCommand().

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 68 of file sim_panel_base.h.

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


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