KiCad PCB EDA Suite
Loading...
Searching...
No Matches
router_preview_item.cpp
Go to the documentation of this file.
1/*
2 * KiRouter - a push-and-(sometimes-)shove PCB router
3 *
4 * Copyright (C) 2013-2014 CERN
5 * Copyright (C) 2016-2023 KiCad Developers, see AUTHORS.txt for contributors.
6 * Author: Tomasz Wlostowski <[email protected]>
7 *
8 * This program is free software: you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation, either version 3 of the License, or (at your
11 * option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License along
19 * with this program. If not, see <http://www.gnu.org/licenses/>.
20 */
21
22#include <deque>
23#include <gal/color4d.h>
24
26#include <geometry/shape_rect.h>
28#include <pcb_painter.h>
29#include <trigo.h>
30
31#include "router_preview_item.h"
32
33#include "pns_arc.h"
34#include "pns_line.h"
35#include "pns_segment.h"
36#include "pns_via.h"
37#include "pns_kicad_iface.h"
38
39using namespace KIGFX;
40
41
43 KIGFX::VIEW* aView, int aFlags ) :
45 m_iface( aIface ),
46 m_view( aView ),
47 m_shape( nullptr ),
48 m_hole( nullptr ),
49 m_flags( aFlags )
50{
51 BOARD_ITEM* boardItem = aItem ? aItem->BoardItem() : nullptr;
52
53 // A PNS::SOLID for an edge-cut item must have 0 width for collision calculations, but when
54 // highlighting an edge we want to show it with its parent PCB_SHAPE's shape.
55 if( boardItem && boardItem->IsOnLayer( Edge_Cuts ) )
56 {
57 m_shape = boardItem->GetEffectiveShape()->Clone();
58 }
59 else if( aItem )
60 {
61 // TODO(JE) padstacks -- need to know the layer here
62 m_shape = aItem->Shape( -1 )->Clone();
63
64 if( aItem->Hole() )
65 m_hole = aItem->Hole()->Shape( -1 )->Clone();
66 }
67
68 m_clearance = -1;
70
71 m_showClearance = false;
72
73 // initialize variables, overwritten by Update( aItem ), if aItem != NULL
75 m_width = ( aFlags & PNS_SEMI_SOLID ) ? 1 : 0;
77
78 if( aItem )
79 Update( aItem );
80}
81
82
84 KIGFX::VIEW* aView ) :
86 m_iface( aIface ),
87 m_view( aView ),
88 m_flags( 0 )
89{
90 m_shape = aShape.Clone();
91 m_hole = nullptr;
92
93 m_clearance = -1;
95
96 m_showClearance = false;
97
98 // initialize variables, overwritten by Update( aItem ), if aItem != NULL
100 m_width = 0;
102}
103
104
106{
107 delete m_shape;
108 delete m_hole;
109}
110
111
113{
115
116 if( const PNS::LINE* l = dyn_cast<const PNS::LINE*>( aItem ) )
117 {
118 if( !l->SegmentCount() )
119 return;
120 }
121 else if( const PNS::VIA* v = dyn_cast<const PNS::VIA*>( aItem ) )
122 {
123 if( v->IsVirtual() )
124 return;
125 }
126
127 if( m_originLayer < 0 )
128 m_originLayer = 0;
129
132 m_color.a = 0.8;
133 m_depth = m_originDepth - ( ( aItem->Layers().Start() + 1 ) * LayerDepthFactor );
134
135 switch( aItem->Kind() )
136 {
139 m_width = static_cast<const PNS::LINE*>( aItem )->Width();
140 break;
141
142 case PNS::ITEM::ARC_T:
144 m_width = static_cast<const PNS::ARC*>( aItem )->Width();
145 break;
146
149 m_width = static_cast<const PNS::SEGMENT*>( aItem )->Width();
150 break;
151
152 case PNS::ITEM::VIA_T:
153 {
156 m_width = 0;
157 m_color = COLOR4D( 0.7, 0.7, 0.7, 0.8 );
158 m_depth = m_originDepth - ( static_cast<double>( PCB_LAYER_ID_COUNT ) * LayerDepthFactor );
159
160 delete m_shape;
161 m_shape = nullptr;
162
163 auto via = static_cast<const PNS::VIA*>( aItem );
164 int shapeLayer = -1;
165 int largestDiameter = 0;
166
167 for( int layer : via->UniqueShapeLayers() )
168 {
169 if( via->Diameter( layer ) > largestDiameter )
170 {
171 largestDiameter = via->Diameter( layer );
172 shapeLayer = layer;
173 }
174 }
175
176 if( aItem->Shape( shapeLayer ) )
177 m_shape = aItem->Shape( shapeLayer )->Clone();
178
179 delete m_hole;
180 m_hole = nullptr;
181
182 if( aItem->Hole() )
183 m_hole = aItem->Hole()->Shape( -1 )->Clone();
184
185 break;
186 }
187
190 break;
191
192 default:
193 break;
194 }
195
196 if( aItem->Marker() & PNS::MK_VIOLATION )
198
199 if( m_flags & PNS_COLLISION )
200 m_color = COLOR4D( 0, 1, 0, 1 );
201
202 if( m_flags & PNS_HOVER_ITEM )
203 m_color = m_color.WithAlpha( 1.0 );
204}
205
206
208{
209 BOX2I bbox;
210
211 switch( m_type )
212 {
213 case PR_SHAPE:
214 if( m_shape )
215 {
216 bbox = m_shape->BBox();
217 bbox.Inflate( m_width / 2 );
218 }
219
220 if( m_hole )
221 bbox.Merge( m_hole->BBox() );
222
223 return bbox;
224
225 case PR_POINT:
226 bbox = BOX2I ( m_pos - VECTOR2I( 100000, 100000 ), VECTOR2I( 200000, 200000 ) );
227 return bbox;
228
229 default:
230 break;
231 }
232
233 return bbox;
234}
235
236
238{
239 wxCHECK( aL, /* void */ );
240
241 gal->SetIsFill( false );
242
243 for( int s = 0; s < aL->GetSegmentCount(); s++ )
244 {
245 SEG seg = aL->GetSegment( s );
246
247 if( seg.A == seg.B )
248 {
249 gal->SetIsFill( true );
250 gal->SetIsStroke( false );
251 gal->DrawCircle( seg.A, gal->GetLineWidth() / 2 );
252 gal->SetIsFill( false );
253 gal->SetIsStroke( true );
254 }
255 else
256 {
257 gal->DrawLine( seg.A, seg.B );
258 }
259 }
260
261 const SHAPE_LINE_CHAIN* lineChain = dynamic_cast<const SHAPE_LINE_CHAIN*>( aL );
262
263 for( size_t s = 0; lineChain && s < lineChain->ArcCount(); s++ )
264 {
265 const SHAPE_ARC& arc = lineChain->CArcs()[s];
266 EDA_ANGLE start_angle = arc.GetStartAngle();
267 EDA_ANGLE angle = arc.GetCentralAngle();
268
269 gal->DrawArc( arc.GetCenter(), arc.GetRadius(), start_angle, angle);
270 }
271
272 if( aL->IsClosed() )
273 gal->DrawLine( aL->GetSegment( -1 ).B, aL->GetSegment( 0 ).A );
274}
275
276
277void ROUTER_PREVIEW_ITEM::drawShape( const SHAPE* aShape, KIGFX::GAL* gal ) const
278{
279 bool holeDrawn = false;
280 bool showClearance = m_showClearance;
281
282 // Always show clearance when we're in collision, even if the preference is off
283 if( ( m_flags & PNS_COLLISION ) > 0 )
284 showClearance = true;
285
286 switch( aShape->Type() )
287 {
289 {
290 const SHAPE_LINE_CHAIN_BASE* l = (const SHAPE_LINE_CHAIN_BASE*) aShape;
291
292 if( showClearance && m_clearance > 0 )
293 {
294 gal->SetLineWidth( m_width + 2 * m_clearance );
295 drawLineChain( l, gal );
296 }
297
298 gal->SetLayerDepth( m_depth );
299 gal->SetLineWidth( m_width );
300 gal->SetStrokeColor( m_color );
301 gal->SetFillColor( m_color );
302 drawLineChain( l, gal );
303 break;
304 }
305
306 case SH_LINE_CHAIN:
307 {
308 const SHAPE_LINE_CHAIN* l = (const SHAPE_LINE_CHAIN*) aShape;
309 const int w = m_width;
310
311 if( showClearance && m_clearance > 0 )
312 {
313 gal->SetLineWidth( w + 2 * m_clearance );
314 drawLineChain( l, gal );
315 }
316
317 gal->SetLayerDepth( m_depth );
318 gal->SetLineWidth( w );
319 gal->SetStrokeColor( m_color );
320 gal->SetFillColor( m_color );
321 drawLineChain( l, gal );
322 break;
323 }
324
325 case SH_SEGMENT:
326 {
327 const SHAPE_SEGMENT* s = (const SHAPE_SEGMENT*) aShape;
328 const int w = s->GetWidth();
329
330 gal->SetIsStroke( false );
331
332 if( showClearance && m_clearance > 0 )
333 {
334 gal->SetLineWidth( w + 2 * m_clearance );
335 gal->DrawSegment( s->GetSeg().A, s->GetSeg().B, s->GetWidth() + 2 * m_clearance );
336 }
337
338 gal->SetLayerDepth( m_depth );
339 gal->SetLineWidth( w );
340 gal->SetFillColor( m_color );
341 gal->DrawSegment( s->GetSeg().A, s->GetSeg().B, s->GetWidth() );
342 break;
343 }
344
345 case SH_CIRCLE:
346 {
347 const SHAPE_CIRCLE* c = static_cast<const SHAPE_CIRCLE*>( aShape );
348 gal->SetStrokeColor( m_color );
349
350 if( showClearance && m_clearance > 0 )
351 {
352 gal->SetIsStroke( false );
353 gal->DrawCircle( c->GetCenter(), c->GetRadius() + m_clearance );
354 }
355
356 gal->SetLayerDepth( m_depth );
357
358 if( m_hole && dynamic_cast<SHAPE_CIRCLE*>( m_hole ) )
359 {
360 const SHAPE_CIRCLE* h = static_cast<const SHAPE_CIRCLE*>( m_hole );
361 int halfWidth = m_width / 2;
362
363 gal->SetIsStroke( true );
364 gal->SetIsFill( false );
365 gal->SetLineWidth( halfWidth + c->GetRadius() - h->GetRadius() );
366 gal->DrawCircle( c->GetCenter(), ( halfWidth + c->GetRadius() + h->GetRadius() ) / 2 );
367
368 holeDrawn = true;
369 }
370 else
371 {
372 gal->SetIsStroke( m_width ? true : false );
373 gal->SetLineWidth( m_width );
374 gal->SetFillColor( m_color );
375 gal->DrawCircle( c->GetCenter(), c->GetRadius() );
376 }
377
378 break;
379 }
380
381 case SH_RECT:
382 {
383 const SHAPE_RECT* r = (const SHAPE_RECT*) aShape;
384 gal->SetFillColor( m_color );
385
386 if( showClearance && m_clearance > 0 )
387 {
388 VECTOR2I p0( r->GetPosition() ), s( r->GetSize() );
389 gal->SetIsStroke( true );
390 gal->SetLineWidth( 2 * m_clearance );
391 gal->DrawLine( p0, VECTOR2I( p0.x + s.x, p0.y ) );
392 gal->DrawLine( p0, VECTOR2I( p0.x, p0.y + s.y ) );
393 gal->DrawLine( p0 + s , VECTOR2I( p0.x + s.x, p0.y ) );
394 gal->DrawLine( p0 + s, VECTOR2I( p0.x, p0.y + s.y ) );
395 }
396
397 gal->SetLayerDepth( m_depth );
398 gal->SetIsStroke( m_width ? true : false );
399 gal->SetLineWidth( m_width);
400 gal->SetStrokeColor( m_color );
401 gal->DrawRectangle( r->GetPosition(), r->GetPosition() + r->GetSize() );
402
403 break;
404 }
405
406 case SH_SIMPLE:
407 {
408 const SHAPE_SIMPLE* c = (const SHAPE_SIMPLE*) aShape;
409 std::deque<VECTOR2D> polygon = std::deque<VECTOR2D>();
410
411 for( int i = 0; i < c->PointCount(); i++ )
412 {
413 polygon.push_back( c->CDPoint( i ) );
414 }
415
416 gal->SetFillColor( m_color );
417
418 if( showClearance && m_clearance > 0 )
419 {
420 gal->SetIsStroke( true );
421 gal->SetLineWidth( 2 * m_clearance );
422
423 // need the implicit last segment to be explicit for DrawPolyline
424 polygon.push_back( c->CDPoint( 0 ) );
425 gal->DrawPolyline( polygon );
426 }
427
428 gal->SetLayerDepth( m_depth );
429 gal->SetIsStroke( m_width ? true : false );
430 gal->SetLineWidth( m_width );
431 gal->SetStrokeColor( m_color );
432 gal->DrawPolygon( polygon );
433 break;
434 }
435
436 case SH_ARC:
437 {
438 const SHAPE_ARC* arc = static_cast<const SHAPE_ARC*>( aShape );
439 const int w = arc->GetWidth();
440 EDA_ANGLE start_angle = arc->GetStartAngle();
441 EDA_ANGLE angle = arc->GetCentralAngle();
442
443 gal->SetIsFill( false );
444 gal->SetIsStroke( true );
445
446 if( showClearance && m_clearance > 0 )
447 {
448 gal->SetLineWidth( w + 2 * m_clearance );
449 gal->DrawArc( arc->GetCenter(), arc->GetRadius(), start_angle, angle );
450 }
451
452 gal->SetLayerDepth( m_depth );
453 gal->SetStrokeColor( m_color );
454 gal->SetFillColor( m_color );
455 gal->SetLineWidth( w );
456 gal->DrawArc( arc->GetCenter(), arc->GetRadius(), start_angle, angle );
457 break;
458 }
459
460 case SH_COMPOUND:
461 wxFAIL_MSG( wxT( "Router preview item: nested compound shapes not supported" ) );
462 break;
463
464 case SH_POLY_SET:
465 wxFAIL_MSG( wxT( "Router preview item: SHAPE_POLY_SET not supported" ) );
466 break;
467
468 case SH_NULL:
469 break;
470 }
471
472 if( m_hole && !holeDrawn )
473 {
474 gal->SetLayerDepth( m_depth );
475 gal->SetIsStroke( true );
476 gal->SetIsFill( false );
477 gal->SetStrokeColor( m_color );
478 gal->SetLineWidth( 1 );
479
480 SHAPE_CIRCLE* circle = dynamic_cast<SHAPE_CIRCLE*>( m_hole );
481 SHAPE_SEGMENT* slot = dynamic_cast<SHAPE_SEGMENT*>( m_hole );
482
483 if( circle )
484 gal->DrawCircle( circle->GetCenter(), circle->GetRadius() );
485 else if( slot )
486 gal->DrawSegment( slot->GetSeg().A, slot->GetSeg().B, slot->GetWidth() );
487 }
488}
489
490
491void ROUTER_PREVIEW_ITEM::ViewDraw( int aLayer, KIGFX::VIEW* aView ) const
492{
493 GAL* gal = aView->GetGAL();
494 //col.Brighten(0.7);
495
496 if( m_type == PR_SHAPE )
497 {
498 if( !m_shape )
499 return;
500
501 // N.B. The order of draw here is important
502 // Cairo doesn't current support z-ordering, so we need
503 // to draw the clearance first to ensure it is in the background
505
506 //TODO(snh) Add configuration option for the color/alpha here
507 gal->SetStrokeColor( COLOR4D( DARKDARKGRAY ).WithAlpha( 0.9 ) );
508 gal->SetFillColor( COLOR4D( DARKDARKGRAY ).WithAlpha( 0.7 ) );
509 gal->SetIsStroke( m_width ? true : false );
510 gal->SetIsFill( true );
511
512 // Semi-solids (ie: rule areas) which are not in collision are sketched (ie: outline only)
513 if( ( m_flags & PNS_SEMI_SOLID ) > 0 && ( m_flags & PNS_COLLISION ) == 0 )
514 gal->SetIsFill( false );
515
517 {
518 std::vector<const SHAPE*> subshapes;
519 m_shape->GetIndexableSubshapes( subshapes );
520
521 for( const SHAPE* shape : subshapes )
522 drawShape( shape, gal );
523 }
524 else
525 {
526 drawShape( m_shape, gal );
527 }
528 }
529}
530
531
533{
534 auto settings = static_cast<PCB_RENDER_SETTINGS*>( m_view->GetPainter()->GetSettings() );
535
536 COLOR4D color = settings->GetLayerColor( aLayer );
537
538 if( m_flags & PNS_HEAD_TRACE )
539 return color.Saturate( 1.0 );
540 else if( m_flags & PNS_HOVER_ITEM )
541 return color.Brightened( 0.7 );
542
543 return color;
544}
int color
Definition: DXF_plotter.cpp:58
BOX2< VECTOR2I > BOX2I
Definition: box2.h:922
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
Definition: board_item.h:79
virtual bool IsOnLayer(PCB_LAYER_ID aLayer) const
Test to see if this object is on the given layer.
Definition: board_item.h:319
virtual std::shared_ptr< SHAPE > GetEffectiveShape(PCB_LAYER_ID aLayer=UNDEFINED_LAYER, FLASHING aFlash=FLASHING::DEFAULT) const
Some pad shapes can be complex (rounded/chamfered rectangle), even without considering custom shapes.
Definition: board_item.cpp:279
constexpr BOX2< Vec > & Inflate(coord_type dx, coord_type dy)
Inflates the rectangle horizontally by dx and vertically by dy.
Definition: box2.h:558
constexpr BOX2< Vec > & Merge(const BOX2< Vec > &aRect)
Modify the position and size of the rectangle in order to contain aRect.
Definition: box2.h:658
A base class for most all the KiCad significant classes used in schematics and boards.
Definition: eda_item.h:89
A color representation with 4 components: red, green, blue, alpha.
Definition: color4d.h:104
COLOR4D WithAlpha(double aAlpha) const
Return a color with the same color, but the given alpha.
Definition: color4d.h:311
double a
Alpha component.
Definition: color4d.h:395
Abstract interface for drawing on a 2D-surface.
virtual void DrawPolygon(const std::deque< VECTOR2D > &aPointList)
Draw a polygon.
virtual void SetLayerDepth(double aLayerDepth)
Set the depth of the layer (position on the z-axis)
virtual void SetIsFill(bool aIsFillEnabled)
Enable/disable fill.
virtual void DrawRectangle(const VECTOR2D &aStartPoint, const VECTOR2D &aEndPoint)
Draw a rectangle.
virtual void SetFillColor(const COLOR4D &aColor)
Set the fill color.
virtual void DrawCircle(const VECTOR2D &aCenterPoint, double aRadius)
Draw a circle using world coordinates.
virtual void SetLineWidth(float aLineWidth)
Set the line width.
virtual void DrawPolyline(const std::deque< VECTOR2D > &aPointList)
Draw a polyline.
virtual void SetStrokeColor(const COLOR4D &aColor)
Set the stroke color.
virtual void SetIsStroke(bool aIsStrokeEnabled)
Enable/disable stroked outlines.
virtual void DrawLine(const VECTOR2D &aStartPoint, const VECTOR2D &aEndPoint)
Draw a line.
virtual void DrawArc(const VECTOR2D &aCenterPoint, double aRadius, const EDA_ANGLE &aStartAngle, const EDA_ANGLE &aAngle)
Draw an arc.
virtual void DrawSegment(const VECTOR2D &aStartPoint, const VECTOR2D &aEndPoint, double aWidth)
Draw a rounded segment.
float GetLineWidth() const
Get the line width.
virtual RENDER_SETTINGS * GetSettings()=0
Return a pointer to current settings that are going to be used when drawing items.
PCB specific render settings.
Definition: pcb_painter.h:78
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
Definition: view.h:68
int GetLayerOrder(int aLayer) const
Return rendering order of a particular layer.
Definition: view.cpp:681
GAL * GetGAL() const
Return the #GAL this view is using to draw graphical primitives.
Definition: view.h:203
PAINTER * GetPainter() const
Return the painter object used by the view for drawing #VIEW_ITEMS.
Definition: view.h:221
const SHAPE * Shape(int aLayer) const override
Return the geometrical shape of the item.
Definition: pns_hole.h:69
Base class for PNS router board items.
Definition: pns_item.h:97
virtual const SHAPE * Shape(int aLayer) const
Return the geometrical shape of the item.
Definition: pns_item.h:229
const PNS_LAYER_RANGE & Layers() const
Definition: pns_item.h:199
PnsKind Kind() const
Return the type (kind) of the item.
Definition: pns_item.h:170
@ SEGMENT_T
Definition: pns_item.h:106
virtual HOLE * Hole() const
Definition: pns_item.h:291
virtual BOARD_ITEM * BoardItem() const
Definition: pns_item.h:194
virtual int Marker() const
Definition: pns_item.h:250
Represents a track on a PCB, connecting two non-trivial joints (that is, vias, pads,...
Definition: pns_line.h:62
virtual PCB_LAYER_ID GetBoardLayerFromPNSLayer(int aLayer) const =0
int Start() const
Definition: pns_layerset.h:86
ROUTER_PREVIEW_ITEM(const SHAPE &aShape, PNS::ROUTER_IFACE *aIface, KIGFX::VIEW *aView)
static constexpr double LayerDepthFactor
We draw this item on a single layer, but we stack up all the layers from the various components that ...
void Update(const PNS::ITEM *aItem)
const KIGFX::COLOR4D getLayerColor(int aLayer) const
virtual void ViewDraw(int aLayer, KIGFX::VIEW *aView) const override
Draw the parts of the object belonging to layer aLayer.
void drawLineChain(const SHAPE_LINE_CHAIN_BASE *aL, KIGFX::GAL *aGal) const
const BOX2I ViewBBox() const override
Return the bounding box of the item covering all its layers.
void drawShape(const SHAPE *aShape, KIGFX::GAL *aGal) const
PNS::ROUTER_IFACE * m_iface
Definition: seg.h:42
VECTOR2I A
Definition: seg.h:49
VECTOR2I B
Definition: seg.h:50
EDA_ANGLE GetCentralAngle() const
Definition: shape_arc.cpp:538
int GetWidth() const
Definition: shape_arc.h:168
double GetRadius() const
Definition: shape_arc.cpp:554
EDA_ANGLE GetStartAngle() const
Definition: shape_arc.cpp:507
const VECTOR2I & GetCenter() const
Definition: shape_arc.cpp:523
virtual void GetIndexableSubshapes(std::vector< const SHAPE * > &aSubshapes) const
Definition: shape.h:115
virtual bool HasIndexableSubshapes() const
Definition: shape.h:108
SHAPE_TYPE Type() const
Return the type of the shape.
Definition: shape.h:98
int GetRadius() const
Definition: shape_circle.h:118
const VECTOR2I GetCenter() const
Definition: shape_circle.h:123
virtual size_t GetSegmentCount() const =0
virtual bool IsClosed() const =0
virtual const SEG GetSegment(int aIndex) const =0
Represent a polyline containing arcs as well as line segments: A chain of connected line and/or arc s...
const std::vector< SHAPE_ARC > & CArcs() const
size_t ArcCount() const
const VECTOR2I & GetPosition() const
Definition: shape_rect.h:160
const VECTOR2I GetSize() const
Definition: shape_rect.h:168
const SEG & GetSeg() const
int GetWidth() const
Represent a simple polygon consisting of a zero-thickness closed chain of connected line segments.
Definition: shape_simple.h:42
int PointCount() const
Return the number of points (vertices) in this polygon.
Definition: shape_simple.h:88
const VECTOR2D CDPoint(int aIndex) const
Return a given point as a vector with elements of type double.
Definition: shape_simple.h:113
An abstract shape on 2D plane.
Definition: shape.h:126
virtual SHAPE * Clone() const
Return a dynamically allocated copy of the shape.
Definition: shape.h:148
virtual const BOX2I BBox(int aClearance=0) const =0
Compute a bounding box of the shape, with a margin of aClearance a collision.
@ DARKDARKGRAY
Definition: color4d.h:45
@ LAYER_SELECT_OVERLAY
currently selected items overlay
Definition: layer_ids.h:220
@ LAYER_VIAS
Meta control for all vias opacity/visibility.
Definition: layer_ids.h:194
@ Edge_Cuts
Definition: layer_ids.h:112
@ PCB_LAYER_ID_COUNT
Definition: layer_ids.h:135
The Cairo implementation of the graphics abstraction layer.
Definition: color4d.cpp:247
@ MK_VIOLATION
Definition: pns_item.h:43
#define PNS_HEAD_TRACE
#define PNS_SEMI_SOLID
#define PNS_HOVER_ITEM
#define PNS_COLLISION
@ SH_POLY_SET
set of polygons (with holes, etc.)
Definition: shape.h:52
@ SH_RECT
axis-aligned rectangle
Definition: shape.h:47
@ SH_CIRCLE
circle
Definition: shape.h:50
@ SH_SIMPLE
simple polygon
Definition: shape.h:51
@ SH_NULL
empty shape (no shape...),
Definition: shape.h:55
@ SH_SEGMENT
line segment
Definition: shape.h:48
@ SH_ARC
circular arc
Definition: shape.h:54
@ SH_POLY_SET_TRIANGLE
a single triangle belonging to a POLY_SET triangulation
Definition: shape.h:56
@ SH_LINE_CHAIN
line chain (polyline)
Definition: shape.h:49
@ SH_COMPOUND
compound shape, consisting of multiple simple shapes
Definition: shape.h:53
@ NOT_USED
the 3d code uses this value
Definition: typeinfo.h:79
VECTOR2< int32_t > VECTOR2I
Definition: vector2d.h:691