KiCad PCB EDA Suite
Loading...
Searching...
No Matches
fab_stackup.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright The KiCad Developers, see AUTHORS.TXT for contributors.
5 *
6 * This program is free software: you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <https://www.gnu.org/licenses/>.
18 */
19
20#pragma once
21
23
24class BOARD;
25
26
29{
30public:
31 explicit FAB_STACKUP( const BOARD& aBoard );
32
33 FAB_STACKUP( const FAB_STACKUP& ) = delete;
34 FAB_STACKUP& operator=( const FAB_STACKUP& ) = delete;
35 FAB_STACKUP( FAB_STACKUP&& ) = delete;
37
38 const BOARD_STACKUP& Stackup() const { return m_stackup; }
39 const BOARD_STACKUP_ITEM* ItemForLayer( PCB_LAYER_ID aLayer ) const;
41 wxString NamedColor( PCB_LAYER_ID aLayer ) const;
42 int Thickness() const { return m_stackup.BuildBoardThicknessFromStackup(); }
43
44private:
46};
Manage one layer needed to make a physical board.
Manage layers needed to make a physical board.
Information pertinent to a Pcbnew printed circuit board.
Definition board.h:410
BOARD_STACKUP m_stackup
Definition fab_stackup.h:45
FAB_STACKUP & operator=(const FAB_STACKUP &)=delete
FAB_STACKUP(const BOARD &aBoard)
FAB_STACKUP(const FAB_STACKUP &)=delete
const BOARD_STACKUP & Stackup() const
Definition fab_stackup.h:38
int Thickness() const
Definition fab_stackup.h:42
const BOARD_STACKUP_ITEM * ItemForLayer(PCB_LAYER_ID aLayer) const
FAB_STACKUP & operator=(FAB_STACKUP &&)=delete
wxString NamedColor(PCB_LAYER_ID aLayer) const
Lower case color name of the layer, empty for an unset or hex color.
FAB_STACKUP(FAB_STACKUP &&)=delete
PCB_LAYER_ID
A quick note on layer IDs:
Definition layer_ids.h:56