51 if( !item->IsEnabled() )
56 wxString sublayer_text;
58 if( item->GetSublayersCount() )
60 sublayer_text.Printf( wxT(
"\n sublayer \"1/%d\"" ),
61 item->GetSublayersCount() );
64 txt.Printf( wxT(
"layer \"%s\" type \"%s\"%s" ),
65 item->FormatDielectricLayerName(),
66 item->GetTypeName(), sublayer_text );
70 txt.Printf( wxT(
"layer \"%s\" type \"%s\"" ),
72 item->GetTypeName() );
77 if( item->IsColorEditable() )
79 txt.Printf( wxT(
" Color \"%s\"" ), item->GetColor() );
83 for(
int idx = 0; idx < item->GetSublayersCount(); idx++ )
87 txt.Printf( wxT(
"\n sublayer \"%d/%d\"" ), idx+1, item->GetSublayersCount() );
91 if( item->IsThicknessEditable() )
93 txt.Printf( wxT(
" Thickness %s" ),
99 txt.Printf( wxT(
" Locked" ) );
104 if( item->IsMaterialEditable() )
106 txt.Printf( wxT(
" Material \"%s\"" ), item->GetMaterial( idx ) );
110 if( item->HasEpsilonRValue() )
112 txt.Printf( wxT(
" EpsilonR %s" ), item->FormatEpsilonR( idx ) );
116 if( item->HasLossTangentValue() )
118 txt.Printf( wxT(
" LossTg %s" ), item->FormatLossTangent( idx ) );
127 txt.Printf( wxT(
"Finish \"%s\"" ), aStackup.
m_FinishType );
131 report << wxT(
" Option \"Impedance Controlled\"" );
134 report << wxT(
" Option \"Plated edges\"" );
137 report << wxT(
" Option \"Castellated Pads\"" );
141 wxString conn_txt = wxT(
"yes" );
144 conn_txt << wxT(
",bevelled" );
146 txt.Printf( wxT(
" EdgeConnector \"%s\"" ), conn_txt );
constexpr EDA_IU_SCALE pcbIUScale
@ BS_EDGE_CONNECTOR_BEVELLED
@ BS_ITEM_TYPE_DIELECTRIC
wxString BuildStackupReport(BOARD_STACKUP &aStackup, EDA_UNITS aUnits)
Manage one layer needed to make a physical board.
Manage layers needed to make a physical board.
bool m_CastellatedPads
True if castellated pads exist.
const std::vector< BOARD_STACKUP_ITEM * > & GetList() const
bool m_HasDielectricConstrains
True if some layers have impedance controlled tracks or have specific constrains for micro-wave appli...
bool m_EdgePlating
True if the edge board is plated.
BS_EDGE_CONNECTOR_CONSTRAINTS m_EdgeConnectorConstraints
If the board has edge connector cards, some constrains can be specified in job file: BS_EDGE_CONNECTO...
wxString m_FinishType
The name of external copper finish.
Instantiate the current locale within a scope in which you are expecting exceptions to be thrown.
KICOMMON_API wxString StringFromValue(const EDA_IU_SCALE &aIuScale, EDA_UNITS aUnits, double aValue, bool aAddUnitsText=false, EDA_DATA_TYPE aType=EDA_DATA_TYPE::DISTANCE)
Returns the string from aValue according to aUnits (inch, mm ...) for display.