KiCad PCB EDA Suite
|
#include <panel_electrical_spacing_iec60664.h>
Public Member Functions | |
PANEL_ELECTRICAL_SPACING_IEC60664 (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString) | |
~PANEL_ELECTRICAL_SPACING_IEC60664 () | |
void | UpdateTransientImpulse (wxCommandEvent &event) override |
void | UpdateClearanceCreepage (wxCommandEvent &event) override |
void | LoadSettings (PCB_CALCULATOR_SETTINGS *aCfg) override |
Load the settings into the panel. | |
void | SaveSettings (PCB_CALCULATOR_SETTINGS *aCfg) override |
Save the settings from the panel. | |
void | ThemeChanged () override |
Update UI elements of the panel when the theme changes to ensure the images and fonts/colors are appropriate for the new theme. | |
void | CalculateTransientImpulse () |
void | CalculateClearanceCreepage () |
Definition at line 28 of file panel_electrical_spacing_iec60664.h.
PANEL_ELECTRICAL_SPACING_IEC60664::PANEL_ELECTRICAL_SPACING_IEC60664 | ( | wxWindow * | parent, |
wxWindowID | id = wxID_ANY , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxTAB_TRAVERSAL , |
||
const wxString & | name = wxEmptyString |
||
) |
Definition at line 40 of file panel_electrical_spacing_iec60664.cpp.
References ConvertMarkdown2Html(), iec60664help, KiBitmapBundle(), PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_creepageclearanceBitmap, PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_insulationType, PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_materialGroup, PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_OVCchoice, PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_panelHelp, PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_pollutionDegree, and HTML_WINDOW::SetPage().
PANEL_ELECTRICAL_SPACING_IEC60664::~PANEL_ELECTRICAL_SPACING_IEC60664 | ( | ) |
Definition at line 63 of file panel_electrical_spacing_iec60664.cpp.
void PANEL_ELECTRICAL_SPACING_IEC60664::CalculateClearanceCreepage | ( | ) |
Definition at line 156 of file panel_electrical_spacing_iec60664.cpp.
References _, IEC60664::BASIC, IEC60664::Compute(), IEC60664::FUNCTIONAL, IEC60664::GetClearanceDistance(), IEC60664::GetCreepageDistance(), IEC60664::GetMinGrooveWidth(), PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_altitude, PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_clearance, PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_creepage, PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_insulationType, PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_materialGroup, PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_minGrooveWidth, PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_pcbMaterial, PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_peakVoltage, PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_pollutionDegree, PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_RMSVoltage, PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_transientOvervoltage, IEC60664::MG_I, IEC60664::MG_II, IEC60664::MG_IIIa, IEC60664::MG_IIIb, IEC60664::PD1, IEC60664::PD2, IEC60664::PD3, IEC60664::PD4, IEC60664::REINFORCED, IEC60664::SetAltitude(), IEC60664::SetInsulationType(), IEC60664::SetMaterialGroup(), IEC60664::SetPCBMaterial(), IEC60664::SetPeakVoltage(), IEC60664::SetPollutionDegree(), IEC60664::SetRMSVoltage(), and IEC60664::SetTransientVoltage().
Referenced by LoadSettings(), and UpdateClearanceCreepage().
void PANEL_ELECTRICAL_SPACING_IEC60664::CalculateTransientImpulse | ( | ) |
Definition at line 117 of file panel_electrical_spacing_iec60664.cpp.
References _, IEC60664::GetRatedImpulseWithstandVoltage(), PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_impulseVotlage1TxtCtrl, PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_OVCchoice, PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_ratedVoltage, IEC60664::OV_I, IEC60664::OV_II, IEC60664::OV_III, IEC60664::OV_IV, IEC60664::SetOvervoltageCategory(), and IEC60664::SetRatedVoltage().
Referenced by LoadSettings(), and UpdateTransientImpulse().
|
overridevirtual |
Load the settings into the panel.
aCfg | is the settings structure to load from |
Implements CALCULATOR_PANEL.
Definition at line 94 of file panel_electrical_spacing_iec60664.cpp.
References CalculateClearanceCreepage(), CalculateTransientImpulse(), PCB_CALCULATOR_SETTINGS::ELECTRICAL::iec60664_altitude, PCB_CALCULATOR_SETTINGS::ELECTRICAL::iec60664_insulationType, PCB_CALCULATOR_SETTINGS::ELECTRICAL::iec60664_materialGroup, PCB_CALCULATOR_SETTINGS::ELECTRICAL::iec60664_OVC, PCB_CALCULATOR_SETTINGS::ELECTRICAL::iec60664_pcbMaterial, PCB_CALCULATOR_SETTINGS::ELECTRICAL::iec60664_peakOV, PCB_CALCULATOR_SETTINGS::ELECTRICAL::iec60664_pollutionDegree, PCB_CALCULATOR_SETTINGS::ELECTRICAL::iec60664_ratedVoltage, PCB_CALCULATOR_SETTINGS::ELECTRICAL::iec60664_RMSvoltage, PCB_CALCULATOR_SETTINGS::ELECTRICAL::iec60664_transientOV, PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_altitude, PCB_CALCULATOR_SETTINGS::m_Electrical, PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_insulationType, PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_materialGroup, PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_OVCchoice, PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_pcbMaterial, PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_peakVoltage, PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_pollutionDegree, PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_ratedVoltage, PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_RMSVoltage, and PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_transientOvervoltage.
|
overridevirtual |
Save the settings from the panel.
aCfg | is the settings structure to save to |
Implements CALCULATOR_PANEL.
Definition at line 74 of file panel_electrical_spacing_iec60664.cpp.
References DoubleFromString(), PCB_CALCULATOR_SETTINGS::ELECTRICAL::iec60664_altitude, PCB_CALCULATOR_SETTINGS::ELECTRICAL::iec60664_insulationType, PCB_CALCULATOR_SETTINGS::ELECTRICAL::iec60664_materialGroup, PCB_CALCULATOR_SETTINGS::ELECTRICAL::iec60664_OVC, PCB_CALCULATOR_SETTINGS::ELECTRICAL::iec60664_pcbMaterial, PCB_CALCULATOR_SETTINGS::ELECTRICAL::iec60664_peakOV, PCB_CALCULATOR_SETTINGS::ELECTRICAL::iec60664_pollutionDegree, PCB_CALCULATOR_SETTINGS::ELECTRICAL::iec60664_ratedVoltage, PCB_CALCULATOR_SETTINGS::ELECTRICAL::iec60664_RMSvoltage, PCB_CALCULATOR_SETTINGS::ELECTRICAL::iec60664_transientOV, PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_altitude, PCB_CALCULATOR_SETTINGS::m_Electrical, PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_insulationType, PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_materialGroup, PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_OVCchoice, PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_pcbMaterial, PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_peakVoltage, PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_pollutionDegree, PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_ratedVoltage, PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_RMSVoltage, and PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_transientOvervoltage.
|
overridevirtual |
Update UI elements of the panel when the theme changes to ensure the images and fonts/colors are appropriate for the new theme.
Implements CALCULATOR_PANEL.
Definition at line 68 of file panel_electrical_spacing_iec60664.cpp.
References KiBitmapBundle(), and PANEL_ELECTRICAL_SPACING_IEC60664_BASE::m_creepageclearanceBitmap.
|
overridevirtual |
Reimplemented from PANEL_ELECTRICAL_SPACING_IEC60664_BASE.
Definition at line 247 of file panel_electrical_spacing_iec60664.cpp.
References CalculateClearanceCreepage().
|
overridevirtual |
Reimplemented from PANEL_ELECTRICAL_SPACING_IEC60664_BASE.
Definition at line 150 of file panel_electrical_spacing_iec60664.cpp.
References CalculateTransientImpulse().
|
protectedinherited |
Definition at line 74 of file panel_electrical_spacing_iec60664_base.h.
Referenced by CalculateClearanceCreepage(), LoadSettings(), PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE(), SaveSettings(), and PANEL_ELECTRICAL_SPACING_IEC60664_BASE::~PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 77 of file panel_electrical_spacing_iec60664_base.h.
Referenced by CalculateClearanceCreepage(), and PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 80 of file panel_electrical_spacing_iec60664_base.h.
Referenced by CalculateClearanceCreepage(), and PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 85 of file panel_electrical_spacing_iec60664_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_IEC60664(), PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE(), and ThemeChanged().
|
protectedinherited |
Definition at line 54 of file panel_electrical_spacing_iec60664_base.h.
Referenced by CalculateTransientImpulse(), and PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 66 of file panel_electrical_spacing_iec60664_base.h.
Referenced by CalculateClearanceCreepage(), LoadSettings(), PANEL_ELECTRICAL_SPACING_IEC60664(), PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE(), SaveSettings(), and PANEL_ELECTRICAL_SPACING_IEC60664_BASE::~PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 70 of file panel_electrical_spacing_iec60664_base.h.
Referenced by CalculateClearanceCreepage(), LoadSettings(), PANEL_ELECTRICAL_SPACING_IEC60664(), PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE(), SaveSettings(), and PANEL_ELECTRICAL_SPACING_IEC60664_BASE::~PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 69 of file panel_electrical_spacing_iec60664_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 83 of file panel_electrical_spacing_iec60664_base.h.
Referenced by CalculateClearanceCreepage(), and PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 52 of file panel_electrical_spacing_iec60664_base.h.
Referenced by CalculateTransientImpulse(), LoadSettings(), PANEL_ELECTRICAL_SPACING_IEC60664(), PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE(), SaveSettings(), and PANEL_ELECTRICAL_SPACING_IEC60664_BASE::~PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 87 of file panel_electrical_spacing_iec60664_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_IEC60664(), and PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 72 of file panel_electrical_spacing_iec60664_base.h.
Referenced by CalculateClearanceCreepage(), LoadSettings(), PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE(), SaveSettings(), and PANEL_ELECTRICAL_SPACING_IEC60664_BASE::~PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 63 of file panel_electrical_spacing_iec60664_base.h.
Referenced by CalculateClearanceCreepage(), LoadSettings(), PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE(), SaveSettings(), and PANEL_ELECTRICAL_SPACING_IEC60664_BASE::~PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 68 of file panel_electrical_spacing_iec60664_base.h.
Referenced by CalculateClearanceCreepage(), LoadSettings(), PANEL_ELECTRICAL_SPACING_IEC60664(), PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE(), SaveSettings(), and PANEL_ELECTRICAL_SPACING_IEC60664_BASE::~PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 49 of file panel_electrical_spacing_iec60664_base.h.
Referenced by CalculateTransientImpulse(), LoadSettings(), PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE(), SaveSettings(), and PANEL_ELECTRICAL_SPACING_IEC60664_BASE::~PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 57 of file panel_electrical_spacing_iec60664_base.h.
Referenced by CalculateClearanceCreepage(), LoadSettings(), PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE(), SaveSettings(), and PANEL_ELECTRICAL_SPACING_IEC60664_BASE::~PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 46 of file panel_electrical_spacing_iec60664_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 56 of file panel_electrical_spacing_iec60664_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 82 of file panel_electrical_spacing_iec60664_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 79 of file panel_electrical_spacing_iec60664_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 76 of file panel_electrical_spacing_iec60664_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 53 of file panel_electrical_spacing_iec60664_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 71 of file panel_electrical_spacing_iec60664_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 73 of file panel_electrical_spacing_iec60664_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 75 of file panel_electrical_spacing_iec60664_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 65 of file panel_electrical_spacing_iec60664_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 61 of file panel_electrical_spacing_iec60664_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 64 of file panel_electrical_spacing_iec60664_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 58 of file panel_electrical_spacing_iec60664_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 62 of file panel_electrical_spacing_iec60664_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 59 of file panel_electrical_spacing_iec60664_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 67 of file panel_electrical_spacing_iec60664_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 48 of file panel_electrical_spacing_iec60664_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 51 of file panel_electrical_spacing_iec60664_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 50 of file panel_electrical_spacing_iec60664_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 84 of file panel_electrical_spacing_iec60664_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 81 of file panel_electrical_spacing_iec60664_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 78 of file panel_electrical_spacing_iec60664_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 86 of file panel_electrical_spacing_iec60664_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 47 of file panel_electrical_spacing_iec60664_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 60 of file panel_electrical_spacing_iec60664_base.h.
Referenced by CalculateClearanceCreepage(), LoadSettings(), PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE(), SaveSettings(), and PANEL_ELECTRICAL_SPACING_IEC60664_BASE::~PANEL_ELECTRICAL_SPACING_IEC60664_BASE().
|
protectedinherited |
Definition at line 55 of file panel_electrical_spacing_iec60664_base.h.
Referenced by PANEL_ELECTRICAL_SPACING_IEC60664_BASE::PANEL_ELECTRICAL_SPACING_IEC60664_BASE().