KiCad PCB EDA Suite
Loading...
Searching...
No Matches
zone_create_helper.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 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#include <core/spinlock.h>
24#include <tool/tool_manager.h>
25#include <zone.h>
26#include <pcb_shape.h>
27#include <footprint.h>
28#include <board_commit.h>
30#include <pcb_painter.h>
31#include <tools/pcb_actions.h>
33#include <view/view_controls.h>
36#include <pcb_base_edit_frame.h>
37
39 m_tool( aTool ),
40 m_params( aParams ),
41 m_parentView( *aTool.getView() )
42{
44}
45
46
48{
49 // remove the preview from the view
50 m_parentView.SetVisible( &m_previewItem, false );
51 m_parentView.Remove( &m_previewItem );
52}
53
54
56{
57 PCB_BASE_EDIT_FRAME* frame = m_tool.getEditFrame<PCB_BASE_EDIT_FRAME>();
58 BOARD* board = frame->GetBoard();
59
60 // By default, new zones get the first unused priority
61 std::set<unsigned> priorities;
62
63 for( ZONE* zone : board->Zones() )
64 {
65 if( zone->GetTeardropAreaType() == TEARDROP_TYPE::TD_NONE
66 && ( zone->GetLayerSet() & LSET::AllCuMask() ).any()
67 && !zone->GetIsRuleArea() )
68 {
69 priorities.insert( zone->GetAssignedPriority() );
70 }
71 }
72
73 unsigned priority = 0;
74
75 for( unsigned exist_priority : priorities )
76 {
77 if( priority != exist_priority )
78 break;
79
80 ++priority;
81 }
82
83 aZoneInfo.m_ZonePriority = priority;
84}
85
86
87std::unique_ptr<ZONE> ZONE_CREATE_HELPER::createNewZone( bool aKeepout )
88{
89 PCB_BASE_EDIT_FRAME* frame = m_tool.getEditFrame<PCB_BASE_EDIT_FRAME>();
90 BOARD* board = frame->GetBoard();
91 BOARD_ITEM_CONTAINER* parent = m_tool.m_frame->GetModel();
92 KIGFX::VIEW_CONTROLS* controls = m_tool.GetManager()->GetViewControls();
93 std::set<int> highlightedNets = board->GetHighLightNetCodes();
94
95 // Get the current default settings for zones
96 ZONE_SETTINGS zoneInfo = board->GetDesignSettings().GetDefaultZoneSettings();
97 zoneInfo.m_Layers.reset().set( m_params.m_layer ); // TODO(JE) multilayer defaults?
98 zoneInfo.m_LayerProperties.clear(); // Do not copy over layer properties
99 zoneInfo.m_Netcode = highlightedNets.empty() ? -1 : *highlightedNets.begin();
100 zoneInfo.SetIsRuleArea( m_params.m_keepout );
101
102 // A new zone starts unnamed, do not inherit the last drawn zone's name (issue 23131)
103 zoneInfo.m_Name = wxEmptyString;
104
105 if( m_params.m_thieving )
106 {
108 zoneInfo.m_Netcode = 0;
110 }
111
113 && ( zoneInfo.m_Layers & LSET::AllCuMask() ).any() )
114 {
115 setUniquePriority( zoneInfo );
116 }
117
118 // If we don't have a net from highlighting, maybe we can get one from the selection
119 PCB_SELECTION_TOOL* selectionTool = m_tool.GetManager()->GetTool<PCB_SELECTION_TOOL>();
120
121 if( selectionTool && !selectionTool->GetSelection().Empty() && zoneInfo.m_Netcode == -1 )
122 {
123 EDA_ITEM* item = *selectionTool->GetSelection().GetItems().begin();
124
125 if( BOARD_CONNECTED_ITEM* bci = dynamic_cast<BOARD_CONNECTED_ITEM*>( item ) )
126 zoneInfo.m_Netcode = bci->GetNetCode();
127 }
128
129 if( m_params.m_mode != ZONE_MODE::GRAPHIC_POLYGON && m_params.m_mode != ZONE_MODE::STITCH && !m_params.m_thieving )
130 {
131 // When drawing a new zone, skip the pre-draw dialog for thieving copper and
132 // graphic polygons as it is more disruptive than useful
133 int dialogResult;
134
135 if( m_params.m_keepout )
136 dialogResult = InvokeRuleAreaEditor( frame, &zoneInfo, m_tool.board() );
137 else if( ( zoneInfo.m_Layers & LSET::AllCuMask() ).any() )
138 dialogResult = InvokeCopperZonesEditor( frame, nullptr, &zoneInfo );
139 else
140 dialogResult = InvokeNonCopperZonesEditor( frame, &zoneInfo );
141
142 if( dialogResult == wxID_CANCEL )
143 return nullptr;
144
145 controls->WarpMouseCursor( controls->GetCursorPosition(), true );
146 frame->GetCanvas()->SetFocus();
147 }
148
149 wxASSERT( !m_tool.m_isFootprintEditor || ( parent->Type() == PCB_FOOTPRINT_T ) );
150
151 std::unique_ptr<ZONE> newZone = std::make_unique<ZONE>( parent );
152
153 // Apply the selected settings
154 zoneInfo.ExportSetting( *newZone );
155
156 return newZone;
157}
158
159
160std::unique_ptr<ZONE> ZONE_CREATE_HELPER::createZoneFromExisting( const ZONE& aSrcZone )
161{
162 BOARD* board = m_tool.getModel<BOARD>();
163
164 std::unique_ptr<ZONE> newZone = std::make_unique<ZONE>( board );
165
166 ZONE_SETTINGS zoneSettings;
167 zoneSettings << aSrcZone;
168
169 zoneSettings.ExportSetting( *newZone );
170
171 return newZone;
172}
173
174
175void ZONE_CREATE_HELPER::performZoneCutout( ZONE& aZone, const ZONE& aCutout )
176{
177 BOARD_COMMIT commit( &m_tool );
178 std::vector<ZONE*> newZones;
179
180 // Clear the selection before removing the old zone
181 TOOL_MANAGER* toolMgr = m_tool.GetManager();
183
184 SHAPE_POLY_SET originalOutline( *aZone.Outline() );
185 SHAPE_POLY_SET cutoutOutline( *aCutout.Outline() );
186
187 // Clipper2 cannot carry arcs through boolean operations when either operand has holes or
188 // the clip side has outlines, so strip arc metadata first. Without this, zones built from
189 // circles (or any arc-bearing outline) get corrupt arc endpoints written to disk and
190 // render as garbage after reload. See SHAPE_POLY_SET::booleanOp.
191 originalOutline.ClearArcs();
192 cutoutOutline.ClearArcs();
193
194 originalOutline.BooleanSubtract( cutoutOutline );
195
196 // After substracting the hole, originalOutline can have more than one main outline.
197 // But a zone can have only one main outline, so create as many zones as originalOutline
198 // contains main outlines:
199 for( int outline = 0; outline < originalOutline.OutlineCount(); outline++ )
200 {
201 SHAPE_POLY_SET* newZoneOutline = new SHAPE_POLY_SET;
202 newZoneOutline->AddOutline( originalOutline.Outline( outline ) );
203
204 // Add holes (if any) to the new zone outline:
205 for (int hole = 0; hole < originalOutline.HoleCount( outline ) ; hole++ )
206 newZoneOutline->AddHole( originalOutline.CHole( outline, hole ) );
207
208 ZONE* newZone = new ZONE( aZone );
209 newZone->SetOutline( newZoneOutline ); // zone takes ownership
210 newZone->SetLocalFlags( 1 );
211 newZone->HatchBorder();
212 newZone->UnFill();
213 newZones.push_back( newZone );
214 commit.Add( newZone );
215 }
216
217 commit.Remove( &aZone );
218 commit.Push( _( "Add Zone Cutout" ) );
219
220 // Select the new zone and set it as the source for the next cutout
221 if( newZones.empty() )
222 {
223 m_params.m_sourceZone = nullptr;
224 }
225 else
226 {
227 m_params.m_sourceZone = newZones[0];
228 toolMgr->RunAction<EDA_ITEM*>( ACTIONS::selectItem, newZones[0] );
229 }
230}
231
232
233void ZONE_CREATE_HELPER::commitZone( std::unique_ptr<ZONE> aZone )
234{
235 switch ( m_params.m_mode )
236 {
238 // For cutouts, subtract from the source
239 performZoneCutout( *m_params.m_sourceZone, *aZone );
240 break;
241
242 case ZONE_MODE::ADD:
244 {
245 BOARD_COMMIT commit( &m_tool );
246
247 aZone->HatchBorder();
248
249 commit.Add( aZone.get() );
250 commit.Push( _( "Draw Zone" ) );
251
252 m_tool.GetManager()->RunAction<EDA_ITEM*>( ACTIONS::selectItem, aZone.release() );
253 break;
254 }
255
257 {
258 BOARD* board = m_tool.getModel<BOARD>();
259 GENERATOR_TOOL* generatorTool = m_tool.GetManager()->GetTool<GENERATOR_TOOL>();
260
261 // Build the stitcher detached from the board so the properties dialog can
262 // edit its settings before we commit it. Parented to the board (without
263 // being added) so net lookups in the dialog work.
264 std::unique_ptr<PCB_VIA_STITCH> stitcher = std::make_unique<PCB_VIA_STITCH>();
265 stitcher->SetFlags( IS_NEW );
266 stitcher->SetParent( board );
267 stitcher->SetOutline( *aZone->Outline() );
268 stitcher->InitializeDefaults( board );
269
270 // Pop the properties dialog up-front so the user picks net / pitch / pattern
271 // before any vias materialize. Cancel discards the whole creation.
272 PCB_BASE_EDIT_FRAME* editFrame = dynamic_cast<PCB_BASE_EDIT_FRAME*>( m_tool.GetManager()->GetToolHolder() );
273
274 if( editFrame )
275 {
276 DIALOG_VIA_STITCH_PROPERTIES dlg( editFrame, stitcher.get() );
277
278 if( dlg.ShowModal() != wxID_OK )
279 break;
280 }
281
282 BOARD_COMMIT commit( &m_tool );
283 PCB_VIA_STITCH* released = stitcher.release();
284
285 released->EditStart( generatorTool, board, &commit );
286 released->Update( generatorTool, board, &commit );
287 released->EditFinish( generatorTool, board, &commit );
288
289 commit.Push( _( "Create Via Stitch" ) );
290
291 m_tool.GetManager()->RunAction<EDA_ITEM*>( PCB_ACTIONS::selectItem, released );
292 break;
293 }
294
296 {
297 BOARD_COMMIT commit( &m_tool );
298 BOARD* board = m_tool.getModel<BOARD>();
299 PCB_LAYER_ID layer = m_params.m_layer;
300 PCB_SHAPE* poly = new PCB_SHAPE( m_tool.m_frame->GetModel() );
301
302 poly->SetShape( SHAPE_T::POLY );
303 poly->SetFilled( layer != Edge_Cuts && layer != F_CrtYd && layer != B_CrtYd );
304
307 poly->SetLayer( layer );
308 poly->SetPolyShape( *aZone->Outline() );
309
310 commit.Add( poly );
311 commit.Push( _( "Draw Polygon" ) );
312
313 m_tool.GetManager()->RunAction<EDA_ITEM*>( ACTIONS::selectItem, poly );
314 break;
315 }
316 }
317}
318
319
321{
322 // if we don't have a zone, create one
323 if( !m_zone )
324 {
325 if( m_params.m_sourceZone )
326 m_zone = createZoneFromExisting( *m_params.m_sourceZone );
327 else
328 m_zone = createNewZone( m_params.m_keepout );
329
330 if( m_zone )
331 {
332 m_tool.GetManager()->RunAction( ACTIONS::selectionClear );
333
334 // set up properties from zone
335 const RENDER_SETTINGS& settings = *m_parentView.GetPainter()->GetSettings();
336 COLOR4D color = settings.GetColor( nullptr, m_zone->GetFirstLayer() );
337
338 m_previewItem.SetStrokeColor( COLOR4D::WHITE );
339 m_previewItem.SetFillColor( color.WithAlpha( 0.2 ) );
340
341 m_parentView.SetVisible( &m_previewItem, true );
342
343 LEADER_MODE mode = m_tool.GetAngleSnapMode();
344
345 aMgr.SetLeaderMode( mode );
346 }
347 }
348
349 return m_zone != nullptr;
350}
351
352
354{
355 // Handle a cancel-interactive
356 if( m_zone && !aMgr.IsPolygonInProgress() )
357 {
358 m_zone = nullptr;
359 m_parentView.SetVisible( &m_previewItem, false );
360 return;
361 }
362
363 // send the points to the preview item
364 m_previewItem.SetPoints( aMgr.GetLockedInPoints(), aMgr.GetLeaderLinePoints(),
365 aMgr.GetLoopLinePoints() );
367}
368
369
371{
372 const SHAPE_LINE_CHAIN& finalPoints = aMgr.GetLockedInPoints();
373
374 if( finalPoints.PointCount() < 3 )
375 {
376 // just scrap the zone in progress
377 m_zone = nullptr;
378 }
379 else
380 {
381 // if m_params.m_mode == DRAWING_TOOL::ZONE_MODE::CUTOUT, m_zone will be merged to the
382 // existing zone as a new hole.
383 m_zone->Outline()->NewOutline();
384 SHAPE_POLY_SET* outline = m_zone->Outline();
385
386 for( int i = 0; i < finalPoints.PointCount(); ++i )
387 outline->Append( finalPoints.CPoint( i ) );
388
389 // In DEG45 mode, we may have intermediate points in the leader that should be included
390 // as they are shown in the preview. These typically maintain the 45 constraint
392 {
393 const SHAPE_LINE_CHAIN leaderPts = aMgr.GetLeaderLinePoints();
394
395 for( int i = 1; i < leaderPts.PointCount(); i++ )
396 outline->Append( leaderPts.CPoint( i ) );
397
398 const SHAPE_LINE_CHAIN loopPts = aMgr.GetLoopLinePoints();
399
400 for( int i = 1; i < loopPts.PointCount() - 1; i++ )
401 outline->Append( loopPts.CPoint( i ) );
402 }
403
404 SHAPE_LINE_CHAIN& chain = outline->Outline( 0 );
405
406 chain.SetClosed( true );
407 chain.Simplify( true );
408
409 // Remove the start point if it lies on the line between neighbouring points.
410 // Simplify doesn't handle that currently.
411 if( chain.PointCount() >= 3 )
412 {
413 SEG seg( chain.CLastPoint(), chain.CPoint( 1 ) );
414
415 if( seg.LineDistance( chain.CPoint( 0 ) ) <= 1 )
416 chain.Remove( 0 );
417 }
418
419 // hand the zone over to the committer
420 commitZone( std::move( m_zone ) );
421 m_zone = nullptr;
422 }
423
424 m_parentView.SetVisible( &m_previewItem, false );
425}
static TOOL_ACTION selectItem
Select an item (specified as the event parameter).
Definition actions.h:223
static TOOL_ACTION selectionClear
Clear the current selection.
Definition actions.h:220
BASE_SET & reset(size_t pos)
Definition base_set.h:153
BASE_SET & set(size_t pos)
Definition base_set.h:126
virtual void Push(const wxString &aMessage=wxEmptyString, int aCommitFlags=0) override
Execute the changes.
A base class derived from BOARD_ITEM for items that can be connected and have a net,...
int GetLineThickness(PCB_LAYER_ID aLayer) const
Return the default graphic segment thickness from the layer class for the given layer.
Abstract interface for BOARD_ITEMs capable of storing other items inside.
Information pertinent to a Pcbnew printed circuit board.
Definition board.h:409
BOARD_DESIGN_SETTINGS & GetDesignSettings() const
Definition board.cpp:1299
static const COLOR4D WHITE
Definition color4d.h:402
COMMIT & Remove(EDA_ITEM *aItem, BASE_SCREEN *aScreen=nullptr)
Remove a new item from the model.
Definition commit.h:86
COMMIT & Add(EDA_ITEM *aItem, BASE_SCREEN *aScreen=nullptr)
Add a new item to the model.
Definition commit.h:74
int ShowModal() override
Modal properties editor for a PCB_VIA_STITCH generator.
Tool responsible for drawing graphical elements like lines, arcs, circles, etc.
void SetFocus() override
A base class for most all the KiCad significant classes used in schematics and boards.
Definition eda_item.h:98
KICAD_T Type() const
Returns the type of object.
Definition eda_item.h:110
virtual void SetFilled(bool aFlag)
Definition eda_shape.h:142
Handle actions specific to filling copper zones.
A color representation with 4 components: red, green, blue, alpha.
Definition color4d.h:101
COLOR4D WithAlpha(double aAlpha) const
Return a color with the same color, but the given alpha.
Definition color4d.h:308
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
virtual COLOR4D GetColor(const VIEW_ITEM *aItem, int aLayer) const =0
Returns the color that should be used to draw the specific VIEW_ITEM on the specific layer using curr...
An interface for classes handling user events controlling the view behavior such as zooming,...
virtual void WarpMouseCursor(const VECTOR2D &aPosition, bool aWorldCoordinates=false, bool aWarpView=false)=0
If enabled (.
VECTOR2D GetCursorPosition() const
Return the current cursor position in world coordinates.
static LSET AllCuMask(int aCuLayerCount)
Return a mask holding the requested number of Cu PCB_LAYER_IDs.
Definition lset.cpp:595
Common, abstract interface for edit frames.
PCB_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
BOARD * GetBoard() const
The selection tool: currently supports:
PCB_SELECTION & GetSelection()
void SetShape(SHAPE_T aShape) override
Definition pcb_shape.h:207
void SetPolyShape(const SHAPE_POLY_SET &aShape) override
void SetLayer(PCB_LAYER_ID aLayer) override
Set the layer this item is on.
void SetStroke(const STROKE_PARAMS &aStroke) override
void EditStart(GENERATOR_TOOL *, BOARD *, BOARD_COMMIT *) override
bool Update(GENERATOR_TOOL *, BOARD *, BOARD_COMMIT *) override
void EditFinish(GENERATOR_TOOL *, BOARD *, BOARD_COMMIT *) override
Class that handles the drawing of a polygon, including management of last corner deletion and drawing...
const SHAPE_LINE_CHAIN & GetLockedInPoints() const
Get the "locked-in" points that describe the polygon itself.
LEADER_MODE GetLeaderMode() const
void SetLeaderMode(LEADER_MODE aMode)
Set the leader mode to use when calculating the leader/returner lines.
const SHAPE_LINE_CHAIN & GetLoopLinePoints() const
Get the points from the current cursor position to the polygon start point.
const SHAPE_LINE_CHAIN & GetLeaderLinePoints() const
Get the points comprising the leader line (the line from the last locked-in point to the current curs...
Definition seg.h:38
int LineDistance(const VECTOR2I &aP, bool aDetermineSide=false) const
Return the closest Euclidean distance between point aP and the line defined by the ends of segment (t...
Definition seg.cpp:753
const std::deque< EDA_ITEM * > GetItems() const
Definition selection.h:125
bool Empty() const
Checks if there is anything selected.
Definition selection.h:114
Represent a polyline containing arcs as well as line segments: A chain of connected line and/or arc s...
int PointCount() const
Return the number of points (vertices) in this line chain.
const VECTOR2I & CPoint(int aIndex) const
Return a reference to a given point in the line chain.
Represent a set of closed polygons.
void ClearArcs()
Removes all arc references from all the outlines and holes in the polyset.
int AddOutline(const SHAPE_LINE_CHAIN &aOutline)
Adds a new outline to the set and returns its index.
int HoleCount(int aOutline) const
Returns the number of holes in a given outline.
int Append(int x, int y, int aOutline=-1, int aHole=-1, bool aAllowDuplication=false)
Appends a vertex at the end of the given outline/hole (default: the last outline)
int AddHole(const SHAPE_LINE_CHAIN &aHole, int aOutline=-1)
Adds a new hole to the given outline (default: last) and returns its index.
SHAPE_LINE_CHAIN & Outline(int aIndex)
Return the reference to aIndex-th outline in the set.
const SHAPE_LINE_CHAIN & CHole(int aOutline, int aHole) const
int OutlineCount() const
Return the number of outlines in the set.
void BooleanSubtract(const SHAPE_POLY_SET &b)
Perform boolean polyset difference.
Simple container to manage line stroke parameters.
Master controller class:
bool RunAction(const std::string &aActionName, T aParam)
Run the specified action immediately, pausing the current action to run the new one.
void commitZone(std::unique_ptr< ZONE > aZone)
Commit the current zone-in-progress to the BOARD.
PARAMS & m_params
The preview item to display.
bool OnFirstPoint(POLYGON_GEOM_MANAGER &aMgr) override
Called before the first point is added - clients can do initialization here, and can veto the start o...
ZONE_CREATE_HELPER(DRAWING_TOOL &aTool, PARAMS &aParams)
std::unique_ptr< ZONE > createNewZone(bool aKeepout)
Prompt the user for new zone settings, and create a new zone with those settings.
void performZoneCutout(ZONE &aZone, const ZONE &aCutout)
Cut one zone out of another one (i.e.
void setUniquePriority(ZONE_SETTINGS &aZoneInfo)
Choose a new priority for @aZoneInfo.
void OnGeometryChange(const POLYGON_GEOM_MANAGER &aMgr) override
Called when the polygon is complete.
std::unique_ptr< ZONE > m_zone
std::unique_ptr< ZONE > createZoneFromExisting(const ZONE &aSrcZone)
Create a new zone with the settings from an existing zone.
KIGFX::PREVIEW::POLYGON_ITEM m_previewItem
view that show the preview item
void OnComplete(const POLYGON_GEOM_MANAGER &aMgr) override
KIGFX::VIEW & m_parentView
The zone-in-progress.
DRAWING_TOOL & m_tool
Parameters of the zone to be drawn.
ZONE_SETTINGS handles zones parameters.
void SetIsRuleArea(bool aEnable)
void ExportSetting(ZONE &aTarget, bool aFullExport=true) const
Function ExportSetting copy settings to a given zone.
void SetPadConnection(ZONE_CONNECTION aPadConnection)
unsigned m_ZonePriority
std::map< PCB_LAYER_ID, ZONE_LAYER_PROPERTIES > m_LayerProperties
ZONE_FILL_MODE m_FillMode
Handle a list of polygons defining a copper zone.
Definition zone.h:70
bool UnFill()
Removes the zone filling.
Definition zone.cpp:529
void SetLocalFlags(int aFlags)
Definition zone.h:416
void HatchBorder()
Compute the hatch lines depending on the hatch parameters and stores it in the zone's attribute m_bor...
Definition zone.cpp:1559
SHAPE_POLY_SET * Outline()
Definition zone.h:418
void SetOutline(SHAPE_POLY_SET *aOutline)
Definition zone.h:421
int InvokeCopperZonesEditor(PCB_BASE_FRAME *aCaller, ZONE *aZone, ZONE_SETTINGS *aSettings, CONVERT_SETTINGS *aConvertSettings)
Function InvokeCopperZonesEditor invokes up a modal dialog window for copper zone editing.
int InvokeNonCopperZonesEditor(PCB_BASE_FRAME *aParent, ZONE_SETTINGS *aSettings, CONVERT_SETTINGS *aConvertSettings)
Function InvokeNonCopperZonesEditor invokes up a modal dialog window for non-copper zone editing.
int InvokeRuleAreaEditor(PCB_BASE_FRAME *aCaller, ZONE_SETTINGS *aZoneSettings, BOARD *aBoard, CONVERT_SETTINGS *aConvertSettings)
Function InvokeRuleAreaEditor invokes up a modal dialog window for copper zone editing.
#define _(s)
#define IS_NEW
New item, just created.
LEADER_MODE
The kind of the leader line.
@ DEG45
45 Degree only
@ DEG90
90 Degree only
PCB_LAYER_ID
A quick note on layer IDs:
Definition layer_ids.h:56
@ F_CrtYd
Definition layer_ids.h:112
@ Edge_Cuts
Definition layer_ids.h:108
@ B_CrtYd
Definition layer_ids.h:111
@ GEOMETRY
Position or shape has changed.
Definition view_item.h:51
@ SIMILAR
Add a new zone with the same settings as an existing one.
Definition pcb_actions.h:36
@ CUTOUT
Make a cutout to an existing zone.
Definition pcb_actions.h:35
@ GRAPHIC_POLYGON
Definition pcb_actions.h:37
@ ADD
Add a new zone/keepout with fresh settings.
Definition pcb_actions.h:34
Parameters used to fully describe a zone creation process.
const SHAPE_LINE_CHAIN chain
@ PCB_FOOTPRINT_T
class FOOTPRINT, a footprint
Definition typeinfo.h:78
@ NONE
Pads are not covered.
Definition zones.h:45