KiCad PCB EDA Suite
Loading...
Searching...
No Matches
stackup_predefined_prms.h File Reference
#include <wx/string.h>
#include <wx/arrstr.h>
#include <wx/colour.h>
#include <layer_ids.h>
#include <i18n_utility.h>
#include <gal/color4d.h>
#include <board_stackup_manager/board_stackup.h>

Go to the source code of this file.

Classes

class  FAB_LAYER_COLOR
 

Macros

#define KEY_CORE   wxT( "core" )
 
#define KEY_PREPREG   wxT( "prepreg" )
 
#define KEY_COPPER   wxT( "copper" )
 
#define DEFAULT_SOLDERMASK_OPACITY   0.83
 
#define DEFAULT_EPSILON_R_SOLDERMASK   3.3
 
#define DEFAULT_EPSILON_R_SILKSCREEN   1.0
 

Functions

wxString NotSpecifiedPrm ()
 
bool IsPrmSpecified (const wxString &aPrmValue)
 
wxArrayString GetStandardCopperFinishes (bool aTranslate)
 
const std::vector< FAB_LAYER_COLOR > & GetStandardColors (BOARD_STACKUP_ITEM_TYPE aType)
 
int GetColorUserDefinedListIdx (BOARD_STACKUP_ITEM_TYPE aType)
 
KIGFX::COLOR4D GetDefaultUserColor (BOARD_STACKUP_ITEM_TYPE aType)
 
KIGFX::COLOR4D GetStandardColor (BOARD_STACKUP_ITEM_TYPE aType, int aIdx)
 
const wxString & GetStandardColorName (BOARD_STACKUP_ITEM_TYPE aType, int aIdx)
 
bool IsCustomColorIdx (BOARD_STACKUP_ITEM_TYPE aType, int aIdx)
 
bool IsColorNameNormalized (const wxString &aName)
 

Macro Definition Documentation

◆ DEFAULT_EPSILON_R_SILKSCREEN

#define DEFAULT_EPSILON_R_SILKSCREEN   1.0

Definition at line 69 of file stackup_predefined_prms.h.

◆ DEFAULT_EPSILON_R_SOLDERMASK

#define DEFAULT_EPSILON_R_SOLDERMASK   3.3

Definition at line 66 of file stackup_predefined_prms.h.

◆ DEFAULT_SOLDERMASK_OPACITY

#define DEFAULT_SOLDERMASK_OPACITY   0.83

Definition at line 63 of file stackup_predefined_prms.h.

◆ KEY_COPPER

#define KEY_COPPER   wxT( "copper" )

Definition at line 47 of file stackup_predefined_prms.h.

◆ KEY_CORE

#define KEY_CORE   wxT( "core" )

Definition at line 44 of file stackup_predefined_prms.h.

◆ KEY_PREPREG

#define KEY_PREPREG   wxT( "prepreg" )

Definition at line 45 of file stackup_predefined_prms.h.

Function Documentation

◆ GetColorUserDefinedListIdx()

int GetColorUserDefinedListIdx ( BOARD_STACKUP_ITEM_TYPE  aType)
Returns
the index of the user defined color in ColorStandardList

Definition at line 110 of file stackup_predefined_prms.cpp.

References GetStandardColors().

Referenced by GetDefaultUserColor(), IsCustomColorIdx(), PANEL_SETUP_BOARD_STACKUP::lazyBuildRowUI(), and PANEL_SETUP_BOARD_STACKUP::synchronizeWithBoard().

◆ GetDefaultUserColor()

◆ GetStandardColor()

KIGFX::COLOR4D GetStandardColor ( BOARD_STACKUP_ITEM_TYPE  aType,
int  aIdx 
)
inline

◆ GetStandardColorName()

◆ GetStandardColors()

◆ GetStandardCopperFinishes()

wxArrayString GetStandardCopperFinishes ( bool  aTranslate)
Returns
a wxArray of standard copper finish names.
Parameters
aTranslate= false for the initial names, true for translated names

Definition at line 87 of file stackup_predefined_prms.cpp.

References arrayDim(), and copperFinishType.

Referenced by PANEL_SETUP_BOARD_FINISH::PANEL_SETUP_BOARD_FINISH(), PANEL_SETUP_BOARD_FINISH::synchronizeWithBoard(), and PANEL_SETUP_BOARD_FINISH::TransferDataFromWindow().

◆ IsColorNameNormalized()

bool IsColorNameNormalized ( const wxString &  aName)
Returns
true if aName is a color name acceptable in gerber job files
Parameters
aNameis a color name like red, blue... (case insensitive)

Definition at line 117 of file stackup_predefined_prms.cpp.

Referenced by FAB_LAYER_COLOR::GetColorAsString().

◆ IsCustomColorIdx()

◆ IsPrmSpecified()

◆ NotSpecifiedPrm()