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 (SIM_TYPE)
 
 SIM_PANEL_BASE (SIM_TYPE aType, 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)
 

Private Attributes

const SIM_TYPE m_type
 

Detailed Description

Definition at line 35 of file sim_panel_base.h.

Constructor & Destructor Documentation

◆ SIM_PANEL_BASE() [1/3]

SIM_PANEL_BASE::SIM_PANEL_BASE ( )

Definition at line 32 of file sim_panel_base.cpp.

32  : m_type( ST_UNKNOWN )
33 {
34 }
const SIM_TYPE m_type

◆ SIM_PANEL_BASE() [2/3]

SIM_PANEL_BASE::SIM_PANEL_BASE ( SIM_TYPE  aType)

Definition at line 37 of file sim_panel_base.cpp.

37  : m_type( aType )
38 {
39 }
const SIM_TYPE m_type

◆ SIM_PANEL_BASE() [3/3]

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

Definition at line 42 of file sim_panel_base.cpp.

44  : wxWindow( parent, id, pos, size, style, name ), m_type( aType )
45 {
46 }
const char * name
Definition: DXF_plotter.cpp:59
const SIM_TYPE m_type

◆ ~SIM_PANEL_BASE()

SIM_PANEL_BASE::~SIM_PANEL_BASE ( )
virtual

Definition at line 49 of file sim_panel_base.cpp.

50 {
51 }

Member Function Documentation

◆ GetType()

◆ IsPlottable()

bool SIM_PANEL_BASE::IsPlottable ( SIM_TYPE  aSimType)
static

Definition at line 54 of file sim_panel_base.cpp.

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

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().

Member Data Documentation

◆ m_type

const SIM_TYPE SIM_PANEL_BASE::m_type
private

Definition at line 53 of file sim_panel_base.h.

Referenced by GetType().


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