KiCad PCB EDA Suite
Loading...
Searching...
No Matches
drill_operation.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_OPERATION_H
21#define DRILL_OPERATION_H
22
23#include <optional>
24
25#include <drill/drill_span.h>
26#include <geometry/eda_angle.h>
27#include <kiid.h>
28#include <layer_ids.h>
29#include <math/vector2d.h>
30#include <padstack.h>
31
32class BOARD_ITEM;
33
34
44
45
50{
53
54 bool operator<( const DRILL_OPERATION_ID& aOther ) const
55 {
56 return m_Owner == aOther.m_Owner ? m_Kind < aOther.m_Kind : m_Owner < aOther.m_Owner;
57 }
58};
59
60
70
71
122
123
131{
133
138 bool m_NonPlatedOnly = false;
139
143 bool m_MergePTHNPTH = false;
144};
145
146#endif // DRILL_OPERATION_H
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
Definition board_item.h:84
Definition kiid.h:46
DRILL_OP_KIND
Which of the padstack's drill props produced the operation.
Hole classification and drill span, shared by the drill model and the drill writers.
HOLE_ATTRIBUTE
Definition drill_span.h:36
static constexpr EDA_ANGLE ANGLE_0
Definition eda_angle.h:422
PCB_LAYER_ID
A quick note on layer IDs:
Definition layer_ids.h:56
@ B_Cu
Definition layer_ids.h:61
@ UNDEFINED_LAYER
Definition layer_ids.h:57
@ F_Cu
Definition layer_ids.h:60
PAD_DRILL_POST_MACHINING_MODE
Definition padstack.h:75
Globally unique handle for one machining action.
bool operator<(const DRILL_OPERATION_ID &aOther) const
DRILL_OP_KIND m_Kind
One machining action, which is also one NC hit and one tool assignment.
DRILL_OP_KIND m_Kind
bool IsBackdrill() const
DRILL_POST_MACHINING m_BackPostMachining
PCB_LAYER_ID m_DrillEnd
PCB_LAYER_ID m_TopLayer
PCB_LAYER_ID m_BottomLayer
DRILL_OPERATION_ID Id() const
VECTOR2I m_SizeXY
Source axes, never normalized to (width, length).
BOARD_ITEM * m_SourceItem
non-owning, valid only for this enumeration
EDA_ANGLE m_Orientation
DRILL_POST_MACHINING m_FrontPostMachining
std::optional< int > m_StubLength
HOLE_ATTRIBUTE m_Attribute
PCB_LAYER_ID m_DrillStart
int m_Size
bool IsSet() const
int m_Depth
int m_Angle
PAD_DRILL_POST_MACHINING_MODE m_Mode
Selects which operations EnumerateDrillOperations() returns.
bool m_NonPlatedOnly
Emit only non-plated holes.
bool m_MergePTHNPTH
Emit plated and non-plated together, as the merged drill file does.
DRILL_SPAN m_Span
VECTOR2< int32_t > VECTOR2I
Definition vector2d.h:683