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