KiCad PCB EDA Suite
Loading...
Searching...
No Matches
ee_grid_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 (C) 2014 CERN
5 * Copyright (C) 2018-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
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, you may find one here:
20 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
21 * or you may search the http://www.gnu.org website for the version 2 license,
22 * or you may write to the Free Software Foundation, Inc.,
23 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
24 */
25
26#include <functional>
27#include <macros.h>
29#include <sch_item.h>
30#include <sch_line.h>
31#include <sch_table.h>
32#include <sch_tablecell.h>
33#include <sch_painter.h>
34#include <tool/tool_manager.h>
36#include <trigo.h>
37#include <view/view.h>
38#include "ee_grid_helper.h"
39
40
43{
44 KIGFX::VIEW* view = m_toolMgr->GetView();
45
46 m_viewAxis.SetSize( 20000 );
48 m_viewAxis.SetColor( COLOR4D( 0.0, 0.1, 0.4, 0.8 ) );
50 view->Add( &m_viewAxis );
51 view->SetVisible( &m_viewAxis, false );
52
54 m_viewSnapPoint.SetColor( COLOR4D( 0.0, 0.1, 0.4, 1.0 ) );
56 view->Add( &m_viewSnapPoint );
57 view->SetVisible( &m_viewSnapPoint, false );
58}
59
60
62{
63 KIGFX::VIEW* view = m_toolMgr->GetView();
64
65 view->Remove( &m_viewAxis );
66 view->Remove( &m_viewSnapPoint );
67}
68
69
71 const EE_SELECTION& aItems )
72{
74
75 // If we're working with any connectable objects, skip non-connectable objects
76 // since they are often off-grid, e.g. text anchors
77 bool hasConnectables = false;
78
79 for( EDA_ITEM* item : aItems )
80 {
81 GRID_HELPER_GRIDS grid = GetItemGrid( static_cast<SCH_ITEM*>( item ) );
83 {
84 hasConnectables = true;
85 break;
86 }
87 }
88
89 for( EDA_ITEM* item : aItems )
90 computeAnchors( static_cast<SCH_ITEM*>( item ), aMousePos, true, !hasConnectables );
91
92 double worldScale = m_toolMgr->GetView()->GetGAL()->GetWorldScale();
93 double lineSnapMinCornerDistance = 50.0 / worldScale;
94
95 ANCHOR* nearestOutline = nearestAnchor( aMousePos, OUTLINE, aGrid );
96 ANCHOR* nearestCorner = nearestAnchor( aMousePos, CORNER, aGrid );
97 ANCHOR* nearestOrigin = nearestAnchor( aMousePos, ORIGIN, aGrid );
98 ANCHOR* best = nullptr;
99 double minDist = std::numeric_limits<double>::max();
100
101 if( nearestOrigin )
102 {
103 minDist = nearestOrigin->Distance( aMousePos );
104 best = nearestOrigin;
105 }
106
107 if( nearestCorner )
108 {
109 double dist = nearestCorner->Distance( aMousePos );
110
111 if( dist < minDist )
112 {
113 minDist = dist;
114 best = nearestCorner;
115 }
116 }
117
118 if( nearestOutline )
119 {
120 double dist = nearestOutline->Distance( aMousePos );
121
122 if( minDist > lineSnapMinCornerDistance && dist < minDist )
123 best = nearestOutline;
124 }
125
126 return best ? best->pos : aMousePos;
127}
128
129
131 SCH_ITEM* aSkip )
132{
133 EE_SELECTION skipItems;
134 skipItems.Add( aSkip );
135
136 return BestSnapAnchor( aOrigin, aGrid, skipItems );
137}
138
139
141 const EE_SELECTION& aSkip )
142{
143 constexpr int snapRange = SNAP_RANGE * schIUScale.IU_PER_MILS;
144
145 VECTOR2I pt = aOrigin;
146 VECTOR2I snapDist( snapRange, snapRange );
147 bool snapLineX = false;
148 bool snapLineY = false;
149 bool snapPoint = false;
150 bool gridChecked = false;
151
152 BOX2I bb( VECTOR2I( aOrigin.x - snapRange / 2, aOrigin.y - snapRange / 2 ),
153 VECTOR2I( snapRange, snapRange ) );
154
155 clearAnchors();
156
157 for( SCH_ITEM* item : queryVisible( bb, aSkip ) )
158 computeAnchors( item, aOrigin );
159
160 ANCHOR* nearest = nearestAnchor( aOrigin, SNAPPABLE, aGrid );
161 VECTOR2I nearestGrid = Align( aOrigin, aGrid );
162
164 {
165 ad->ClearAnchors();
166 for( const ANCHOR& a : m_anchors )
167 ad->AddAnchor( a.pos );
168
169 ad->SetNearest( nearest ? OPT_VECTOR2I( nearest->pos ) : std::nullopt );
171 }
172
174
176 std::optional<VECTOR2I> snapLineOrigin = snapLineManager.GetSnapLineOrigin();
177
178 if( m_enableSnapLine && m_snapItem && snapLineOrigin.has_value()
179 && m_skipPoint != *snapLineOrigin )
180 {
181 if( std::abs( snapLineOrigin->x - aOrigin.x ) < snapDist.x )
182 {
183 pt.x = snapLineOrigin->x;
184 snapDist.x = std::abs( pt.x - aOrigin.x );
185 snapLineX = true;
186 }
187
188 if( std::abs( snapLineOrigin->y - aOrigin.y ) < snapDist.y )
189 {
190 pt.y = snapLineOrigin->y;
191 snapDist.y = std::abs( pt.y - aOrigin.y );
192 snapLineY = true;
193 }
194
195 if( canUseGrid() && std::abs( nearestGrid.x - aOrigin.x ) < snapDist.x )
196 {
197 pt.x = nearestGrid.x;
198 snapDist.x = std::abs( nearestGrid.x - aOrigin.x );
199 snapLineX = false;
200 }
201
202 if( canUseGrid() && std::abs( nearestGrid.y - aOrigin.y ) < snapDist.y )
203 {
204 pt.y = nearestGrid.y;
205 snapDist.y = std::abs( nearestGrid.y - aOrigin.y );
206 snapLineY = false;
207 }
208
209 gridChecked = true;
210 }
211
212 if( m_enableSnap && nearest && nearest->Distance( aOrigin ) < snapDist.EuclideanNorm() )
213 {
214
215 if( canUseGrid() && ( nearestGrid - aOrigin ).EuclideanNorm() < snapDist.EuclideanNorm() )
216 {
217 pt = nearestGrid;
218 snapDist.x = std::abs( nearestGrid.x - aOrigin.x );
219 snapDist.y = std::abs( nearestGrid.y - aOrigin.y );
220 snapPoint = false;
221 }
222 else
223 {
224 pt = nearest->pos;
225 snapDist.x = std::abs( nearest->pos.x - aOrigin.x );
226 snapDist.y = std::abs( nearest->pos.y - aOrigin.y );
227 snapPoint = true;
228 }
229
230 snapLineX = false;
231 snapLineY = false;
232 gridChecked = true;
233 }
234
235 if( canUseGrid() && !gridChecked )
236 pt = nearestGrid;
237
238 if( snapLineX || snapLineY )
239 {
240 snapLineManager.SetSnapLineEnd( pt );
241 }
242 else if( snapPoint )
243 {
244 m_snapItem = *nearest;
246
247 snapLineManager.SetSnapLineOrigin( pt );
248
251 else
253 }
254 else
255 {
256 snapLineManager.ClearSnapLine();
258 }
259
260 return pt;
261}
262
263
265{
267 int idx = -1;
268
270
271 if( !grid.overrides_enabled )
272 return g;
273
274 switch( aGrid )
275 {
276 case GRID_CONNECTABLE:
277 if( grid.override_connected )
278 idx = grid.override_connected_idx;
279
280 break;
281
282 case GRID_WIRES:
283 if( grid.override_wires )
284 idx = grid.override_wires_idx;
285
286 break;
287
288 case GRID_TEXT:
289 if( grid.override_text )
290 idx = grid.override_text_idx;
291
292 break;
293
294 case GRID_GRAPHICS:
295 if( grid.override_graphics )
296 idx = grid.override_graphics_idx;
297
298 break;
299
300 default:
301 break;
302 }
303
304 if( idx >= 0 && idx < (int) grid.grids.size() )
305 g = grid.grids[idx].ToDouble( schIUScale );
306
307 return g;
308}
309
310
312{
313 if( !m_snapItem )
314 return nullptr;
315
316 if( m_snapItem->items.empty() )
317 return nullptr;
318
319 return static_cast<SCH_ITEM*>( m_snapItem->items[0] );
320}
321
322
323std::set<SCH_ITEM*> EE_GRID_HELPER::queryVisible( const BOX2I& aArea,
324 const EE_SELECTION& aSkipList ) const
325{
326 std::set<SCH_ITEM*> items;
327 std::vector<KIGFX::VIEW::LAYER_ITEM_PAIR> selectedItems;
328
329 KIGFX::VIEW* view = m_toolMgr->GetView();
330
331 view->Query( aArea, selectedItems );
332
333 for( const KIGFX::VIEW::LAYER_ITEM_PAIR& it : selectedItems )
334 {
335 SCH_ITEM* item = static_cast<SCH_ITEM*>( it.first );
336
337 // The item must be visible and on an active layer
338 if( view->IsVisible( item ) && item->ViewGetLOD( it.second, view ) < view->GetScale() )
339 items.insert ( item );
340 }
341
342 for( EDA_ITEM* skipItem : aSkipList )
343 items.erase( static_cast<SCH_ITEM*>( skipItem ) );
344
345 return items;
346}
347
348
350{
351 GRID_HELPER_GRIDS grid = GetItemGrid( aSelection.Front() );
352
353 // Find the largest grid of all the items and use that
354 for( EDA_ITEM* item : aSelection )
355 {
356 GRID_HELPER_GRIDS itemGrid = GetItemGrid( item );
357
358 if( GetGridSize( itemGrid ) > GetGridSize( grid ) )
359 grid = itemGrid;
360 }
361
362 return grid;
363}
364
365
367{
368 if( !aItem )
369 return GRID_CURRENT;
370
371 switch( aItem->Type() )
372 {
373 case LIB_SYMBOL_T:
374 case SCH_SYMBOL_T:
375 case SCH_PIN_T:
376 case SCH_SHEET_PIN_T:
377 case SCH_SHEET_T:
378 case SCH_NO_CONNECT_T:
380 case SCH_HIER_LABEL_T:
381 case SCH_LABEL_T:
383 case SCH_RULE_AREA_T:
384 return GRID_CONNECTABLE;
385
386 case SCH_FIELD_T:
387 case SCH_TEXT_T:
388 return GRID_TEXT;
389
390 case SCH_SHAPE_T:
391 // The text box's border lines are what need to be on the graphic grid
392 case SCH_TEXTBOX_T:
393 case SCH_BITMAP_T:
394 return GRID_GRAPHICS;
395
396 case SCH_JUNCTION_T:
397 return GRID_WIRES;
398
399 case SCH_LINE_T:
400 if( static_cast<const SCH_LINE*>( aItem )->IsConnectable() )
401 return GRID_WIRES;
402 else
403 return GRID_GRAPHICS;
404
407 return GRID_WIRES;
408
409 default:
410 return GRID_CURRENT;
411 }
412}
413
414
415void EE_GRID_HELPER::computeAnchors( SCH_ITEM *aItem, const VECTOR2I &aRefPos, bool aFrom,
416 bool aIncludeText )
417{
418 bool isGraphicLine =
419 aItem->Type() == SCH_LINE_T && static_cast<SCH_LINE*>( aItem )->IsGraphicLine();
420
421 switch( aItem->Type() )
422 {
423 case SCH_TEXT_T:
424 case SCH_FIELD_T:
425 {
426 if( aIncludeText )
427 addAnchor( aItem->GetPosition(), ORIGIN, aItem );
428
429 break;
430 }
431
432 case SCH_TABLE_T:
433 {
434 if( aIncludeText )
435 {
436 addAnchor( aItem->GetPosition(), SNAPPABLE | CORNER, aItem );
437 addAnchor( static_cast<SCH_TABLE*>( aItem )->GetEnd(), SNAPPABLE | CORNER, aItem );
438 }
439
440 break;
441 }
442
443 case SCH_TEXTBOX_T:
444 case SCH_TABLECELL_T:
445 {
446 if( aIncludeText )
447 {
448 addAnchor( aItem->GetPosition(), SNAPPABLE | CORNER, aItem );
449 addAnchor( dynamic_cast<SCH_SHAPE*>( aItem )->GetEnd(), SNAPPABLE | CORNER, aItem );
450 }
451
452 break;
453 }
454
455 case SCH_SYMBOL_T:
456 case SCH_SHEET_T:
457 addAnchor( aItem->GetPosition(), ORIGIN, aItem );
459
460 case SCH_JUNCTION_T:
461 case SCH_NO_CONNECT_T:
462 case SCH_LINE_T:
463 // Don't add anchors for graphic lines unless we're including text,
464 // they may be on a non-connectable grid
465 if( isGraphicLine && !aIncludeText )
466 break;
467
470 case SCH_HIER_LABEL_T:
471 case SCH_LABEL_T:
474 case SCH_SHEET_PIN_T:
475 {
476 std::vector<VECTOR2I> pts = aItem->GetConnectionPoints();
477
478 for( const VECTOR2I& pt : pts )
479 addAnchor( VECTOR2I( pt ), SNAPPABLE | CORNER, aItem );
480
481 break;
482 }
483 case SCH_PIN_T:
484 {
485 SCH_PIN* pin = static_cast<SCH_PIN*>( aItem );
486 addAnchor( pin->GetPosition(), SNAPPABLE | ORIGIN, aItem );
487 break;
488 }
489
490 default:
491 break;
492 }
493
494 // Don't add anchors for graphic lines unless we're including text,
495 // they may be on a non-connectable grid
496 if( aItem->Type() == SCH_LINE_T && ( aIncludeText || !isGraphicLine ) )
497 {
498 SCH_LINE* line = static_cast<SCH_LINE*>( aItem );
499 VECTOR2I pt = Align( aRefPos );
500
501 if( line->GetStartPoint().x == line->GetEndPoint().x )
502 {
503 VECTOR2I possible( line->GetStartPoint().x, pt.y );
504
505 if( TestSegmentHit( possible, line->GetStartPoint(), line->GetEndPoint(), 0 ) )
506 addAnchor( possible, SNAPPABLE | VERTICAL, aItem );
507 }
508 else if( line->GetStartPoint().y == line->GetEndPoint().y )
509 {
510 VECTOR2I possible( pt.x, line->GetStartPoint().y );
511
512 if( TestSegmentHit( possible, line->GetStartPoint(), line->GetEndPoint(), 0 ) )
513 addAnchor( possible, SNAPPABLE | HORIZONTAL, aItem );
514 }
515 }
516}
517
518
520 GRID_HELPER_GRIDS aGrid )
521{
522 double minDist = std::numeric_limits<double>::max();
523 ANCHOR* best = nullptr;
524
525 for( ANCHOR& a : m_anchors )
526 {
527 if( ( aFlags & a.flags ) != aFlags )
528 continue;
529
530 // A "virtual" anchor with no real items associated shouldn't be filtered out
531 if( !a.items.empty() )
532 {
533 // Filter using the first item
534 SCH_ITEM* item = static_cast<SCH_ITEM*>( a.items[0] );
535
536 if( aGrid == GRID_CONNECTABLE && !item->IsConnectable() )
537 continue;
538 else if( aGrid == GRID_GRAPHICS && item->IsConnectable() )
539 continue;
540 }
541
542 double dist = a.Distance( aPos );
543
544 if( dist < minDist )
545 {
546 minDist = dist;
547 best = &a;
548 }
549 }
550
551 return best;
552}
constexpr EDA_IU_SCALE schIUScale
Definition: base_units.h:110
WINDOW_SETTINGS m_Window
Definition: app_settings.h:194
A base class for most all the KiCad significant classes used in schematics and boards.
Definition: eda_item.h:89
virtual VECTOR2I GetPosition() const
Definition: eda_item.h:243
KICAD_T Type() const
Returns the type of object.
Definition: eda_item.h:101
GRID_HELPER_GRIDS GetSelectionGrid(const SELECTION &aItem) const override
Gets the coarsest grid that applies to a selecion of items.
~EE_GRID_HELPER() override
GRID_HELPER_GRIDS GetItemGrid(const EDA_ITEM *aItem) const override
Gets the coarsest grid that applies to an item.
VECTOR2I BestDragOrigin(const VECTOR2I &aMousePos, GRID_HELPER_GRIDS aGrid, const EE_SELECTION &aItems)
std::set< SCH_ITEM * > queryVisible(const BOX2I &aArea, const EE_SELECTION &aSkipList) const
VECTOR2I BestSnapAnchor(const VECTOR2I &aOrigin, GRID_HELPER_GRIDS aGrid, SCH_ITEM *aSkip)
ANCHOR * nearestAnchor(const VECTOR2I &aPos, int aFlags, GRID_HELPER_GRIDS aGrid)
VECTOR2D GetGridSize(GRID_HELPER_GRIDS aGrid) const override
Return the size of the specified grid.
SCH_ITEM * GetSnapped() const
Function GetSnapped If the EE_GRID_HELPER has highlighted a snap point (target shown),...
EE_GRID_HELPER(TOOL_MANAGER *aToolMgr)
void computeAnchors(SCH_ITEM *aItem, const VECTOR2I &aRefPos, bool aFrom=false, bool aIncludeText=false)
Insert the local anchor points in to the grid helper for the specified schematic item,...
void addAnchor(const VECTOR2I &aPos, int aFlags, EDA_ITEM *aItem, int aPointTypes=POINT_TYPE::PT_NONE)
Definition: grid_helper.h:176
SNAP_MANAGER & getSnapManager()
Definition: grid_helper.h:206
VECTOR2I m_skipPoint
Definition: grid_helper.h:229
void showConstructionGeometry(bool aShow)
Definition: grid_helper.cpp:99
TOOL_MANAGER * m_toolMgr
Definition: grid_helper.h:219
bool m_enableSnapLine
Definition: grid_helper.h:226
bool m_enableSnap
Definition: grid_helper.h:224
bool canUseGrid() const
Check whether it is possible to use the grid – this depends both on local grid helper settings and gl...
void clearAnchors()
Definition: grid_helper.h:189
std::optional< ANCHOR > m_snapItem
Definition: grid_helper.h:227
KIGFX::ANCHOR_DEBUG * enableAndGetAnchorDebug()
Enable the anchor debug if permitted and return it.
Definition: grid_helper.cpp:85
KIGFX::SNAP_INDICATOR m_viewSnapPoint
Definition: grid_helper.h:231
virtual VECTOR2I Align(const VECTOR2I &aPoint, GRID_HELPER_GRIDS aGrid) const
Definition: grid_helper.h:65
KIGFX::ORIGIN_VIEWITEM m_viewAxis
Definition: grid_helper.h:232
std::vector< ANCHOR > m_anchors
Definition: grid_helper.h:217
View item to draw debug items for anchors.
Definition: anchor_debug.h:45
A color representation with 4 components: red, green, blue, alpha.
Definition: color4d.h:104
const VECTOR2D & GetGridSize() const
Return the grid size.
double GetWorldScale() const
Get the world scale.
void SetPosition(const VECTOR2I &aPosition) override
void SetColor(const KIGFX::COLOR4D &aColor)
void SetStyle(MARKER_STYLE aStyle)
void SetSize(int aSize)
void SetDrawAtZero(bool aDrawFlag)
Set the draw at zero flag.
virtual double ViewGetLOD(int aLayer, VIEW *aView) const
Return the level of detail (LOD) of the item.
Definition: view_item.h:142
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
Definition: view.h:68
double GetScale() const
Definition: view.h:273
virtual void Add(VIEW_ITEM *aItem, int aDrawPriority=-1)
Add a VIEW_ITEM to the view.
Definition: view.cpp:299
virtual void Remove(VIEW_ITEM *aItem)
Remove a VIEW_ITEM from the view.
Definition: view.cpp:334
int Query(const BOX2I &aRect, std::vector< LAYER_ITEM_PAIR > &aResult) const
Find all visible items that touch or are within the rectangle aRect.
Definition: view.cpp:412
virtual void Update(const VIEW_ITEM *aItem, int aUpdateFlags) const
For dynamic VIEWs, inform the associated VIEW that the graphical representation of this item has chan...
Definition: view.cpp:1669
GAL * GetGAL() const
Return the #GAL this view is using to draw graphical primitives.
Definition: view.h:199
std::pair< VIEW_ITEM *, int > LAYER_ITEM_PAIR
Definition: view.h:72
bool IsVisible(const VIEW_ITEM *aItem) const
Return information if the item is visible (or not).
Definition: view.cpp:1639
void SetVisible(VIEW_ITEM *aItem, bool aIsVisible=true)
Set the item visibility.
Definition: view.cpp:1596
Base class for any item which can be embedded within the SCHEMATIC container class,...
Definition: sch_item.h:166
virtual bool IsConnectable() const
Definition: sch_item.h:449
virtual std::vector< VECTOR2I > GetConnectionPoints() const
Add all the connection points for this item to aPoints.
Definition: sch_item.h:464
Segment description base class to describe items which have 2 end points (track, wire,...
Definition: sch_line.h:41
VECTOR2I GetEndPoint() const
Definition: sch_line.h:141
VECTOR2I GetStartPoint() const
Definition: sch_line.h:136
virtual void Add(EDA_ITEM *aItem)
Definition: selection.cpp:42
EDA_ITEM * Front() const
Definition: selection.h:172
A class that manages the geometry of a "snap line".
void ClearSnapLine()
Clear the snap line origin and end points.
void SetSnapLineOrigin(const VECTOR2I &aOrigin)
The snap point is a special point that is located at the last point the cursor snapped to.
void SetSnapLineEnd(const OPT_VECTOR2I &aSnapPoint)
Set the end point of the snap line.
const OPT_VECTOR2I & GetSnapLineOrigin() const
SNAP_LINE_MANAGER & GetSnapLineManager()
Master controller class:
Definition: tool_manager.h:62
APP_SETTINGS_BASE * GetSettings() const
Definition: tool_manager.h:400
KIGFX::VIEW * GetView() const
Definition: tool_manager.h:391
T EuclideanNorm() const
Compute the Euclidean norm of the vector, which is defined as sqrt(x ** 2 + y ** 2).
Definition: vector2d.h:283
#define SNAP_RANGE
GRID_HELPER_GRIDS
Definition: grid_helper.h:42
@ GRID_TEXT
Definition: grid_helper.h:49
@ GRID_CURRENT
Definition: grid_helper.h:44
@ GRID_GRAPHICS
Definition: grid_helper.h:50
@ GRID_CONNECTABLE
Definition: grid_helper.h:46
@ GRID_WIRES
Definition: grid_helper.h:47
@ LAYER_SCHEMATIC_ANCHOR
Definition: layer_ids.h:402
This file contains miscellaneous commonly used macros and functions.
#define KI_FALLTHROUGH
The KI_FALLTHROUGH macro is to be used when switch statement cases should purposely fallthrough from ...
Definition: macros.h:83
@ GEOMETRY
Position or shape has changed.
Definition: view_item.h:54
EDA_ANGLE abs(const EDA_ANGLE &aAngle)
Definition: eda_angle.h:390
std::optional< VECTOR2I > OPT_VECTOR2I
Definition: seg.h:39
const double IU_PER_MILS
Definition: base_units.h:77
double Distance(const VECTOR2I &aP) const
Definition: grid_helper.h:165
GRID_SETTINGS grid
Definition: app_settings.h:81
bool TestSegmentHit(const VECTOR2I &aRefPoint, const VECTOR2I &aStart, const VECTOR2I &aEnd, int aDist)
Test if aRefPoint is with aDistance on the line defined by aStart and aEnd.
Definition: trigo.cpp:175
@ SCH_TABLE_T
Definition: typeinfo.h:165
@ SCH_LINE_T
Definition: typeinfo.h:163
@ LIB_SYMBOL_T
Definition: typeinfo.h:148
@ SCH_NO_CONNECT_T
Definition: typeinfo.h:160
@ SCH_SYMBOL_T
Definition: typeinfo.h:172
@ SCH_TABLECELL_T
Definition: typeinfo.h:166
@ SCH_FIELD_T
Definition: typeinfo.h:150
@ SCH_DIRECTIVE_LABEL_T
Definition: typeinfo.h:171
@ SCH_LABEL_T
Definition: typeinfo.h:167
@ SCH_SHEET_T
Definition: typeinfo.h:174
@ SCH_SHAPE_T
Definition: typeinfo.h:149
@ SCH_RULE_AREA_T
Definition: typeinfo.h:170
@ SCH_HIER_LABEL_T
Definition: typeinfo.h:169
@ SCH_BUS_BUS_ENTRY_T
Definition: typeinfo.h:162
@ SCH_SHEET_PIN_T
Definition: typeinfo.h:173
@ SCH_TEXT_T
Definition: typeinfo.h:151
@ SCH_BUS_WIRE_ENTRY_T
Definition: typeinfo.h:161
@ SCH_BITMAP_T
Definition: typeinfo.h:164
@ SCH_TEXTBOX_T
Definition: typeinfo.h:152
@ SCH_GLOBAL_LABEL_T
Definition: typeinfo.h:168
@ SCH_JUNCTION_T
Definition: typeinfo.h:159
@ SCH_PIN_T
Definition: typeinfo.h:153
VECTOR2< int32_t > VECTOR2I
Definition: vector2d.h:691