20 #ifndef PCB_CALCULATOR_H 21 #define PCB_CALCULATOR_H 53 void OnUpdateUI( wxUpdateUIEvent& event )
override;
139 double TWCalculateWidth(
double aCurrent,
double aThickness,
double aDeltaT_C,
140 bool aUseInternalLayer );
147 bool aUseInternalLayer );
154 void TWDisplayValues(
double aCurrent,
double aExtWidth,
double aIntWidth,
155 double aExtThickness,
double aIntThickness );
201 void VSDisplayValues(
double aViaResistance,
double aVoltageDrop,
double aPowerLoss,
202 double aEstimatedAmpacity,
double aThermalResistance,
203 double aCapacitance,
double aTimeDegradation,
double aInductance,
333 void SetResult(
int aLineNumber,
const wxString& aText );
400 #endif // PCB_CALCULATOR_H void ToleranceSelection(int aSelection)
const wxString DataFileNameExt
void OnESeriesSelection(wxCommandEvent &event) override
Radio Buttons to select the E-serie for the resistor calculator.
void RegulatorPageUpdate()
Function RegulatorPageUpdate: Update the regulator page dialog display: enable the current regulator ...
void OnRegulatorSelection(wxCommandEvent &event) override
void OnTWParametersChanged(wxCommandEvent &event) override
Function OnTWParametersChanged Called when the user changes the general parameters (i....
wxBitmap * m_ccTolerancesBitmap
void OnTransLineResetButtonClick(wxCommandEvent &event) override
Function OnTransLineResetButtonClick Called when the user clicks the reset button; sets the parameter...
void VSDisplayValues(double aViaResistance, double aVoltageDrop, double aPowerLoss, double aEstimatedAmpacity, double aThermalResistance, double aCapacitance, double aTimeDegradation, double aInductance, double aReactance)
Function VSDisplayValues Displays the results of the calculation.
PCB_CALCULATOR_FRAME(KIWAY *aKiway, wxWindow *aParent)
wxBitmap * m_ccValueNamesBitmap
void OnRegulatorResetButtonClick(wxCommandEvent &event) override
TRANSLINE * m_currTransLine
wxString m_lastSelectedRegulatorName
double TWCalculateCurrent(double aWidth, double aThickness, double aDeltaT_C, bool aUseInternalLayer)
Function TWCalculateCurrent Calculate maximum current based on given width and temperature rise.
void OnTWResetButtonClick(wxCommandEvent &event) override
Function OnTWResetButtonClick Called when the user clicks the reset button.
void OnRegulTypeSelection(wxCommandEvent &event) override
enum PCB_CALCULATOR_FRAME::@39 m_TWMode
Class PCB_CALCULATOR_FRAME_BASE.
void OnUpdateUI(wxUpdateUIEvent &event) override
double TWCalculateWidth(double aCurrent, double aThickness, double aDeltaT_C, bool aUseInternalLayer)
Function TWCalculateWidth Calculate track width required based on given current and temperature rise.
void OnRemoveRegulator(wxCommandEvent &event) override
void OnRegulatorCalcButtonClick(wxCommandEvent &event) override
void SetResult(int aLineNumber, const wxString &aText)
Function SetResult Puts the text into the given result line.
void OnTWCalculateFromCurrent(wxCommandEvent &event) override
Function OnTWCalculateFromCurrent Called when the user changes the desired maximum current.
void TWUpdateModeDisplay()
Function TWUpdateModeDisplay Updates the fields to show whether the maximum current,...
void OnTWCalculateFromIntWidth(wxCommandEvent &event) override
Function OnTWCalculateFromIntWidth Called when the user changes the desired internal trace width.
void OnTranslineAnalyse(wxCommandEvent &event) override
Function OnTranslineAnalyse Run a new analyse for the current transline with current parameters and d...
void OnToleranceSelection(wxCommandEvent &event) override
const wxString GetDataFilename()
bool m_RegulatorListChanged
void writeTrackWidthConfig()
Function writeTrackWidthConfig Write Track width parameters in config.
void OnTranslineEpsilonR_Button(wxCommandEvent &event) override
Function OnTranslineEpsilonR_Button Shows a list of current relative dielectric constant(Er) and set ...
bool IsPrmSelected(enum PRMS_ID aPrmId) const
Function IsPrmSelected.
void OnAddRegulator(wxCommandEvent &event) override
void SetPrmBgColor(enum PRMS_ID aPrmId, const KIGFX::COLOR4D *aCol)
Function SetPrgmBgColor Set the background color of a parameter.
void OnViaCalculate(wxCommandEvent &event) override
Function OnViaCalculate Called when the user changes any value in the via calcultor.
void OnElectricalSpacingRefresh(wxCommandEvent &event) override
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
void initTrackWidthPanel()
Panel-specific initializers.
Contains structures for storage of regulator data.
void OnTranslineTanD_Button(wxCommandEvent &event) override
Function OnTranslineTanD_Button Shows a list of current dielectric loss factor (tangent delta) and se...
void OnViaRho_Button(wxCommandEvent &event) override
Function OnViaRho_Button.
void SaveSettings(APP_SETTINGS_BASE *aCfg) override
Save common frame parameters to a configuration data file.
void TransfDlgDataToTranslineParams()
Function TransfDlgDataToTranslineParams Read values entered in dialog frame, and transfert these valu...
void TransfPanelDataToAttenuator()
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
void OnElectricalSpacingUnitsSelection(wxCommandEvent &event) override
wxBitmap * m_ccValuesBitmap
void OnDataFileSelection(wxCommandEvent &event) override
void OnTranslineSynthetize(wxCommandEvent &event) override
Function OnTranslineSynthetize Run a new synthezis for the current transline with current parameters ...
void OnCalculateESeries(wxCommandEvent &event) override
Called on calculate button and executes all E-series calculations.
void initColorCodePanel()
void OnClosePcbCalc(wxCloseEvent &event) override
enum TRANSLINE_TYPE_ID m_currTransLineType
void TranslineTypeSelection(enum TRANSLINE_TYPE_ID aType)
Function TranslineTypeSelection Must be called after selection of a new transline.
void OnEditRegulator(wxCommandEvent &event) override
void OnViaResetButtonClick(wxCommandEvent &event) override
Function OnViaResetButtonClick Called when the user clicks the reset button; sets the parameters to t...
double GetPrmValue(enum PRMS_ID aPrmId) const
Function GetPrmValue Returns a param value.
void OnViaEpsilonR_Button(wxCommandEvent &event) override
Function OnViaEpsilonR_Button.
void LoadSettings(APP_SETTINGS_BASE *aCfg) override
Load common frame parameters from a configuration file.
void ElectricalSpacingUpdateData(double aUnitScale)
void OnCalculateAttenuator(wxCommandEvent &event) override
void SetDataFilename(const wxString &aFilename)
Initialize the full filename of the selected pcb_calculator data file force the standard extension of...
REGULATOR_LIST m_RegulatorList
void OnAttenuatorSelection(wxCommandEvent &event) override
ATTENUATOR * m_currAttenuator
void SetAttenuator(unsigned aIdx)
std::vector< TRANSLINE_IDENT * > m_transline_list
wxWindow * GetToolCanvas() const override
Canvas access.
void OnBoardClassesUnitsSelection(wxCommandEvent &event) override
void OnTranslineSelection(wxCommandEvent &event) override
Function OnTranslineSelection Called on new transmission line selection.
void onUpdateViaCalcErrorText(wxUpdateUIEvent &event) override
Update the Error message in Via calculation panel.
void OnTWCalculateFromExtWidth(wxCommandEvent &event) override
Function OnTWCalculateFromExtWidth Called when the user changes the desired external trace width.
void writeViaSizeConfig()
Function writeViaSizeConfig Write Via Size parameters in config.
void Regulators_WriteConfig(PCB_CALCULATOR_SETTINGS *aCfg)
Write regulators parameters in config.
void TransfAttenuatorDataToPanel()
void TWDisplayValues(double aCurrent, double aExtWidth, double aIntWidth, double aExtThickness, double aIntThickness)
Function TWDisplayValues Displays the results of a calculation (including resulting values such as th...
void SelectLastSelectedRegulator()
Function SelectLastSelectedRegulator If m_lastSelectedRegulatorName is empty, just calls RegulatorPag...
void SetPrmValue(enum PRMS_ID aPrmId, double aValue)
Function SetPrmValue Read/write params values and results.
void TransfAttenuatorResultsToPanel()
const wxString PcbCalcDataFileExt
wxBitmap * m_ccMultipliersBitmap
void BoardClassesUpdateData(double aUnitScale)
std::vector< ATTENUATOR * > m_attenuator_list
void OnTranslineRho_Button(wxCommandEvent &event) override
Function OnTranslineRho_Button Shows a list of current Specific resistance list (rho) and set the sel...
A color representation with 4 components: red, green, blue, alpha.