KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pcad_pcb_component.cpp
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 (C) 2007, 2008 Lubo Racko <[email protected]>
5 * Copyright (C) 2007, 2008, 2012-2013 Alexander Lunev <[email protected]>
6 * Copyright The KiCad Developers, see AUTHORS.TXT for contributors.
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <https://www.gnu.org/licenses/>.
20 */
21
23
24#include <board.h>
25#include <common.h>
26#include <footprint.h>
27
28#include <wx/string.h>
29
30
31namespace PCAD2KICAD {
32
34 m_Uuid(),
35 m_callbacks( aCallbacks ),
36 m_board( aBoard )
37{
38 m_ObjType = wxT( '?' );
39 m_PCadLayer = 0;
40 m_KiCadLayer = F_Cu; // It *has* to be somewhere...
41 m_PositionX = 0;
42 m_PositionY = 0;
45 m_Net = wxEmptyString;
46 m_NetCode = 0;
47 m_CompRef = wxEmptyString;
48 m_PatGraphRefName = wxEmptyString;
49}
50
51
55
56
57void PCAD_PCB_COMPONENT::SetPosOffset( int aX_offs, int aY_offs )
58{
59 m_PositionX += aX_offs;
60 m_PositionY += aY_offs;
61}
62
67
68} // namespace PCAD2KICAD
Information pertinent to a Pcbnew printed circuit board.
Definition board.h:372
virtual void SetPosOffset(int aX_offs, int aY_offs)
PCAD_PCB_COMPONENT(PCAD_CALLBACKS *aCallbacks, BOARD *aBoard)
The common library.
static constexpr EDA_ANGLE ANGLE_0
Definition eda_angle.h:411
@ F_Cu
Definition layer_ids.h:60
void InitTTextValue(TTEXTVALUE *aTextValue)