KiCad PCB EDA Suite
Loading...
Searching...
No Matches
eda_item.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) 2015 Jean-Pierre Charras, [email protected]
5 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <https://www.gnu.org/licenses/>.
19 */
20
21#include <algorithm>
22
23#include <bitmaps.h>
24#include <eda_item.h>
25#include <eda_group.h>
26#include <trace_helpers.h>
27#include <trigo.h>
28#include <i18n_utility.h>
29#include <wx/log.h>
30
31#include <wx/fdrepdlg.h>
32#include <wx/regex.h>
33#include <eda_pattern_match.h>
34#include <properties/property.h>
36
37EDA_ITEM::EDA_ITEM( EDA_ITEM* parent, KICAD_T idType, bool isSCH_ITEM, bool isBOARD_ITEM ) :
38 KIGFX::VIEW_ITEM( isSCH_ITEM, isBOARD_ITEM ),
39 m_structType( idType ),
40 m_flags( 0 ),
41 m_parent( parent ),
42 m_group( nullptr ),
43 m_isRollover( false ),
44 m_forceVisible( false )
45{ }
46
47
48EDA_ITEM::EDA_ITEM( KICAD_T idType, bool isSCH_ITEM, bool isBOARD_ITEM ) :
49 KIGFX::VIEW_ITEM( isSCH_ITEM, isBOARD_ITEM ),
50 m_structType( idType ),
51 m_flags( 0 ),
52 m_parent( nullptr ),
53 m_group( nullptr ),
54 m_isRollover( false ),
55 m_forceVisible( false )
56{ }
57
58
60 KIGFX::VIEW_ITEM( base.IsSCH_ITEM(), base.IsBOARD_ITEM() ),
61 m_Uuid( base.m_Uuid ),
63 m_flags( base.m_flags ),
64 m_parent( base.m_parent ),
65 m_group( base.m_group ),
66 m_isRollover( false ),
68{
70}
71
72
74{
75 EDA_ITEM* parent = GetParent();
76
77 while( parent )
78 {
79 if( parent->Type() == aType )
80 return parent;
81 else
82 parent = parent->GetParent();
83 }
84
85 return nullptr;
86}
87
88
90{
91 wxCHECK( aParent != this, /* void */ );
92
93 m_parent = aParent;
94}
95
96
98{
100 return group->AsEdaItem()->m_Uuid;
101 else
102 return niluuid;
103}
104
105
107{
108 // Walk up via both the parent-item and parent-group chains so that child items (sheet pins,
109 // symbol pins, fields) whose logical owner is in a selected group are also recognised as
110 // moving with that group.
111 for( const EDA_ITEM* item = this; item; item = item->GetParent() )
112 {
113 for( EDA_GROUP* group = item->GetParentGroup(); group;
114 group = group->AsEdaItem()->GetParentGroup() )
115 {
116 if( group->AsEdaItem()->IsSelected() )
117 return true;
118 }
119 }
120
121 return false;
122}
123
124
126{
128
129 // If this a child object, then the parent modification state also needs to be set.
130 if( m_parent )
131 m_parent->SetModified();
132}
133
134
136{
137 // return a zero-sized box per default. derived classes should override
138 // this
139 return BOX2I( VECTOR2I( 0, 0 ), VECTOR2I( 0, 0 ) );
140}
141
142
144{
145 wxCHECK_MSG( false, nullptr, wxT( "Clone not implemented in derived class " ) + GetClass() +
146 wxT( ". Bad programmer!" ) );
147}
148
149
150// see base_struct.h
151// many classes inherit this method, be careful:
152INSPECT_RESULT EDA_ITEM::Visit( INSPECTOR inspector, void* testData,
153 const std::vector<KICAD_T>& aScanTypes )
154{
155#if 0 && defined(DEBUG)
156 std::cout << GetClass().mb_str() << ' ';
157#endif
158
159 if( IsType( aScanTypes ) )
160 {
161 if( INSPECT_RESULT::QUIT == inspector( this, testData ) )
163 }
164
166}
167
168
169wxString EDA_ITEM::GetItemDescription( UNITS_PROVIDER* aUnitsProvider, bool aFull ) const
170{
171 wxFAIL_MSG( wxT( "GetItemDescription() was not overridden for item type " ) + GetClass() );
172
173 return wxString( wxT( "Undefined item description for " ) + GetClass() );
174}
175
176
177bool isWordChar( const wxUniChar& c )
178{
179 return wxIsalnum( c ) || c == '_';
180}
181
182
183bool EDA_ITEM::Matches( const wxString& aText, const EDA_SEARCH_DATA& aSearchData ) const
184{
185 wxString text = aText;
186 wxString searchText = aSearchData.findString;
187
188 // Don't match if searching for replaceable item and the item doesn't support text replace.
189 if( aSearchData.searchAndReplace && !IsReplaceable() )
190 return false;
191
192 if( !aSearchData.matchCase )
193 {
194 text.MakeUpper();
195 searchText.MakeUpper();
196 }
197
198 auto isWordChar =
199 []( const wxUniChar& c )
200 {
201 return wxIsalnum( c ) || c == '_';
202 };
203
205 {
206 EDA_COMBINED_MATCHER matcher( searchText, CTX_SEARCH );
207
208 return matcher.Find( text );
209 }
210 else if( aSearchData.matchMode == EDA_SEARCH_MATCH_MODE::WHOLEWORD )
211 {
212 int ii = 0;
213
214 while( ii < (int) text.length() )
215 {
216 int next = text.find( searchText, ii );
217
218 if( next == wxNOT_FOUND )
219 return false;
220
221 ii = next;
222 next += searchText.length();
223
224 bool startOK = ( ii == 0 || !isWordChar( text.GetChar( ii - 1 ) ) );
225 bool endOK = ( next == (int) text.length() || !isWordChar( text.GetChar( next ) ) );
226
227 if( startOK && endOK )
228 return true;
229 else
230 ii++;
231 }
232
233 return false;
234 }
235 else if( aSearchData.matchMode == EDA_SEARCH_MATCH_MODE::WILDCARD )
236 {
237 return text.Matches( searchText );
238 }
239 else if( aSearchData.matchMode == EDA_SEARCH_MATCH_MODE::REGEX )
240 {
241 if( aSearchData.regex_string != searchText || !aSearchData.regex.IsValid() )
242 {
243 int flag = aSearchData.matchCase ? 0 : wxRE_ICASE;
244 wxLogNull noLogs;
245
246 if( !aSearchData.regex.Compile( searchText, flag ) )
247 return false;
248
249 aSearchData.regex_string = searchText;
250 }
251
252 return aSearchData.regex.Matches( text );
253 }
254 else
255 {
256 return text.Find( searchText ) != wxNOT_FOUND;
257 }
258}
259
260
261bool EDA_ITEM::Replace( const EDA_SEARCH_DATA& aSearchData, wxString& aText )
262{
263 wxString text = aText;
264 wxString searchText = aSearchData.findString;
265 wxString result;
266 bool replaced = false;
267
268 if( aSearchData.matchMode == EDA_SEARCH_MATCH_MODE::REGEX )
269 {
270 if( aSearchData.regex_string != searchText || !aSearchData.regex.IsValid() )
271 {
272 int flag = aSearchData.matchCase ? 0 : wxRE_ICASE;
273 wxLogNull noLogs;
274
275 if( !aSearchData.regex.Compile( searchText, flag ) )
276 return false;
277
278 aSearchData.regex_string = searchText;
279 }
280
281 if( !aSearchData.regex.Replace( &text, aSearchData.replaceString ) )
282 return false;
283
284 aText = text;
285 return true;
286 }
287
288 if( !aSearchData.matchCase )
289 {
290 text = text.Upper();
291 searchText = searchText.Upper();
292 }
293
294 int ii = 0;
295
296 while( ii < (int) text.length() )
297 {
298 int next = text.find( searchText, ii );
299
300 if( next == wxNOT_FOUND )
301 {
302 result += aText.Mid( ii, wxString::npos );
303 break;
304 }
305
306 if( next > ii )
307 result += aText.Mid( ii, next - ii );
308
309 ii = next;
310 next += searchText.length();
311
312 bool startOK;
313 bool endOK;
314
316 {
317 startOK = ( ii == 0 || !isWordChar( text.GetChar( ii - 1 ) ) );
318 endOK = ( next == (int) text.length() || !isWordChar( text.GetChar( next ) ) );
319 }
320 else
321 {
322 startOK = true;
323 endOK = true;
324 }
325
326 if( startOK && endOK )
327 {
328 result += aSearchData.replaceString;
329 replaced = true;
330 ii = next;
331 }
332 else
333 {
334 result += aText.GetChar( ii );
335 ii++;
336 }
337 }
338
339 aText = result;
340 return replaced;
341}
342
343
344bool EDA_ITEM::operator<( const EDA_ITEM& aItem ) const
345{
346 wxFAIL_MSG( wxString::Format( wxT( "Less than operator not defined for item type %s." ),
347 GetClass() ) );
348
349 return false;
350}
351
352
354{
355 // do not call initVars()
356
358 m_flags = aItem.m_flags;
359 m_parent = aItem.m_parent;
360 m_group = aItem.m_group;
363
365
366 return *this;
367}
368
369
371{
372 // Basic fallback
373 return GetBoundingBox();
374}
375
376
377std::vector<int> EDA_ITEM::ViewGetLayers() const
378{
379 // Basic fallback
380 std::vector<int> layers{ 1 };
381 return layers;
382}
383
384
389
390
391#if defined( DEBUG )
392
393void EDA_ITEM::ShowDummy( std::ostream& os ) const
394{
395 // XML output:
396 wxString s = GetClass();
397
398 os << '<' << s.Lower().mb_str() << ">"
399 << " Need ::Show() override for this class "
400 << "</" << s.Lower().mb_str() << ">\n";
401}
402
403
404std::ostream& EDA_ITEM::NestedSpace( int nestLevel, std::ostream& os )
405{
406 for( int i = 0; i<nestLevel; ++i )
407 os << " ";
408
409 // number of spaces here controls indent per nest level
410
411 return os;
412}
413
414#endif
415
416
417wxString EDA_ITEM::GetTypeDesc() const
418{
419 //@see EDA_ITEM_DESC for definition of ENUM_MAP<KICAD_T>
420 wxString typeDescr = ENUM_MAP<KICAD_T>::Instance().ToString( Type() );
421
422 return wxGetTranslation( typeDescr );
423}
424
425
427{
428 return GetTypeDesc();
429}
430
431
432static struct EDA_ITEM_DESC
433{
435 {
437 .Undefined( TYPE_NOT_INIT )
438 .Map( NOT_USED, wxT( "<not used>" ) )
439 .Map( SCREEN_T, _HKI( "Screen" ) )
440 .Map( SCHEMATIC_T, _HKI( "Schematic" ) )
441
442 .Map( PCB_FOOTPRINT_T, _HKI( "Footprint" ) )
443 .Map( PCB_PAD_T, _HKI( "Pad" ) )
444 .Map( PCB_SHAPE_T, _HKI( "Graphic" ) )
445 .Map( PCB_REFERENCE_IMAGE_T, _HKI( "Reference Image" ) )
446 .Map( PCB_GENERATOR_T, _HKI( "Generator" ) )
447 .Map( PCB_FIELD_T, _HKI( "Text" ) )
448 .Map( PCB_TEXT_T, _HKI( "Text" ) )
449 .Map( PCB_TEXTBOX_T, _HKI( "Text Box" ) )
450 .Map( PCB_TABLE_T, _HKI( "Table" ) )
451 .Map( PCB_TABLECELL_T, _HKI( "Table Cell" ) )
452 .Map( PCB_TRACE_T, _HKI( "Track" ) )
453 .Map( PCB_ARC_T, _HKI( "Track" ) )
454 .Map( PCB_VIA_T, _HKI( "Via" ) )
455 .Map( PCB_MARKER_T, _HKI( "Marker" ) )
456 .Map( PCB_DIM_ALIGNED_T, _HKI( "Dimension" ) )
457 .Map( PCB_DIM_ORTHOGONAL_T, _HKI( "Dimension" ) )
458 .Map( PCB_DIM_CENTER_T, _HKI( "Dimension" ) )
459 .Map( PCB_DIM_RADIAL_T, _HKI( "Dimension" ) )
460 .Map( PCB_DIM_LEADER_T, _HKI( "Leader" ) )
461 .Map( PCB_TARGET_T, _HKI( "Target" ) )
462 .Map( PCB_POINT_T, _HKI( "Point" ) )
463 .Map( PCB_ZONE_T, _HKI( "Zone" ) )
464 .Map( PCB_ITEM_LIST_T, _HKI( "ItemList" ) )
465 .Map( PCB_NETINFO_T, _HKI( "NetInfo" ) )
466 .Map( PCB_GROUP_T, _HKI( "Group" ) )
467 .Map( PCB_BARCODE_T, _HKI( "Barcode" ) )
468
469 .Map( SCH_MARKER_T, _HKI( "Marker" ) )
470 .Map( SCH_JUNCTION_T, _HKI( "Junction" ) )
471 .Map( SCH_NO_CONNECT_T, _HKI( "No-Connect Flag" ) )
472 .Map( SCH_BUS_WIRE_ENTRY_T, _HKI( "Wire Entry" ) )
473 .Map( SCH_BUS_BUS_ENTRY_T, _HKI( "Bus Entry" ) )
474 .Map( SCH_LINE_T, _HKI( "Line" ) )
475 .Map( SCH_BITMAP_T, _HKI( "Bitmap" ) )
476 .Map( SCH_SHAPE_T, _HKI( "Graphic" ) )
477 .Map( SCH_RULE_AREA_T, _HKI( "Rule Area" ) )
478 .Map( SCH_TEXT_T, _HKI( "Text" ) )
479 .Map( SCH_TEXTBOX_T, _HKI( "Text Box" ) )
480 .Map( SCH_TABLE_T, _HKI( "Table" ) )
481 .Map( SCH_TABLECELL_T, _HKI( "Table Cell" ) )
482 .Map( SCH_LABEL_T, _HKI( "Net Label" ) )
483 .Map( SCH_DIRECTIVE_LABEL_T, _HKI( "Directive Label" ) )
484 .Map( SCH_GLOBAL_LABEL_T, _HKI( "Global Label" ) )
485 .Map( SCH_HIER_LABEL_T, _HKI( "Hierarchical Label" ) )
486 .Map( SCH_FIELD_T, _HKI( "Field" ) )
487 .Map( SCH_SYMBOL_T, _HKI( "Symbol" ) )
488 .Map( SCH_PIN_T, _HKI( "Pin" ) )
489 .Map( SCH_SHEET_PIN_T, _HKI( "Sheet Pin" ) )
490 .Map( SCH_SHEET_T, _HKI( "Sheet" ) )
491 .Map( SCH_GROUP_T, _HKI( "Group" ) )
492
493 // Synthetic search tokens don't need to be included...
494 //.Map( SCH_FIELD_LOCATE_REFERENCE_T, _HKI( "Field Locate Reference" ) )
495 //.Map( SCH_FIELD_LOCATE_VALUE_T, _HKI( "Field Locate Value" ) )
496 //.Map( SCH_FIELD_LOCATE_FOOTPRINT_T, _HKI( "Field Locate Footprint" ) )
497
498 .Map( SCH_SCREEN_T, _HKI( "SCH Screen" ) )
499
500 .Map( LIB_SYMBOL_T, _HKI( "Symbol" ) )
501
502 .Map( GERBER_LAYOUT_T, _HKI( "Gerber Layout" ) )
503 .Map( GERBER_DRAW_ITEM_T, _HKI( "Draw Item" ) )
504 .Map( GERBER_IMAGE_T, _HKI( "Image" ) );
505
508
509 propMgr.AddProperty( new PROPERTY_ENUM<EDA_ITEM, KICAD_T>( wxS( "Type" ),
512 }
514
BITMAPS
A list of all bitmap identifiers.
BOX2< VECTOR2I > BOX2I
Definition box2.h:918
bool Find(const wxString &aTerm, int &aMatchersTriggered, int &aPosition)
Look in all existing matchers, return the earliest match of any of the existing.
A set of EDA_ITEMs (i.e., without duplicates).
Definition eda_group.h:42
A base class for most all the KiCad significant classes used in schematics and boards.
Definition eda_item.h:96
EDA_ITEM & operator=(const EDA_ITEM &aItem)
Assign the members of aItem to another object.
Definition eda_item.cpp:353
virtual const BOX2I GetBoundingBox() const
Return the orthogonal bounding box of this object for display purposes.
Definition eda_item.cpp:135
wxString GetTypeDesc() const
Return a translated description of the type for this EDA_ITEM for display in user facing messages.
Definition eda_item.cpp:417
void SetFlags(EDA_ITEM_FLAGS aMask)
Definition eda_item.h:152
virtual wxString GetItemDescription(UNITS_PROVIDER *aUnitsProvider, bool aFull) const
Return a user-visible description string of this item.
Definition eda_item.cpp:169
void SetModified()
Definition eda_item.cpp:125
const KIID m_Uuid
Definition eda_item.h:531
bool m_forceVisible
Definition eda_item.h:548
virtual EDA_GROUP * GetParentGroup() const
Definition eda_item.h:114
KICAD_T Type() const
Returns the type of object.
Definition eda_item.h:108
bool operator<(const EDA_ITEM &aItem) const
Test if another item is less than this object.
Definition eda_item.cpp:344
EDA_ITEM_FLAGS m_flags
Definition eda_item.h:542
virtual std::vector< int > ViewGetLayers() const override
Return the all the layers within the VIEW the object is painted on.
Definition eda_item.cpp:377
virtual bool Matches(const EDA_SEARCH_DATA &aSearchData, void *aAuxData) const
Compare the item against the search criteria in aSearchData.
Definition eda_item.h:416
EDA_GROUP * m_group
The group this item belongs to, if any. No ownership implied.
Definition eda_item.h:544
KIID GetParentGroupId() const
Definition eda_item.cpp:97
virtual bool IsType(const std::vector< KICAD_T > &aScanTypes) const
Check whether the item is one of the listed types.
Definition eda_item.h:202
virtual INSPECT_RESULT Visit(INSPECTOR inspector, void *testData, const std::vector< KICAD_T > &aScanTypes)
May be re-implemented for each derived class in order to handle all the types given by its member dat...
Definition eda_item.cpp:152
virtual wxString GetFriendlyName() const
Definition eda_item.cpp:426
EDA_ITEM * GetParent() const
Definition eda_item.h:110
bool HasSelectedAncestorGroup() const
Definition eda_item.cpp:106
bool m_isRollover
Definition eda_item.h:547
virtual EDA_ITEM * Clone() const
Create a duplicate of this item with linked list members set to NULL.
Definition eda_item.cpp:143
virtual const BOX2I ViewBBox() const override
Return the bounding box of the item covering all its layers.
Definition eda_item.cpp:370
virtual void SetParent(EDA_ITEM *aParent)
Definition eda_item.cpp:89
EDA_ITEM * m_parent
Owner.
Definition eda_item.h:543
static bool Replace(const EDA_SEARCH_DATA &aSearchData, wxString &aText)
Perform a text replace on aText using the find and replace criteria in aSearchData on items that supp...
Definition eda_item.cpp:261
KICAD_T m_structType
Run time identification, keep private so it can never be changed after a ctor sets it.
Definition eda_item.h:539
EDA_ITEM(EDA_ITEM *parent, KICAD_T idType, bool isSCH_ITEM=false, bool isBOARD_ITEM=false)
Definition eda_item.cpp:37
virtual bool IsReplaceable() const
Override this method in any derived object that supports test find and replace.
Definition eda_item.h:454
EDA_ITEM * findParent(KICAD_T aType) const
Definition eda_item.cpp:73
virtual BITMAPS GetMenuImage() const
Return a pointer to an image to be used in menus.
Definition eda_item.cpp:385
static ENUM_MAP< T > & Instance()
Definition property.h:721
VIEW_ITEM(bool isSCH_ITEM=false, bool isBOARD_ITEM=false)
Definition view_item.h:84
bool IsSCH_ITEM() const
Definition view_item.h:97
void SetForcedTransparency(double aForcedTransparency)
Definition view_item.h:162
bool IsBOARD_ITEM() const
Definition view_item.h:98
virtual wxString GetClass() const =0
Return the class name.
double GetForcedTransparency() const
Definition view_item.h:167
Definition kiid.h:44
PROPERTY_BASE & SetIsHiddenFromPropertiesManager(bool aHide=true)
Definition property.h:319
Provide class metadata.Helper macro to map type hashes to names.
static PROPERTY_MANAGER & Instance()
PROPERTY_BASE & AddProperty(PROPERTY_BASE *aProperty, const wxString &aGroup=wxEmptyString)
Register a property.
static struct EDA_ITEM_DESC _EDA_ITEM_DESC
bool isWordChar(const wxUniChar &c)
Definition eda_item.cpp:177
INSPECT_RESULT
Definition eda_item.h:42
const INSPECTOR_FUNC & INSPECTOR
std::function passed to nested users by ref, avoids copying std::function.
Definition eda_item.h:89
#define IS_CHANGED
Item was edited, and modified.
Abstract pattern-matching tool and implementations.
@ CTX_SEARCH
Some functions to handle hotkeys in KiCad.
KIID niluuid(0)
The Cairo implementation of the graphics abstraction layer.
Definition eda_group.h:29
#define _HKI(x)
Definition page_info.cpp:40
#define NO_SETTER(owner, type)
Definition property.h:833
#define ENUM_TO_WXANY(type)
Macro to define read-only fields (no setter method available)
Definition property.h:828
#define REGISTER_TYPE(x)
CITER next(CITER it)
Definition ptree.cpp:120
EDA_SEARCH_MATCH_MODE matchMode
wxString result
Test unit parsing edge cases and error handling.
wxLogTrace helper definitions.
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
Definition typeinfo.h:71
@ SCH_GROUP_T
Definition typeinfo.h:170
@ SCH_TABLE_T
Definition typeinfo.h:162
@ PCB_SHAPE_T
class PCB_SHAPE, a segment not on copper layers
Definition typeinfo.h:81
@ PCB_DIM_ORTHOGONAL_T
class PCB_DIM_ORTHOGONAL, a linear dimension constrained to x/y
Definition typeinfo.h:99
@ SCH_LINE_T
Definition typeinfo.h:160
@ LIB_SYMBOL_T
Definition typeinfo.h:145
@ SCH_NO_CONNECT_T
Definition typeinfo.h:157
@ PCB_DIM_LEADER_T
class PCB_DIM_LEADER, a leader dimension (graphic item)
Definition typeinfo.h:96
@ PCB_GENERATOR_T
class PCB_GENERATOR, generator on a layer
Definition typeinfo.h:84
@ PCB_VIA_T
class PCB_VIA, a via (like a track segment on a copper layer)
Definition typeinfo.h:90
@ TYPE_NOT_INIT
Definition typeinfo.h:74
@ SCH_SYMBOL_T
Definition typeinfo.h:169
@ PCB_DIM_CENTER_T
class PCB_DIM_CENTER, a center point marking (graphic item)
Definition typeinfo.h:97
@ PCB_GROUP_T
class PCB_GROUP, a set of BOARD_ITEMs
Definition typeinfo.h:104
@ SCH_TABLECELL_T
Definition typeinfo.h:163
@ PCB_TEXTBOX_T
class PCB_TEXTBOX, wrapped text on a layer
Definition typeinfo.h:86
@ PCB_ZONE_T
class ZONE, a copper pour area
Definition typeinfo.h:101
@ SCH_FIELD_T
Definition typeinfo.h:147
@ PCB_TEXT_T
class PCB_TEXT, text on a layer
Definition typeinfo.h:85
@ SCH_DIRECTIVE_LABEL_T
Definition typeinfo.h:168
@ SCH_LABEL_T
Definition typeinfo.h:164
@ SCH_SHEET_T
Definition typeinfo.h:172
@ PCB_REFERENCE_IMAGE_T
class PCB_REFERENCE_IMAGE, bitmap on a layer
Definition typeinfo.h:82
@ SCH_MARKER_T
Definition typeinfo.h:155
@ PCB_ITEM_LIST_T
class BOARD_ITEM_LIST, a list of board items
Definition typeinfo.h:102
@ SCH_SHAPE_T
Definition typeinfo.h:146
@ SCH_RULE_AREA_T
Definition typeinfo.h:167
@ PCB_FIELD_T
class PCB_FIELD, text associated with a footprint property
Definition typeinfo.h:83
@ GERBER_DRAW_ITEM_T
Definition typeinfo.h:207
@ SCH_HIER_LABEL_T
Definition typeinfo.h:166
@ NOT_USED
the 3d code uses this value
Definition typeinfo.h:72
@ PCB_MARKER_T
class PCB_MARKER, a marker used to show something
Definition typeinfo.h:92
@ SCH_BUS_BUS_ENTRY_T
Definition typeinfo.h:159
@ PCB_BARCODE_T
class PCB_BARCODE, a barcode (graphic item)
Definition typeinfo.h:94
@ SCH_SCREEN_T
Definition typeinfo.h:199
@ PCB_TARGET_T
class PCB_TARGET, a target (graphic item)
Definition typeinfo.h:100
@ SCHEMATIC_T
Definition typeinfo.h:201
@ PCB_TABLECELL_T
class PCB_TABLECELL, PCB_TEXTBOX for use in tables
Definition typeinfo.h:88
@ PCB_FOOTPRINT_T
class FOOTPRINT, a footprint
Definition typeinfo.h:79
@ SCH_SHEET_PIN_T
Definition typeinfo.h:171
@ PCB_DIM_ALIGNED_T
class PCB_DIM_ALIGNED, a linear dimension (graphic item)
Definition typeinfo.h:95
@ SCH_TEXT_T
Definition typeinfo.h:148
@ PCB_PAD_T
class PAD, a pad in a footprint
Definition typeinfo.h:80
@ GERBER_IMAGE_T
Definition typeinfo.h:208
@ SCH_BUS_WIRE_ENTRY_T
Definition typeinfo.h:158
@ GERBER_LAYOUT_T
Definition typeinfo.h:206
@ SCREEN_T
not really an item, used to identify a screen
Definition typeinfo.h:76
@ SCH_BITMAP_T
Definition typeinfo.h:161
@ PCB_ARC_T
class PCB_ARC, an arc track segment on a copper layer
Definition typeinfo.h:91
@ PCB_TABLE_T
class PCB_TABLE, table of PCB_TABLECELLs
Definition typeinfo.h:87
@ PCB_NETINFO_T
class NETINFO_ITEM, a description of a net
Definition typeinfo.h:103
@ SCH_TEXTBOX_T
Definition typeinfo.h:149
@ PCB_POINT_T
class PCB_POINT, a 0-dimensional point
Definition typeinfo.h:106
@ PCB_TRACE_T
class PCB_TRACK, a track segment (segment on a copper layer)
Definition typeinfo.h:89
@ PCB_DIM_RADIAL_T
class PCB_DIM_RADIAL, a radius or diameter dimension
Definition typeinfo.h:98
@ SCH_GLOBAL_LABEL_T
Definition typeinfo.h:165
@ SCH_JUNCTION_T
Definition typeinfo.h:156
@ SCH_PIN_T
Definition typeinfo.h:150
VECTOR2< int32_t > VECTOR2I
Definition vector2d.h:683