KiCad PCB EDA Suite
Loading...
Searching...
No Matches
drill_symbol_assigner.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 DRILL_SYMBOL_ASSIGNER_H
21#define DRILL_SYMBOL_ASSIGNER_H
22
23#include <map>
24#include <string>
25#include <vector>
26
29
30class BOARD;
31
32
43void AssignDrillSymbols( std::vector<DRILL_CHART_GROUP>& aGroups, DRILL_SYMBOL_PROFILE& aProfile );
44
52std::map<std::string, DRILL_SYMBOL_ASSIGNMENT> ResolveDrillSymbols( const BOARD& aBoard );
53
77
88std::map<KIID, std::vector<DRILL_SYMBOL_ENTRY>> ResolveDrillSymbolsByItem(
89 const BOARD& aBoard, const std::map<std::string, DRILL_SYMBOL_ASSIGNMENT>& aResolved );
90
91#endif // DRILL_SYMBOL_ASSIGNER_H
Information pertinent to a Pcbnew printed circuit board.
Definition board.h:409
Grouping rules and symbol assignments, shared by reference so a chart and its map can never disagree ...
DRILL_OP_KIND
Which of the padstack's drill props produced the operation.
std::map< KIID, std::vector< DRILL_SYMBOL_ENTRY > > ResolveDrillSymbolsByItem(const BOARD &aBoard, const std::map< std::string, DRILL_SYMBOL_ASSIGNMENT > &aResolved)
The same answer keyed by the item that owns the holes.
std::map< std::string, DRILL_SYMBOL_ASSIGNMENT > ResolveDrillSymbols(const BOARD &aBoard)
The symbol every hole should carry, without touching the board.
void AssignDrillSymbols(std::vector< DRILL_CHART_GROUP > &aGroups, DRILL_SYMBOL_PROFILE &aProfile)
Give every group a mark, keeping the ones the profile already records.
One drawable mark, with the geometry the renderer needs to place it.
int m_Diameter
bool m_IsSlot
DRILL_OP_KIND m_Kind
VECTOR2I m_Position
Where the mark is drawn, which is the hole itself.
VECTOR2I m_SizeXY
DRILL_SPAN m_Span
EDA_ANGLE m_Orientation
DRILL_SYMBOL_ASSIGNMENT m_Symbol
VECTOR2< int32_t > VECTOR2I
Definition vector2d.h:683