KiCad PCB EDA Suite
Loading...
Searching...
No Matches
pcb_item_containers.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#ifndef PCB_ITEM_CONTAINERS_H_
21#define PCB_ITEM_CONTAINERS_H_
22
23// Board-level items
24class FOOTPRINT;
25class PCB_TRACK;
26class PCB_GROUP;
27class PCB_GENERATOR;
28class PCB_POINT;
29class PCB_MARKER;
30class ZONE;
31
32typedef std::vector<PCB_MARKER*> MARKERS;
33typedef std::vector<ZONE*> ZONES;
34typedef std::deque<PCB_TRACK*> TRACKS;
35typedef std::deque<FOOTPRINT*> FOOTPRINTS;
36typedef std::deque<PCB_GROUP*> GROUPS;
37typedef std::deque<PCB_GENERATOR*> GENERATORS;
38typedef std::deque<PCB_POINT*> PCB_POINTS;
39
40
41// Shared with board and footprint
42class BOARD_ITEM;
43
44typedef std::deque<BOARD_ITEM*> DRAWINGS;
45
46// Footprint-level items
47class PAD;
48class PCB_FIELD;
49
50typedef std::deque<PAD*> PADS;
51typedef std::deque<PCB_FIELD*> PCB_FIELDS;
52//typedef std::vector<PCB_FIELD*> PCB_FIELD_VEC;
53
54#endif // PCB_ITEM_CONTAINERS_H_
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
Definition board_item.h:81
Definition pad.h:61
A set of BOARD_ITEMs (i.e., without duplicates).
Definition pcb_group.h:49
A PCB_POINT is a 0-dimensional point that is used to mark a position on a PCB, or more usually a foot...
Definition pcb_point.h:39
Handle a list of polygons defining a copper zone.
Definition zone.h:70
std::vector< ZONE * > ZONES
std::vector< PCB_MARKER * > MARKERS
std::deque< PAD * > PADS
std::deque< FOOTPRINT * > FOOTPRINTS
std::deque< PCB_TRACK * > TRACKS
std::deque< PCB_GROUP * > GROUPS
std::deque< PCB_FIELD * > PCB_FIELDS
std::deque< PCB_GENERATOR * > GENERATORS
std::deque< BOARD_ITEM * > DRAWINGS
std::deque< PCB_POINT * > PCB_POINTS