KiCad PCB EDA Suite
Loading...
Searching...
No Matches
drc_re_numeric_constraint_types.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 (C) 2026 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 DRC_RE_NUMERIC_CONSTRAINT_TYPES_H_
21#define DRC_RE_NUMERIC_CONSTRAINT_TYPES_H_
22
25
26
28{
29public:
32 std::vector<DRC_RE_FIELD_POSITION> GetFieldPositions() const override
33 {
34 return { { 208, 263, 177, wxS( "mm" ), LABEL_POSITION::RIGHT } };
35 }
36};
37
39{
40public:
43 std::vector<DRC_RE_FIELD_POSITION> GetFieldPositions() const override
44 {
45 return { { 200, 255, 119, wxS( "mm" ), LABEL_POSITION::RIGHT } };
46 }
47};
48
49
51{
52public:
55 std::vector<DRC_RE_FIELD_POSITION> GetFieldPositions() const override
56 {
57 return { { 260, 315, 129, wxS( "mm" ), LABEL_POSITION::RIGHT } };
58 }
59};
60
61
63{
64public:
67 std::vector<DRC_RE_FIELD_POSITION> GetFieldPositions() const override
68 {
69 return { { 160, 215, 214, wxS( "mm" ), LABEL_POSITION::RIGHT } };
70 }
71};
72
73
75{
76public:
79 std::vector<DRC_RE_FIELD_POSITION> GetFieldPositions() const override
80 {
81 return { { 120, 175, 131, wxS( "mm" ), LABEL_POSITION::RIGHT } };
82 }
83};
84
85
87{
88public:
91 std::vector<DRC_RE_FIELD_POSITION> GetFieldPositions() const override
92 {
93 return { { 72, 127, 34, wxS( "mm" ), LABEL_POSITION::RIGHT } };
94 }
95};
96
97
99{
100public:
103 std::vector<DRC_RE_FIELD_POSITION> GetFieldPositions() const override
104 {
105 return { { 102, 157, 47, wxS( "mm" ), LABEL_POSITION::RIGHT } };
106 }
107};
108
109
111{
112public:
115 bool IsIntegerOnly() const override { return true; }
116 std::vector<DRC_RE_FIELD_POSITION> GetFieldPositions() const override
117 {
118 return { { 165, 220, 69 } };
119 }
120};
121
122
124{
125public:
128 std::vector<DRC_RE_FIELD_POSITION> GetFieldPositions() const override
129 {
130 return { { 209, 264, 79, wxS( "mm" ), LABEL_POSITION::RIGHT } };
131 }
132};
133
134
136{
137public:
140 std::vector<DRC_RE_FIELD_POSITION> GetFieldPositions() const override
141 {
142 return { { 205, 260, 119, wxS( "mm" ), LABEL_POSITION::RIGHT } };
143 }
144};
145
147{
148public:
151 std::vector<DRC_RE_FIELD_POSITION> GetFieldPositions() const override
152 {
153 return { { 230, 285, 116, wxS( "mm" ), LABEL_POSITION::RIGHT } };
154 }
155};
156
157
159{
160public:
163 std::vector<DRC_RE_FIELD_POSITION> GetFieldPositions() const override
164 {
165 return { { 195, 250, 302, wxS( "mm" ), LABEL_POSITION::RIGHT } };
166 }
167};
168
169
171{
172public:
175 bool IsIntegerOnly() const override { return true; }
176 std::vector<DRC_RE_FIELD_POSITION> GetFieldPositions() const override
177 {
178 return { { 150, 205, 44 } };
179 }
180};
181
183{
184public:
187 std::vector<DRC_RE_FIELD_POSITION> GetFieldPositions() const override
188 {
189 return { { 209, 264, 119, wxS( "mm" ), LABEL_POSITION::RIGHT } };
190 }
191};
192
193
195{
196public:
199 std::vector<DRC_RE_FIELD_POSITION> GetFieldPositions() const override
200 {
201 return { { 186, 241, 117, wxS( "mm" ), LABEL_POSITION::RIGHT } };
202 }
203};
204
205
207{
208public:
211 std::vector<DRC_RE_FIELD_POSITION> GetFieldPositions() const override
212 {
213 return { { 165, 220, 37, wxS( "mm" ), LABEL_POSITION::RIGHT } };
214 }
215};
216
217
219{
220public:
223 std::vector<DRC_RE_FIELD_POSITION> GetFieldPositions() const override
224 {
225 return { { 235, 290, 72, wxS( "mm" ), LABEL_POSITION::RIGHT } };
226 }
227};
228
229
231{
232public:
235 std::vector<DRC_RE_FIELD_POSITION> GetFieldPositions() const override
236 {
237 return { { 348, 403, 59, wxS( "mm" ), LABEL_POSITION::RIGHT } };
238 }
239};
240
241
243{
244public:
247 std::vector<DRC_RE_FIELD_POSITION> GetFieldPositions() const override
248 {
249 return { { 245, 300, 79, wxS( "mm" ), LABEL_POSITION::RIGHT } };
250 }
251};
252
253
254#endif
BITMAPS
A list of all bitmap identifiers.
@ constraint_minimum_annular_width
@ constraint_minimum_via_diameter
@ constraint_hole_size
@ constraint_minimum_drill_size
@ constraint_soldermask_expansion
@ constraint_hole_to_hole_distance
@ constraint_minimum_soldermask_sliver
@ constraint_creepage_distance
@ constraint_silk_to_soldermask_clearance
@ constraint_clearance
@ constraint_minimum_connection_width
@ constraint_copper_to_edge_clearance
@ constraint_solderpaste_expansion
@ constraint_maximum_via_count
@ constraint_silk_to_silk_clearance
@ constraint_minimum_thermal_relief_spoke_count
@ constraint_courtyard_clearance
@ constraint_copper_to_hole_clearance
@ constraint_minimum_clearance
std::vector< DRC_RE_FIELD_POSITION > GetFieldPositions() const override
Returns the field positions for controls overlaid on the constraint bitmap.
BITMAPS GetOverlayBitmap() const override
Returns the bitmap to use for the overlay panel background.
BITMAPS GetOverlayBitmap() const override
Returns the bitmap to use for the overlay panel background.
std::vector< DRC_RE_FIELD_POSITION > GetFieldPositions() const override
Returns the field positions for controls overlaid on the constraint bitmap.
std::vector< DRC_RE_FIELD_POSITION > GetFieldPositions() const override
Returns the field positions for controls overlaid on the constraint bitmap.
BITMAPS GetOverlayBitmap() const override
Returns the bitmap to use for the overlay panel background.
BITMAPS GetOverlayBitmap() const override
Returns the bitmap to use for the overlay panel background.
std::vector< DRC_RE_FIELD_POSITION > GetFieldPositions() const override
Returns the field positions for controls overlaid on the constraint bitmap.
BITMAPS GetOverlayBitmap() const override
Returns the bitmap to use for the overlay panel background.
std::vector< DRC_RE_FIELD_POSITION > GetFieldPositions() const override
Returns the field positions for controls overlaid on the constraint bitmap.
BITMAPS GetOverlayBitmap() const override
Returns the bitmap to use for the overlay panel background.
std::vector< DRC_RE_FIELD_POSITION > GetFieldPositions() const override
Returns the field positions for controls overlaid on the constraint bitmap.
std::vector< DRC_RE_FIELD_POSITION > GetFieldPositions() const override
Returns the field positions for controls overlaid on the constraint bitmap.
BITMAPS GetOverlayBitmap() const override
Returns the bitmap to use for the overlay panel background.
std::vector< DRC_RE_FIELD_POSITION > GetFieldPositions() const override
Returns the field positions for controls overlaid on the constraint bitmap.
BITMAPS GetOverlayBitmap() const override
Returns the bitmap to use for the overlay panel background.
BITMAPS GetOverlayBitmap() const override
Returns the bitmap to use for the overlay panel background.
std::vector< DRC_RE_FIELD_POSITION > GetFieldPositions() const override
Returns the field positions for controls overlaid on the constraint bitmap.
std::vector< DRC_RE_FIELD_POSITION > GetFieldPositions() const override
Returns the field positions for controls overlaid on the constraint bitmap.
BITMAPS GetOverlayBitmap() const override
Returns the bitmap to use for the overlay panel background.
BITMAPS GetOverlayBitmap() const override
Returns the bitmap to use for the overlay panel background.
std::vector< DRC_RE_FIELD_POSITION > GetFieldPositions() const override
Returns the field positions for controls overlaid on the constraint bitmap.
std::vector< DRC_RE_FIELD_POSITION > GetFieldPositions() const override
Returns the field positions for controls overlaid on the constraint bitmap.
BITMAPS GetOverlayBitmap() const override
Returns the bitmap to use for the overlay panel background.
std::vector< DRC_RE_FIELD_POSITION > GetFieldPositions() const override
Returns the field positions for controls overlaid on the constraint bitmap.
BITMAPS GetOverlayBitmap() const override
Returns the bitmap to use for the overlay panel background.
BITMAPS GetOverlayBitmap() const override
Returns the bitmap to use for the overlay panel background.
std::vector< DRC_RE_FIELD_POSITION > GetFieldPositions() const override
Returns the field positions for controls overlaid on the constraint bitmap.
BITMAPS GetOverlayBitmap() const override
Returns the bitmap to use for the overlay panel background.
std::vector< DRC_RE_FIELD_POSITION > GetFieldPositions() const override
Returns the field positions for controls overlaid on the constraint bitmap.
std::vector< DRC_RE_FIELD_POSITION > GetFieldPositions() const override
Returns the field positions for controls overlaid on the constraint bitmap.
BITMAPS GetOverlayBitmap() const override
Returns the bitmap to use for the overlay panel background.
std::vector< DRC_RE_FIELD_POSITION > GetFieldPositions() const override
Returns the field positions for controls overlaid on the constraint bitmap.
BITMAPS GetOverlayBitmap() const override
Returns the bitmap to use for the overlay panel background.
std::vector< DRC_RE_FIELD_POSITION > GetFieldPositions() const override
Returns the field positions for controls overlaid on the constraint bitmap.
BITMAPS GetOverlayBitmap() const override
Returns the bitmap to use for the overlay panel background.
std::vector< DRC_RE_FIELD_POSITION > GetFieldPositions() const override
Returns the field positions for controls overlaid on the constraint bitmap.
BITMAPS GetOverlayBitmap() const override
Returns the bitmap to use for the overlay panel background.
@ RIGHT
Label to the right of the field.