26#include <wx/settings.h>
82 wxColour wxcol = wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOW );
84 okCol.r = wxcol.Red() / 255.0;
85 okCol.g = wxcol.Green() / 255.0;
86 okCol.b = wxcol.Blue() / 255.0;
200 if( aRatio < 0.2 || aRatio > 0.8 )
262 switch( aErrorLevel )
285 bool aIncludeFillsGaps )
const
294 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()
Show analysis results and checks for errors / warnings.
bool isSelected(enum PRMS_ID aPrmId)
Return true if the param aPrmId is selected.
double getProperty(enum PRMS_ID aPrmId)
Return a property value.
virtual void calcSynthesize()
Computation for synthesis.
void setResult(int aLine, double aValue, const char *aText)
Put the text into the given result line.
double m_parameters[EXTRA_PRMS_COUNT]
virtual void getProperties()
Get all properties from the UI.
void checkProperties()
Check the input parameters (ie: negative length).
virtual void synthesize()
static char convertParameterStatusCode(TRANSLINE_STATUS aStatus)
Convert a TRANSLINE_STATUS status to a PCB Calculation status.
void setProperty(enum PRMS_ID aPrmId, double aValue)
Set a named property to the given value, access through the application.
void pushSoldermaskParameters(TRANSLINE_CALCULATION_BASE &aCalc, bool aIncludeFillsGaps=false) const
Push the mask-eligible subset of soldermask parameters (PRESENT, THICKNESS, EPSILONR,...
virtual void showAnalyze()
Show synthesis results and checks for errors / warnings.
double skin_depth()
Calculate skin depth.
virtual void show_results()
Show results.
virtual void calcAnalyze()
Computation for analysis.
void setErrorLevel(PRMS_ID, char)
Set an error / warning level for a given parameter.
void SetPropertyInDialog(enum PRMS_ID aPrmId, double value)
void SetPropertyBgColorInDialog(enum PRMS_ID aPrmId, const KIGFX::COLOR4D *aCol)
Set the background color of a parameter.
double GetPropertyInDialog(enum PRMS_ID aPrmId)
Return a named property value.
void SetResultInDialog(int line, const char *aText)
Puts the text into the given result line.
bool IsSelectedInDialog(enum PRMS_ID aPrmId)
Return true if the param aPrmId is selected.
void SetPropertyInDialog(enum PRMS_ID aPrmId, double value)
void SetPropertyBgColorInDialog(enum PRMS_ID aPrmId, const KIGFX::COLOR4D *aCol)
Set the background color of a parameter.
double GetPropertyInDialog(enum PRMS_ID aPrmId)
Return a named property value.
void SetResultInDialog(int line, const char *text)
Put the text into the given result line.
bool IsSelectedInDialog(enum PRMS_ID aPrmId)
Return true if the param aPrmId is selected.
@ 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.