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{
113
114 // If this a child object, then the parent modification state also needs to be set.
115 if( m_parent )
116 m_parent->SetModified();
117}
118
119
121{
122 // return a zero-sized box per default. derived classes should override
123 // this
124 return BOX2I( VECTOR2I( 0, 0 ), VECTOR2I( 0, 0 ) );
125}
126
127
129{
130 wxCHECK_MSG( false, nullptr, wxT( "Clone not implemented in derived class " ) + GetClass() +
131 wxT( ". Bad programmer!" ) );
132}
133
134
135// see base_struct.h
136// many classes inherit this method, be careful:
137INSPECT_RESULT EDA_ITEM::Visit( INSPECTOR inspector, void* testData,
138 const std::vector<KICAD_T>& aScanTypes )
139{
140#if 0 && defined(DEBUG)
141 std::cout << GetClass().mb_str() << ' ';
142#endif
143
144 if( IsType( aScanTypes ) )
145 {
146 if( INSPECT_RESULT::QUIT == inspector( this, testData ) )
148 }
149
151}
152
153
154wxString EDA_ITEM::GetItemDescription( UNITS_PROVIDER* aUnitsProvider, bool aFull ) const
155{
156 wxFAIL_MSG( wxT( "GetItemDescription() was not overridden for item type " ) + GetClass() );
157
158 return wxString( wxT( "Undefined item description for " ) + GetClass() );
159}
160
161
162bool isWordChar( const wxUniChar& c )
163{
164 return wxIsalnum( c ) || c == '_';
165}
166
167
168bool EDA_ITEM::Matches( const wxString& aText, const EDA_SEARCH_DATA& aSearchData ) const
169{
170 wxString text = aText;
171 wxString searchText = aSearchData.findString;
172
173 // Don't match if searching for replaceable item and the item doesn't support text replace.
174 if( aSearchData.searchAndReplace && !IsReplaceable() )
175 return false;
176
177 if( !aSearchData.matchCase )
178 {
179 text.MakeUpper();
180 searchText.MakeUpper();
181 }
182
183 auto isWordChar =
184 []( const wxUniChar& c )
185 {
186 return wxIsalnum( c ) || c == '_';
187 };
188
190 {
191 EDA_COMBINED_MATCHER matcher( searchText, CTX_SEARCH );
192
193 return matcher.Find( text );
194 }
195 else if( aSearchData.matchMode == EDA_SEARCH_MATCH_MODE::WHOLEWORD )
196 {
197 int ii = 0;
198
199 while( ii < (int) text.length() )
200 {
201 int next = text.find( searchText, ii );
202
203 if( next == wxNOT_FOUND )
204 return false;
205
206 ii = next;
207 next += searchText.length();
208
209 bool startOK = ( ii == 0 || !isWordChar( text.GetChar( ii - 1 ) ) );
210 bool endOK = ( next == (int) text.length() || !isWordChar( text.GetChar( next ) ) );
211
212 if( startOK && endOK )
213 return true;
214 else
215 ii++;
216 }
217
218 return false;
219 }
220 else if( aSearchData.matchMode == EDA_SEARCH_MATCH_MODE::WILDCARD )
221 {
222 return text.Matches( searchText );
223 }
224 else if( aSearchData.matchMode == EDA_SEARCH_MATCH_MODE::REGEX )
225 {
226 if( aSearchData.regex_string != searchText || !aSearchData.regex.IsValid() )
227 {
228 int flag = aSearchData.matchCase ? 0 : wxRE_ICASE;
229 wxLogNull noLogs;
230
231 if( !aSearchData.regex.Compile( searchText, flag ) )
232 return false;
233
234 aSearchData.regex_string = searchText;
235 }
236
237 return aSearchData.regex.Matches( text );
238 }
239 else
240 {
241 return text.Find( searchText ) != wxNOT_FOUND;
242 }
243}
244
245
246bool EDA_ITEM::Replace( const EDA_SEARCH_DATA& aSearchData, wxString& aText )
247{
248 wxString text = aText;
249 wxString searchText = aSearchData.findString;
250 wxString result;
251 bool replaced = false;
252
253 if( aSearchData.matchMode == EDA_SEARCH_MATCH_MODE::REGEX )
254 {
255 if( aSearchData.regex_string != searchText || !aSearchData.regex.IsValid() )
256 {
257 int flag = aSearchData.matchCase ? 0 : wxRE_ICASE;
258 wxLogNull noLogs;
259
260 if( !aSearchData.regex.Compile( searchText, flag ) )
261 return false;
262
263 aSearchData.regex_string = searchText;
264 }
265
266 if( !aSearchData.regex.Replace( &text, aSearchData.replaceString ) )
267 return false;
268
269 aText = text;
270 return true;
271 }
272
273 if( !aSearchData.matchCase )
274 {
275 text = text.Upper();
276 searchText = searchText.Upper();
277 }
278
279 int ii = 0;
280
281 while( ii < (int) text.length() )
282 {
283 int next = text.find( searchText, ii );
284
285 if( next == wxNOT_FOUND )
286 {
287 result += aText.Mid( ii, wxString::npos );
288 break;
289 }
290
291 if( next > ii )
292 result += aText.Mid( ii, next - ii );
293
294 ii = next;
295 next += searchText.length();
296
297 bool startOK;
298 bool endOK;
299
301 {
302 startOK = ( ii == 0 || !isWordChar( text.GetChar( ii - 1 ) ) );
303 endOK = ( next == (int) text.length() || !isWordChar( text.GetChar( next ) ) );
304 }
305 else
306 {
307 startOK = true;
308 endOK = true;
309 }
310
311 if( startOK && endOK )
312 {
313 result += aSearchData.replaceString;
314 replaced = true;
315 ii = next;
316 }
317 else
318 {
319 result += aText.GetChar( ii );
320 ii++;
321 }
322 }
323
324 aText = result;
325 return replaced;
326}
327
328
329bool EDA_ITEM::operator<( const EDA_ITEM& aItem ) const
330{
331 wxFAIL_MSG( wxString::Format( wxT( "Less than operator not defined for item type %s." ),
332 GetClass() ) );
333
334 return false;
335}
336
337
339{
340 // do not call initVars()
341
343 m_flags = aItem.m_flags;
344 m_parent = aItem.m_parent;
345 m_group = aItem.m_group;
348
350
351 return *this;
352}
353
354
356{
357 // Basic fallback
358 return GetBoundingBox();
359}
360
361
362std::vector<int> EDA_ITEM::ViewGetLayers() const
363{
364 // Basic fallback
365 std::vector<int> layers{ 1 };
366 return layers;
367}
368
369
374
375
376#if defined( DEBUG )
377
378void EDA_ITEM::ShowDummy( std::ostream& os ) const
379{
380 // XML output:
381 wxString s = GetClass();
382
383 os << '<' << s.Lower().mb_str() << ">"
384 << " Need ::Show() override for this class "
385 << "</" << s.Lower().mb_str() << ">\n";
386}
387
388
389std::ostream& EDA_ITEM::NestedSpace( int nestLevel, std::ostream& os )
390{
391 for( int i = 0; i<nestLevel; ++i )
392 os << " ";
393
394 // number of spaces here controls indent per nest level
395
396 return os;
397}
398
399#endif
400
401
402wxString EDA_ITEM::GetTypeDesc() const
403{
404 //@see EDA_ITEM_DESC for definition of ENUM_MAP<KICAD_T>
405 wxString typeDescr = ENUM_MAP<KICAD_T>::Instance().ToString( Type() );
406
407 return wxGetTranslation( typeDescr );
408}
409
410
412{
413 return GetTypeDesc();
414}
415
416
417static struct EDA_ITEM_DESC
418{
420 {
422 .Undefined( TYPE_NOT_INIT )
423 .Map( NOT_USED, wxT( "<not used>" ) )
424 .Map( SCREEN_T, _HKI( "Screen" ) )
425 .Map( SCHEMATIC_T, _HKI( "Schematic" ) )
426
427 .Map( PCB_FOOTPRINT_T, _HKI( "Footprint" ) )
428 .Map( PCB_PAD_T, _HKI( "Pad" ) )
429 .Map( PCB_SHAPE_T, _HKI( "Graphic" ) )
430 .Map( PCB_REFERENCE_IMAGE_T, _HKI( "Reference Image" ) )
431 .Map( PCB_GENERATOR_T, _HKI( "Generator" ) )
432 .Map( PCB_FIELD_T, _HKI( "Text" ) )
433 .Map( PCB_TEXT_T, _HKI( "Text" ) )
434 .Map( PCB_TEXTBOX_T, _HKI( "Text Box" ) )
435 .Map( PCB_TABLE_T, _HKI( "Table" ) )
436 .Map( PCB_TABLECELL_T, _HKI( "Table Cell" ) )
437 .Map( PCB_TRACE_T, _HKI( "Track" ) )
438 .Map( PCB_ARC_T, _HKI( "Track" ) )
439 .Map( PCB_VIA_T, _HKI( "Via" ) )
440 .Map( PCB_MARKER_T, _HKI( "Marker" ) )
441 .Map( PCB_DIM_ALIGNED_T, _HKI( "Dimension" ) )
442 .Map( PCB_DIM_ORTHOGONAL_T, _HKI( "Dimension" ) )
443 .Map( PCB_DIM_CENTER_T, _HKI( "Dimension" ) )
444 .Map( PCB_DIM_RADIAL_T, _HKI( "Dimension" ) )
445 .Map( PCB_DIM_LEADER_T, _HKI( "Leader" ) )
446 .Map( PCB_TARGET_T, _HKI( "Target" ) )
447 .Map( PCB_POINT_T, _HKI( "Point" ) )
448 .Map( PCB_ZONE_T, _HKI( "Zone" ) )
449 .Map( PCB_ITEM_LIST_T, _HKI( "ItemList" ) )
450 .Map( PCB_NETINFO_T, _HKI( "NetInfo" ) )
451 .Map( PCB_GROUP_T, _HKI( "Group" ) )
452 .Map( PCB_BARCODE_T, _HKI( "Barcode" ) )
453
454 .Map( SCH_MARKER_T, _HKI( "Marker" ) )
455 .Map( SCH_JUNCTION_T, _HKI( "Junction" ) )
456 .Map( SCH_NO_CONNECT_T, _HKI( "No-Connect Flag" ) )
457 .Map( SCH_BUS_WIRE_ENTRY_T, _HKI( "Wire Entry" ) )
458 .Map( SCH_BUS_BUS_ENTRY_T, _HKI( "Bus Entry" ) )
459 .Map( SCH_LINE_T, _HKI( "Line" ) )
460 .Map( SCH_BITMAP_T, _HKI( "Bitmap" ) )
461 .Map( SCH_SHAPE_T, _HKI( "Graphic" ) )
462 .Map( SCH_RULE_AREA_T, _HKI( "Rule Area" ) )
463 .Map( SCH_TEXT_T, _HKI( "Text" ) )
464 .Map( SCH_TEXTBOX_T, _HKI( "Text Box" ) )
465 .Map( SCH_TABLE_T, _HKI( "Table" ) )
466 .Map( SCH_TABLECELL_T, _HKI( "Table Cell" ) )
467 .Map( SCH_LABEL_T, _HKI( "Net Label" ) )
468 .Map( SCH_DIRECTIVE_LABEL_T, _HKI( "Directive Label" ) )
469 .Map( SCH_GLOBAL_LABEL_T, _HKI( "Global Label" ) )
470 .Map( SCH_HIER_LABEL_T, _HKI( "Hierarchical Label" ) )
471 .Map( SCH_FIELD_T, _HKI( "Field" ) )
472 .Map( SCH_SYMBOL_T, _HKI( "Symbol" ) )
473 .Map( SCH_PIN_T, _HKI( "Pin" ) )
474 .Map( SCH_SHEET_PIN_T, _HKI( "Sheet Pin" ) )
475 .Map( SCH_SHEET_T, _HKI( "Sheet" ) )
476 .Map( SCH_GROUP_T, _HKI( "Group" ) )
477
478 // Synthetic search tokens don't need to be included...
479 //.Map( SCH_FIELD_LOCATE_REFERENCE_T, _HKI( "Field Locate Reference" ) )
480 //.Map( SCH_FIELD_LOCATE_VALUE_T, _HKI( "Field Locate Value" ) )
481 //.Map( SCH_FIELD_LOCATE_FOOTPRINT_T, _HKI( "Field Locate Footprint" ) )
482
483 .Map( SCH_SCREEN_T, _HKI( "SCH Screen" ) )
484
485 .Map( LIB_SYMBOL_T, _HKI( "Symbol" ) )
486
487 .Map( GERBER_LAYOUT_T, _HKI( "Gerber Layout" ) )
488 .Map( GERBER_DRAW_ITEM_T, _HKI( "Draw Item" ) )
489 .Map( GERBER_IMAGE_T, _HKI( "Image" ) );
490
493
494 propMgr.AddProperty( new PROPERTY_ENUM<EDA_ITEM, KICAD_T>( wxS( "Type" ),
497 }
499
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:99
EDA_ITEM & operator=(const EDA_ITEM &aItem)
Assign the members of aItem to another object.
Definition eda_item.cpp:338
virtual const BOX2I GetBoundingBox() const
Return the orthogonal bounding box of this object for display purposes.
Definition eda_item.cpp:120
wxString GetTypeDesc() const
Return a translated description of the type for this EDA_ITEM for display in user facing messages.
Definition eda_item.cpp:402
void SetFlags(EDA_ITEM_FLAGS aMask)
Definition eda_item.h:148
virtual wxString GetItemDescription(UNITS_PROVIDER *aUnitsProvider, bool aFull) const
Return a user-visible description string of this item.
Definition eda_item.cpp:154
void SetModified()
Definition eda_item.cpp:110
const KIID m_Uuid
Definition eda_item.h:522
bool m_forceVisible
Definition eda_item.h:539
virtual EDA_GROUP * GetParentGroup() const
Definition eda_item.h:117
KICAD_T Type() const
Returns the type of object.
Definition eda_item.h:111
bool operator<(const EDA_ITEM &aItem) const
Test if another item is less than this object.
Definition eda_item.cpp:329
EDA_ITEM_FLAGS m_flags
Definition eda_item.h:533
virtual std::vector< int > ViewGetLayers() const override
Return the all the layers within the VIEW the object is painted on.
Definition eda_item.cpp:362
virtual bool Matches(const EDA_SEARCH_DATA &aSearchData, void *aAuxData) const
Compare the item against the search criteria in aSearchData.
Definition eda_item.h:407
EDA_GROUP * m_group
The group this item belongs to, if any. No ownership implied.
Definition eda_item.h:535
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:198
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:137
virtual wxString GetFriendlyName() const
Definition eda_item.cpp:411
EDA_ITEM * GetParent() const
Definition eda_item.h:113
bool m_isRollover
Definition eda_item.h:538
virtual EDA_ITEM * Clone() const
Create a duplicate of this item with linked list members set to NULL.
Definition eda_item.cpp:128
virtual const BOX2I ViewBBox() const override
Return the bounding box of the item covering all its layers.
Definition eda_item.cpp:355
virtual void SetParent(EDA_ITEM *aParent)
Definition eda_item.cpp:93
EDA_ITEM * m_parent
Owner.
Definition eda_item.h:534
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:246
KICAD_T m_structType
Run time identification, keep private so it can never be changed after a ctor sets it.
Definition eda_item.h:530
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:445
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:370
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:49
std::weak_ptr< LIB_SYMBOL > m_parent
Use for inherited symbols.
Definition lib_symbol.h:875
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:162
INSPECT_RESULT
Definition eda_item.h:45
const INSPECTOR_FUNC & INSPECTOR
std::function passed to nested users by ref, avoids copying std::function.
Definition eda_item.h:92
#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:78
@ SCH_GROUP_T
Definition typeinfo.h:177
@ SCH_TABLE_T
Definition typeinfo.h:169
@ PCB_SHAPE_T
class PCB_SHAPE, a segment not on copper layers
Definition typeinfo.h:88
@ PCB_DIM_ORTHOGONAL_T
class PCB_DIM_ORTHOGONAL, a linear dimension constrained to x/y
Definition typeinfo.h:106
@ SCH_LINE_T
Definition typeinfo.h:167
@ LIB_SYMBOL_T
Definition typeinfo.h:152
@ SCH_NO_CONNECT_T
Definition typeinfo.h:164
@ PCB_DIM_LEADER_T
class PCB_DIM_LEADER, a leader dimension (graphic item)
Definition typeinfo.h:103
@ PCB_GENERATOR_T
class PCB_GENERATOR, generator on a layer
Definition typeinfo.h:91
@ PCB_VIA_T
class PCB_VIA, a via (like a track segment on a copper layer)
Definition typeinfo.h:97
@ TYPE_NOT_INIT
Definition typeinfo.h:81
@ SCH_SYMBOL_T
Definition typeinfo.h:176
@ PCB_DIM_CENTER_T
class PCB_DIM_CENTER, a center point marking (graphic item)
Definition typeinfo.h:104
@ PCB_GROUP_T
class PCB_GROUP, a set of BOARD_ITEMs
Definition typeinfo.h:111
@ SCH_TABLECELL_T
Definition typeinfo.h:170
@ PCB_TEXTBOX_T
class PCB_TEXTBOX, wrapped text on a layer
Definition typeinfo.h:93
@ PCB_ZONE_T
class ZONE, a copper pour area
Definition typeinfo.h:108
@ SCH_FIELD_T
Definition typeinfo.h:154
@ PCB_TEXT_T
class PCB_TEXT, text on a layer
Definition typeinfo.h:92
@ SCH_DIRECTIVE_LABEL_T
Definition typeinfo.h:175
@ SCH_LABEL_T
Definition typeinfo.h:171
@ SCH_SHEET_T
Definition typeinfo.h:179
@ PCB_REFERENCE_IMAGE_T
class PCB_REFERENCE_IMAGE, bitmap on a layer
Definition typeinfo.h:89
@ SCH_MARKER_T
Definition typeinfo.h:162
@ PCB_ITEM_LIST_T
class BOARD_ITEM_LIST, a list of board items
Definition typeinfo.h:109
@ SCH_SHAPE_T
Definition typeinfo.h:153
@ SCH_RULE_AREA_T
Definition typeinfo.h:174
@ PCB_FIELD_T
class PCB_FIELD, text associated with a footprint property
Definition typeinfo.h:90
@ GERBER_DRAW_ITEM_T
Definition typeinfo.h:214
@ SCH_HIER_LABEL_T
Definition typeinfo.h:173
@ NOT_USED
the 3d code uses this value
Definition typeinfo.h:79
@ PCB_MARKER_T
class PCB_MARKER, a marker used to show something
Definition typeinfo.h:99
@ SCH_BUS_BUS_ENTRY_T
Definition typeinfo.h:166
@ PCB_BARCODE_T
class PCB_BARCODE, a barcode (graphic item)
Definition typeinfo.h:101
@ SCH_SCREEN_T
Definition typeinfo.h:206
@ PCB_TARGET_T
class PCB_TARGET, a target (graphic item)
Definition typeinfo.h:107
@ SCHEMATIC_T
Definition typeinfo.h:208
@ PCB_TABLECELL_T
class PCB_TABLECELL, PCB_TEXTBOX for use in tables
Definition typeinfo.h:95
@ PCB_FOOTPRINT_T
class FOOTPRINT, a footprint
Definition typeinfo.h:86
@ SCH_SHEET_PIN_T
Definition typeinfo.h:178
@ PCB_DIM_ALIGNED_T
class PCB_DIM_ALIGNED, a linear dimension (graphic item)
Definition typeinfo.h:102
@ SCH_TEXT_T
Definition typeinfo.h:155
@ PCB_PAD_T
class PAD, a pad in a footprint
Definition typeinfo.h:87
@ GERBER_IMAGE_T
Definition typeinfo.h:215
@ SCH_BUS_WIRE_ENTRY_T
Definition typeinfo.h:165
@ GERBER_LAYOUT_T
Definition typeinfo.h:213
@ SCREEN_T
not really an item, used to identify a screen
Definition typeinfo.h:83
@ SCH_BITMAP_T
Definition typeinfo.h:168
@ PCB_ARC_T
class PCB_ARC, an arc track segment on a copper layer
Definition typeinfo.h:98
@ PCB_TABLE_T
class PCB_TABLE, table of PCB_TABLECELLs
Definition typeinfo.h:94
@ PCB_NETINFO_T
class NETINFO_ITEM, a description of a net
Definition typeinfo.h:110
@ SCH_TEXTBOX_T
Definition typeinfo.h:156
@ PCB_POINT_T
class PCB_POINT, a 0-dimensional point
Definition typeinfo.h:113
@ PCB_TRACE_T
class PCB_TRACK, a track segment (segment on a copper layer)
Definition typeinfo.h:96
@ PCB_DIM_RADIAL_T
class PCB_DIM_RADIAL, a radius or diameter dimension
Definition typeinfo.h:105
@ SCH_GLOBAL_LABEL_T
Definition typeinfo.h:172
@ SCH_JUNCTION_T
Definition typeinfo.h:163
@ SCH_PIN_T
Definition typeinfo.h:157
VECTOR2< int32_t > VECTOR2I
Definition vector2d.h:695