KiCad PCB EDA Suite
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
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, jaen-pierre.charras@gipsa-lab.inpg.com
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 <trace_helpers.h>
30#include <trigo.h>
31#include <i18n_utility.h>
32#include <wx/log.h>
33
34#include <wx/fdrepdlg.h>
35#include <wx/regex.h>
36#include <eda_pattern_match.h>
37
38EDA_ITEM::EDA_ITEM( EDA_ITEM* parent, KICAD_T idType, bool isSCH_ITEM, bool isBOARD_ITEM ) :
39 KIGFX::VIEW_ITEM( isSCH_ITEM, isBOARD_ITEM ),
40 m_structType( idType ),
41 m_flags( 0 ),
42 m_parent( parent ),
43 m_forceVisible( false ),
44 m_isRollover( 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_forceVisible( false ),
54 m_isRollover( false )
55{ }
56
57
59 KIGFX::VIEW_ITEM( base.IsSCH_ITEM(), base.IsBOARD_ITEM() ),
60 m_Uuid( base.m_Uuid ),
61 m_structType( base.m_structType ),
62 m_flags( base.m_flags ),
63 m_parent( base.m_parent ),
64 m_forceVisible( base.m_forceVisible ),
65 m_isRollover( false )
66{
68}
69
70
72{
74
75 // If this a child object, then the parent modification state also needs to be set.
76 if( m_parent )
78}
79
80
82{
83 // return a zero-sized box per default. derived classes should override
84 // this
85 return BOX2I( VECTOR2I( 0, 0 ), VECTOR2I( 0, 0 ) );
86}
87
88
90{
91 wxCHECK_MSG( false, nullptr, wxT( "Clone not implemented in derived class " ) + GetClass() +
92 wxT( ". Bad programmer!" ) );
93}
94
95
96// see base_struct.h
97// many classes inherit this method, be careful:
98INSPECT_RESULT EDA_ITEM::Visit( INSPECTOR inspector, void* testData,
99 const std::vector<KICAD_T>& aScanTypes )
100{
101#if 0 && defined(DEBUG)
102 std::cout << GetClass().mb_str() << ' ';
103#endif
104
105 if( IsType( aScanTypes ) )
106 {
107 if( INSPECT_RESULT::QUIT == inspector( this, testData ) )
108 return INSPECT_RESULT::QUIT;
109 }
110
111 return INSPECT_RESULT::CONTINUE;
112}
113
114
115wxString EDA_ITEM::GetItemDescription( UNITS_PROVIDER* aUnitsProvider, bool aFull ) const
116{
117 wxFAIL_MSG( wxT( "GetItemDescription() was not overridden for schematic item type " ) +
118 GetClass() );
119
120 return wxString( wxT( "Undefined item description for " ) + GetClass() );
121}
122
123
124bool isWordChar( const wxUniChar& c )
125{
126 return wxIsalnum( c ) || c == '_';
127}
128
129
130bool EDA_ITEM::Matches( const wxString& aText, const EDA_SEARCH_DATA& aSearchData ) const
131{
132 wxString text = aText;
133 wxString searchText = aSearchData.findString;
134
135 // Don't match if searching for replaceable item and the item doesn't support text replace.
136 if( aSearchData.searchAndReplace && !IsReplaceable() )
137 return false;
138
139 if( !aSearchData.matchCase )
140 {
141 text.MakeUpper();
142 searchText.MakeUpper();
143 }
144
145 auto isWordChar =
146 []( const wxUniChar& c )
147 {
148 return wxIsalnum( c ) || c == '_';
149 };
150
151 if( aSearchData.matchMode == EDA_SEARCH_MATCH_MODE::PERMISSIVE )
152 {
153 EDA_COMBINED_MATCHER matcher( searchText, CTX_SEARCH );
154
155 return matcher.Find( text );
156 }
157 else if( aSearchData.matchMode == EDA_SEARCH_MATCH_MODE::WHOLEWORD )
158 {
159 int ii = 0;
160
161 while( ii < (int) text.length() )
162 {
163 int next = text.find( searchText, ii );
164
165 if( next == wxNOT_FOUND )
166 return false;
167
168 ii = next;
169 next += searchText.length();
170
171 bool startOK = ( ii == 0 || !isWordChar( text.GetChar( ii - 1 ) ) );
172 bool endOK = ( next == (int) text.length() || !isWordChar( text.GetChar( next ) ) );
173
174 if( startOK && endOK )
175 return true;
176 else
177 ii++;
178 }
179
180 return false;
181 }
182 else if( aSearchData.matchMode == EDA_SEARCH_MATCH_MODE::WILDCARD )
183 {
184 return text.Matches( searchText );
185 }
186 else if( aSearchData.matchMode == EDA_SEARCH_MATCH_MODE::REGEX )
187 {
188 if( aSearchData.regex_string != searchText || !aSearchData.regex.IsValid() )
189 {
190 int flag = aSearchData.matchCase ? 0 : wxRE_ICASE;
191 wxLogNull noLogs;
192
193 if( !aSearchData.regex.Compile( searchText, flag ) )
194 return false;
195
196 aSearchData.regex_string = searchText;
197 }
198
199 return aSearchData.regex.Matches( text );
200 }
201 else
202 {
203 return text.Find( searchText ) != wxNOT_FOUND;
204 }
205}
206
207
208bool EDA_ITEM::Replace( const EDA_SEARCH_DATA& aSearchData, wxString& aText )
209{
210 wxString text = aText;
211 wxString searchText = aSearchData.findString;
212 wxString result;
213 bool replaced = false;
214
215 if( aSearchData.matchMode == EDA_SEARCH_MATCH_MODE::REGEX )
216 {
217 if( aSearchData.regex_string != searchText || !aSearchData.regex.IsValid() )
218 {
219 int flag = aSearchData.matchCase ? 0 : wxRE_ICASE;
220 wxLogNull noLogs;
221
222 if( !aSearchData.regex.Compile( searchText, flag ) )
223 return false;
224
225 aSearchData.regex_string = searchText;
226 }
227
228 if( !aSearchData.regex.Replace( &text, aSearchData.replaceString ) )
229 return false;
230
231 aText = text;
232 return true;
233 }
234
235 if( !aSearchData.matchCase )
236 {
237 text = text.Upper();
238 searchText = searchText.Upper();
239 }
240
241 int ii = 0;
242
243 while( ii < (int) text.length() )
244 {
245 int next = text.find( searchText, ii );
246
247 if( next == wxNOT_FOUND )
248 {
249 result += aText.Mid( ii, wxString::npos );
250 break;
251 }
252
253 if( next > ii )
254 result += aText.Mid( ii, next - ii );
255
256 ii = next;
257 next += searchText.length();
258
259 bool startOK;
260 bool endOK;
261
262 if( aSearchData.matchMode == EDA_SEARCH_MATCH_MODE::WHOLEWORD )
263 {
264 startOK = ( ii == 0 || !isWordChar( text.GetChar( ii - 1 ) ) );
265 endOK = ( next == (int) text.length() || !isWordChar( text.GetChar( next ) ) );
266 }
267 else
268 {
269 startOK = true;
270 endOK = true;
271 }
272
273 if( startOK && endOK )
274 {
275 result += aSearchData.replaceString;
276 replaced = true;
277 ii = next;
278 }
279 else
280 {
281 result += aText.GetChar( ii );
282 ii++;
283 }
284 }
285
286 aText = result;
287 return replaced;
288}
289
290
291bool EDA_ITEM::operator<( const EDA_ITEM& aItem ) const
292{
293 wxFAIL_MSG( wxString::Format( wxT( "Less than operator not defined for item type %s." ),
294 GetClass() ) );
295
296 return false;
297}
298
299
301{
302 // do not call initVars()
303
305 m_flags = aItem.m_flags;
306 m_parent = aItem.m_parent;
308
310
311 return *this;
312}
313
314
316{
317 // Basic fallback
318 return GetBoundingBox();
319}
320
321
322std::vector<int> EDA_ITEM::ViewGetLayers() const
323{
324 // Basic fallback
325 std::vector<int> layers{ 1 };
326 return layers;
327}
328
329
331{
332 return BITMAPS::dummy_item;
333}
334
335
336#if defined( DEBUG )
337
338void EDA_ITEM::ShowDummy( std::ostream& os ) const
339{
340 // XML output:
341 wxString s = GetClass();
342
343 os << '<' << s.Lower().mb_str() << ">"
344 << " Need ::Show() override for this class "
345 << "</" << s.Lower().mb_str() << ">\n";
346}
347
348
349std::ostream& EDA_ITEM::NestedSpace( int nestLevel, std::ostream& os )
350{
351 for( int i = 0; i<nestLevel; ++i )
352 os << " ";
353
354 // number of spaces here controls indent per nest level
355
356 return os;
357}
358
359#endif
360
361
362wxString EDA_ITEM::GetTypeDesc() const
363{
364 //@see EDA_ITEM_DESC for definition of ENUM_MAP<KICAD_T>
365 wxString typeDescr = ENUM_MAP<KICAD_T>::Instance().ToString( Type() );
366
367 return wxGetTranslation( typeDescr );
368}
369
370
372{
373 return GetTypeDesc();
374}
375
376
377static struct EDA_ITEM_DESC
378{
380 {
382 .Undefined( TYPE_NOT_INIT )
383 .Map( NOT_USED, wxT( "<not used>" ) )
384 .Map( SCREEN_T, _HKI( "Screen" ) )
385
386 .Map( PCB_FOOTPRINT_T, _HKI( "Footprint" ) )
387 .Map( PCB_PAD_T, _HKI( "Pad" ) )
388 .Map( PCB_SHAPE_T, _HKI( "Graphic" ) )
389 .Map( PCB_REFERENCE_IMAGE_T, _HKI( "Reference Image" ) )
390 .Map( PCB_GENERATOR_T, _HKI( "Generator" ) )
391 .Map( PCB_FIELD_T, _HKI( "Text" ) )
392 .Map( PCB_TEXT_T, _HKI( "Text" ) )
393 .Map( PCB_TEXTBOX_T, _HKI( "Text Box" ) )
394 .Map( PCB_TABLE_T, _HKI( "Table" ) )
395 .Map( PCB_TABLECELL_T, _HKI( "Table Cell" ) )
396 .Map( PCB_TRACE_T, _HKI( "Track" ) )
397 .Map( PCB_ARC_T, _HKI( "Track" ) )
398 .Map( PCB_VIA_T, _HKI( "Via" ) )
399 .Map( PCB_MARKER_T, _HKI( "Marker" ) )
400 .Map( PCB_DIM_ALIGNED_T, _HKI( "Dimension" ) )
401 .Map( PCB_DIM_ORTHOGONAL_T, _HKI( "Dimension" ) )
402 .Map( PCB_DIM_CENTER_T, _HKI( "Dimension" ) )
403 .Map( PCB_DIM_RADIAL_T, _HKI( "Dimension" ) )
404 .Map( PCB_DIM_LEADER_T, _HKI( "Leader" ) )
405 .Map( PCB_TARGET_T, _HKI( "Target" ) )
406 .Map( PCB_ZONE_T, _HKI( "Zone" ) )
407 .Map( PCB_ITEM_LIST_T, _HKI( "ItemList" ) )
408 .Map( PCB_NETINFO_T, _HKI( "NetInfo" ) )
409 .Map( PCB_GROUP_T, _HKI( "Group" ) )
410
411 .Map( SCH_MARKER_T, _HKI( "Marker" ) )
412 .Map( SCH_JUNCTION_T, _HKI( "Junction" ) )
413 .Map( SCH_NO_CONNECT_T, _HKI( "No-Connect Flag" ) )
414 .Map( SCH_BUS_WIRE_ENTRY_T, _HKI( "Wire Entry" ) )
415 .Map( SCH_BUS_BUS_ENTRY_T, _HKI( "Bus Entry" ) )
416 .Map( SCH_LINE_T, _HKI( "Line" ) )
417 .Map( SCH_BITMAP_T, _HKI( "Bitmap" ) )
418 .Map( SCH_SHAPE_T, _HKI( "Graphic" ) )
419 .Map( SCH_RULE_AREA_T, _HKI( "Rule Area" ) )
420 .Map( SCH_TEXT_T, _HKI( "Text" ) )
421 .Map( SCH_TEXTBOX_T, _HKI( "Text Box" ) )
422 .Map( SCH_TABLE_T, _HKI( "Table" ) )
423 .Map( SCH_TABLECELL_T, _HKI( "Table Cell" ) )
424 .Map( SCH_LABEL_T, _HKI( "Net Label" ) )
425 .Map( SCH_DIRECTIVE_LABEL_T, _HKI( "Directive Label" ) )
426 .Map( SCH_GLOBAL_LABEL_T, _HKI( "Global Label" ) )
427 .Map( SCH_HIER_LABEL_T, _HKI( "Hierarchical Label" ) )
428 .Map( SCH_FIELD_T, _HKI( "Field" ) )
429 .Map( SCH_SYMBOL_T, _HKI( "Symbol" ) )
430 .Map( SCH_PIN_T, _HKI( "Pin" ) )
431 .Map( SCH_SHEET_PIN_T, _HKI( "Sheet Pin" ) )
432 .Map( SCH_SHEET_T, _HKI( "Sheet" ) )
433
434 // Synthetic search tokens don't need to be included...
435 //.Map( SCH_FIELD_LOCATE_REFERENCE_T, _HKI( "Field Locate Reference" ) )
436 //.Map( SCH_FIELD_LOCATE_VALUE_T, _HKI( "Field Locate Value" ) )
437 //.Map( SCH_FIELD_LOCATE_FOOTPRINT_T, _HKI( "Field Locate Footprint" ) )
438
439 .Map( SCH_SCREEN_T, _HKI( "SCH Screen" ) )
440
441 .Map( LIB_SYMBOL_T, _HKI( "Symbol" ) )
442
443 .Map( GERBER_LAYOUT_T, _HKI( "Gerber Layout" ) )
444 .Map( GERBER_DRAW_ITEM_T, _HKI( "Draw Item" ) )
445 .Map( GERBER_IMAGE_T, _HKI( "Image" ) );
446
449
450 propMgr.AddProperty( new PROPERTY_ENUM<EDA_ITEM, KICAD_T>( wxS( "Type" ),
453 }
455
BITMAPS
A list of all bitmap identifiers.
Definition: bitmaps_list.h:33
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 base class for most all the KiCad significant classes used in schematics and boards.
Definition: eda_item.h:95
EDA_ITEM & operator=(const EDA_ITEM &aItem)
Assign the members of aItem to another object.
Definition: eda_item.cpp:300
virtual const BOX2I GetBoundingBox() const
Return the orthogonal bounding box of this object for display purposes.
Definition: eda_item.cpp:81
wxString GetTypeDesc() const
Return a translated description of the type for this EDA_ITEM for display in user facing messages.
Definition: eda_item.cpp:362
void SetFlags(EDA_ITEM_FLAGS aMask)
Definition: eda_item.h:131
virtual wxString GetItemDescription(UNITS_PROVIDER *aUnitsProvider, bool aFull) const
Return a user-visible description string of this item.
Definition: eda_item.cpp:115
void SetModified()
Definition: eda_item.cpp:71
bool m_forceVisible
Definition: eda_item.h:507
KICAD_T Type() const
Returns the type of object.
Definition: eda_item.h:107
bool operator<(const EDA_ITEM &aItem) const
Test if another item is less than this object.
Definition: eda_item.cpp:291
EDA_ITEM_FLAGS m_flags
Definition: eda_item.h:505
virtual std::vector< int > ViewGetLayers() const override
Return the all the layers within the VIEW the object is painted on.
Definition: eda_item.cpp:322
virtual bool Matches(const EDA_SEARCH_DATA &aSearchData, void *aAuxData) const
Compare the item against the search criteria in aSearchData.
Definition: eda_item.h:382
virtual bool IsType(const std::vector< KICAD_T > &aScanTypes) const
Check whether the item is one of the listed types.
Definition: eda_item.h:180
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:98
virtual wxString GetFriendlyName() const
Definition: eda_item.cpp:371
virtual EDA_ITEM * Clone() const
Create a duplicate of this item with linked list members set to NULL.
Definition: eda_item.cpp:89
virtual wxString GetClass() const =0
Return the class name.
virtual const BOX2I ViewBBox() const override
Return the bounding box of the item covering all its layers.
Definition: eda_item.cpp:315
EDA_ITEM * m_parent
Linked list: Link (parent struct).
Definition: eda_item.h:506
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:208
KICAD_T m_structType
Run time identification, keep private so it can never be changed after a ctor sets it.
Definition: eda_item.h:502
EDA_ITEM(EDA_ITEM *parent, KICAD_T idType, bool isSCH_ITEM=false, bool isBOARD_ITEM=false)
Definition: eda_item.cpp:38
virtual bool IsReplaceable() const
Override this method in any derived object that supports test find and replace.
Definition: eda_item.h:420
virtual BITMAPS GetMenuImage() const
Return a pointer to an image to be used in menus.
Definition: eda_item.cpp:330
static ENUM_MAP< T > & Instance()
Definition: property.h:680
void SetForcedTransparency(double aForcedTransparency)
Definition: view_item.h:160
double GetForcedTransparency() const
Definition: view_item.h:165
PROPERTY_BASE & SetIsHiddenFromPropertiesManager(bool aHide=true)
Definition: property.h:300
Provide class metadata.Helper macro to map type hashes to names.
Definition: property_mgr.h:85
static PROPERTY_MANAGER & Instance()
Definition: property_mgr.h:87
PROPERTY_BASE & AddProperty(PROPERTY_BASE *aProperty, const wxString &aGroup=wxEmptyString)
Register a property.
#define _HKI(x)
static struct EDA_ITEM_DESC _EDA_ITEM_DESC
bool isWordChar(const wxUniChar &c)
Definition: eda_item.cpp:124
INSPECT_RESULT
Definition: eda_item.h:43
const INSPECTOR_FUNC & INSPECTOR
std::function passed to nested users by ref, avoids copying std::function.
Definition: eda_item.h:88
#define IS_CHANGED
Item was edited, and modified.
Abstract pattern-matching tool and implementations.
@ CTX_SEARCH
Some functions to handle hotkeys in KiCad.
The Cairo implementation of the graphics abstraction layer.
Definition: color4d.cpp:247
#define NO_SETTER(owner, type)
Definition: property.h:791
#define ENUM_TO_WXANY(type)
Macro to define read-only fields (no setter method available)
Definition: property.h:782
#define REGISTER_TYPE(x)
Definition: property_mgr.h:371
CITER next(CITER it)
Definition: ptree.cpp:124
EDA_SEARCH_MATCH_MODE matchMode
wxString regex_string
wxString replaceString
wxLogTrace helper definitions.
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
Definition: typeinfo.h:78
@ SCH_TABLE_T
Definition: typeinfo.h:165
@ 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:105
@ SCH_LINE_T
Definition: typeinfo.h:163
@ LIB_SYMBOL_T
Definition: typeinfo.h:148
@ SCH_NO_CONNECT_T
Definition: typeinfo.h:160
@ PCB_DIM_LEADER_T
class PCB_DIM_LEADER, a leader dimension (graphic item)
Definition: typeinfo.h:102
@ 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:172
@ PCB_DIM_CENTER_T
class PCB_DIM_CENTER, a center point marking (graphic item)
Definition: typeinfo.h:103
@ PCB_GROUP_T
class PCB_GROUP, a set of BOARD_ITEMs
Definition: typeinfo.h:110
@ SCH_TABLECELL_T
Definition: typeinfo.h:166
@ 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:107
@ SCH_FIELD_T
Definition: typeinfo.h:150
@ PCB_TEXT_T
class PCB_TEXT, text on a layer
Definition: typeinfo.h:92
@ SCH_DIRECTIVE_LABEL_T
Definition: typeinfo.h:171
@ SCH_LABEL_T
Definition: typeinfo.h:167
@ SCH_SHEET_T
Definition: typeinfo.h:174
@ PCB_REFERENCE_IMAGE_T
class PCB_REFERENCE_IMAGE, bitmap on a layer
Definition: typeinfo.h:89
@ SCH_MARKER_T
Definition: typeinfo.h:158
@ PCB_ITEM_LIST_T
class BOARD_ITEM_LIST, a list of board items
Definition: typeinfo.h:108
@ SCH_SHAPE_T
Definition: typeinfo.h:149
@ SCH_RULE_AREA_T
Definition: typeinfo.h:170
@ PCB_FIELD_T
class PCB_FIELD, text associated with a footprint property
Definition: typeinfo.h:90
@ GERBER_DRAW_ITEM_T
Definition: typeinfo.h:209
@ SCH_HIER_LABEL_T
Definition: typeinfo.h:169
@ 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:162
@ SCH_SCREEN_T
Definition: typeinfo.h:201
@ PCB_TARGET_T
class PCB_TARGET, a target (graphic item)
Definition: typeinfo.h:106
@ 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:173
@ PCB_DIM_ALIGNED_T
class PCB_DIM_ALIGNED, a linear dimension (graphic item)
Definition: typeinfo.h:101
@ SCH_TEXT_T
Definition: typeinfo.h:151
@ PCB_PAD_T
class PAD, a pad in a footprint
Definition: typeinfo.h:87
@ GERBER_IMAGE_T
Definition: typeinfo.h:210
@ SCH_BUS_WIRE_ENTRY_T
Definition: typeinfo.h:161
@ GERBER_LAYOUT_T
Definition: typeinfo.h:208
@ SCREEN_T
not really an item, used to identify a screen
Definition: typeinfo.h:83
@ SCH_BITMAP_T
Definition: typeinfo.h:164
@ 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:109
@ SCH_TEXTBOX_T
Definition: typeinfo.h:152
@ 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:104
@ 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:695