28#include <wx/settings.h>
78 wxColour wxcol = wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW );
80 okCol.r = wxcol.Red() / 255.0;
81 okCol.g = wxcol.Green() / 255.0;
82 okCol.b = wxcol.Blue() / 255.0;
213 if( aRatio < 0.2 || aRatio > 0.8 )
291 switch( aErrorLevel )
314 bool aIncludeFillsGaps )
const
323 if( aIncludeFillsGaps )
A color representation with 4 components: red, green, blue, alpha.
The base class for all transmission line calculations.
void SetParameter(const TRANSLINE_PARAMETERS aParam, const double aValue)
Sets the given calculation property.
virtual void showSynthesize()
Shows analysis results and checks for errors / warnings.
bool isSelected(enum PRMS_ID aPrmId)
double getProperty(enum PRMS_ID aPrmId)
virtual void calcSynthesize()
Computation for synthesis.
void setResult(int, double, const char *)
double m_parameters[EXTRA_PRMS_COUNT]
virtual void getProperties()
@function getProperties
void checkProperties()
@function checkProperties
virtual void synthesize()
static char convertParameterStatusCode(TRANSLINE_STATUS aStatus)
Converts a TRANSLINE_PARAMETER status to a PCB Calculation status.
void setProperty(enum PRMS_ID aPrmId, double aValue)
void pushSoldermaskParameters(TRANSLINE_CALCULATION_BASE &aCalc, bool aIncludeFillsGaps=false) const
Push the mask-eligible subset of soldermask parameters (PRESENT, THICKNESS, EPSILONR,...
virtual void showAnalyze()
Shows synthesis results and checks for errors / warnings.
double skin_depth()
@function skin_depth calculate skin depth
virtual void show_results()
Shows results.
virtual void calcAnalyze()
Computation for analysis.
void setErrorLevel(PRMS_ID, char)
@function setErrorLevel
void SetPropertyInDialog(enum PRMS_ID aPrmId, double value)
void SetPropertyBgColorInDialog(enum PRMS_ID aPrmId, const KIGFX::COLOR4D *aCol)
Function SetPropertyBgColorInDialog Set the background color of a parameter.
double GetPropertyInDialog(enum PRMS_ID aPrmId)
void SetResultInDialog(int line, const char *aText)
bool IsSelectedInDialog(enum PRMS_ID aPrmId)
void SetPropertyInDialog(enum PRMS_ID aPrmId, double value)
void SetPropertyBgColorInDialog(enum PRMS_ID aPrmId, const KIGFX::COLOR4D *aCol)
Function SetPropertyBgColorInDialog Set the background color of a parameter.
double GetPropertyInDialog(enum PRMS_ID aPrmId)
void SetResultInDialog(int line, const char *text)
bool IsSelectedInDialog(enum PRMS_ID aPrmId)
@ SOLDERMASK_FILLS_GAPS_PRM
@ SOLDERMASK_EPSILONR_PRM
@ SOLDERMASK_THICKNESS_PRM
@ TWISTEDPAIR_EPSILONR_ENV_PRM
#define TRANSLINE_WARNING
TRANSLINE_STATUS
Parameter status values.
TRANSLINE_PARAMETERS
All possible parameters used (as inputs or outputs) by the transmission line calculations.