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
39EDA_ITEM::EDA_ITEM( EDA_ITEM* parent, KICAD_T idType, bool isSCH_ITEM, bool isBOARD_ITEM ) :
40 KIGFX::VIEW_ITEM( isSCH_ITEM, isBOARD_ITEM ),
41 m_structType( idType ),
42 m_flags( 0 ),
43 m_parent( parent ),
44 m_group( nullptr ),
45 m_forceVisible( false ),
46 m_isRollover( false )
47{ }
48
49
50EDA_ITEM::EDA_ITEM( KICAD_T idType, bool isSCH_ITEM, bool isBOARD_ITEM ) :
51 KIGFX::VIEW_ITEM( isSCH_ITEM, isBOARD_ITEM ),
52 m_structType( idType ),
53 m_flags( 0 ),
54 m_parent( nullptr ),
55 m_group( nullptr ),
56 m_forceVisible( false ),
57 m_isRollover( false )
58{ }
59
60
62 KIGFX::VIEW_ITEM( base.IsSCH_ITEM(), base.IsBOARD_ITEM() ),
63 m_Uuid( base.m_Uuid ),
64 m_structType( base.m_structType ),
65 m_flags( base.m_flags ),
66 m_parent( base.m_parent ),
67 m_group( base.m_group ),
68 m_forceVisible( base.m_forceVisible ),
69 m_isRollover( false )
70{
72}
73
74
76{
77 EDA_ITEM* parent = GetParent();
78
79 while( parent )
80 {
81 if( parent->Type() == aType )
82 return parent;
83 else
84 parent = parent->GetParent();
85 }
86
87 return nullptr;
88}
89
90
92{
94 return group->AsEdaItem()->m_Uuid;
95 else
96 return niluuid;
97}
98
99
101{
103
104 // If this a child object, then the parent modification state also needs to be set.
105 if( m_parent )
107}
108
109
111{
112 // return a zero-sized box per default. derived classes should override
113 // this
114 return BOX2I( VECTOR2I( 0, 0 ), VECTOR2I( 0, 0 ) );
115}
116
117
119{
120 wxCHECK_MSG( false, nullptr, wxT( "Clone not implemented in derived class " ) + GetClass() +
121 wxT( ". Bad programmer!" ) );
122}
123
124
125// see base_struct.h
126// many classes inherit this method, be careful:
127INSPECT_RESULT EDA_ITEM::Visit( INSPECTOR inspector, void* testData,
128 const std::vector<KICAD_T>& aScanTypes )
129{
130#if 0 && defined(DEBUG)
131 std::cout << GetClass().mb_str() << ' ';
132#endif
133
134 if( IsType( aScanTypes ) )
135 {
136 if( INSPECT_RESULT::QUIT == inspector( this, testData ) )
137 return INSPECT_RESULT::QUIT;
138 }
139
140 return INSPECT_RESULT::CONTINUE;
141}
142
143
144wxString EDA_ITEM::GetItemDescription( UNITS_PROVIDER* aUnitsProvider, bool aFull ) const
145{
146 wxFAIL_MSG( wxT( "GetItemDescription() was not overridden for schematic item type " ) +
147 GetClass() );
148
149 return wxString( wxT( "Undefined item description for " ) + GetClass() );
150}
151
152
153bool isWordChar( const wxUniChar& c )
154{
155 return wxIsalnum( c ) || c == '_';
156}
157
158
159bool EDA_ITEM::Matches( const wxString& aText, const EDA_SEARCH_DATA& aSearchData ) const
160{
161 wxString text = aText;
162 wxString searchText = aSearchData.findString;
163
164 // Don't match if searching for replaceable item and the item doesn't support text replace.
165 if( aSearchData.searchAndReplace && !IsReplaceable() )
166 return false;
167
168 if( !aSearchData.matchCase )
169 {
170 text.MakeUpper();
171 searchText.MakeUpper();
172 }
173
174 auto isWordChar =
175 []( const wxUniChar& c )
176 {
177 return wxIsalnum( c ) || c == '_';
178 };
179
180 if( aSearchData.matchMode == EDA_SEARCH_MATCH_MODE::PERMISSIVE )
181 {
182 EDA_COMBINED_MATCHER matcher( searchText, CTX_SEARCH );
183
184 return matcher.Find( text );
185 }
186 else if( aSearchData.matchMode == EDA_SEARCH_MATCH_MODE::WHOLEWORD )
187 {
188 int ii = 0;
189
190 while( ii < (int) text.length() )
191 {
192 int next = text.find( searchText, ii );
193
194 if( next == wxNOT_FOUND )
195 return false;
196
197 ii = next;
198 next += searchText.length();
199
200 bool startOK = ( ii == 0 || !isWordChar( text.GetChar( ii - 1 ) ) );
201 bool endOK = ( next == (int) text.length() || !isWordChar( text.GetChar( next ) ) );
202
203 if( startOK && endOK )
204 return true;
205 else
206 ii++;
207 }
208
209 return false;
210 }
211 else if( aSearchData.matchMode == EDA_SEARCH_MATCH_MODE::WILDCARD )
212 {
213 return text.Matches( searchText );
214 }
215 else 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 return aSearchData.regex.Matches( text );
229 }
230 else
231 {
232 return text.Find( searchText ) != wxNOT_FOUND;
233 }
234}
235
236
237bool EDA_ITEM::Replace( const EDA_SEARCH_DATA& aSearchData, wxString& aText )
238{
239 wxString text = aText;
240 wxString searchText = aSearchData.findString;
241 wxString result;
242 bool replaced = false;
243
244 if( aSearchData.matchMode == EDA_SEARCH_MATCH_MODE::REGEX )
245 {
246 if( aSearchData.regex_string != searchText || !aSearchData.regex.IsValid() )
247 {
248 int flag = aSearchData.matchCase ? 0 : wxRE_ICASE;
249 wxLogNull noLogs;
250
251 if( !aSearchData.regex.Compile( searchText, flag ) )
252 return false;
253
254 aSearchData.regex_string = searchText;
255 }
256
257 if( !aSearchData.regex.Replace( &text, aSearchData.replaceString ) )
258 return false;
259
260 aText = text;
261 return true;
262 }
263
264 if( !aSearchData.matchCase )
265 {
266 text = text.Upper();
267 searchText = searchText.Upper();
268 }
269
270 int ii = 0;
271
272 while( ii < (int) text.length() )
273 {
274 int next = text.find( searchText, ii );
275
276 if( next == wxNOT_FOUND )
277 {
278 result += aText.Mid( ii, wxString::npos );
279 break;
280 }
281
282 if( next > ii )
283 result += aText.Mid( ii, next - ii );
284
285 ii = next;
286 next += searchText.length();
287
288 bool startOK;
289 bool endOK;
290
291 if( aSearchData.matchMode == EDA_SEARCH_MATCH_MODE::WHOLEWORD )
292 {
293 startOK = ( ii == 0 || !isWordChar( text.GetChar( ii - 1 ) ) );
294 endOK = ( next == (int) text.length() || !isWordChar( text.GetChar( next ) ) );
295 }
296 else
297 {
298 startOK = true;
299 endOK = true;
300 }
301
302 if( startOK && endOK )
303 {
304 result += aSearchData.replaceString;
305 replaced = true;
306 ii = next;
307 }
308 else
309 {
310 result += aText.GetChar( ii );
311 ii++;
312 }
313 }
314
315 aText = result;
316 return replaced;
317}
318
319
320bool EDA_ITEM::operator<( const EDA_ITEM& aItem ) const
321{
322 wxFAIL_MSG( wxString::Format( wxT( "Less than operator not defined for item type %s." ),
323 GetClass() ) );
324
325 return false;
326}
327
328
330{
331 // do not call initVars()
332
334 m_flags = aItem.m_flags;
335 m_parent = aItem.m_parent;
336 m_group = aItem.m_group;
339
341
342 return *this;
343}
344
345
347{
348 // Basic fallback
349 return GetBoundingBox();
350}
351
352
353std::vector<int> EDA_ITEM::ViewGetLayers() const
354{
355 // Basic fallback
356 std::vector<int> layers{ 1 };
357 return layers;
358}
359
360
362{
363 return BITMAPS::dummy_item;
364}
365
366
367#if defined( DEBUG )
368
369void EDA_ITEM::ShowDummy( std::ostream& os ) const
370{
371 // XML output:
372 wxString s = GetClass();
373
374 os << '<' << s.Lower().mb_str() << ">"
375 << " Need ::Show() override for this class "
376 << "</" << s.Lower().mb_str() << ">\n";
377}
378
379
380std::ostream& EDA_ITEM::NestedSpace( int nestLevel, std::ostream& os )
381{
382 for( int i = 0; i<nestLevel; ++i )
383 os << " ";
384
385 // number of spaces here controls indent per nest level
386
387 return os;
388}
389
390#endif
391
392
393wxString EDA_ITEM::GetTypeDesc() const
394{
395 //@see EDA_ITEM_DESC for definition of ENUM_MAP<KICAD_T>
396 wxString typeDescr = ENUM_MAP<KICAD_T>::Instance().ToString( Type() );
397
398 return wxGetTranslation( typeDescr );
399}
400
401
403{
404 return GetTypeDesc();
405}
406
407
408static struct EDA_ITEM_DESC
409{
411 {
413 .Undefined( TYPE_NOT_INIT )
414 .Map( NOT_USED, wxT( "<not used>" ) )
415 .Map( SCREEN_T, _HKI( "Screen" ) )
416
417 .Map( PCB_FOOTPRINT_T, _HKI( "Footprint" ) )
418 .Map( PCB_PAD_T, _HKI( "Pad" ) )
419 .Map( PCB_SHAPE_T, _HKI( "Graphic" ) )
420 .Map( PCB_REFERENCE_IMAGE_T, _HKI( "Reference Image" ) )
421 .Map( PCB_GENERATOR_T, _HKI( "Generator" ) )
422 .Map( PCB_FIELD_T, _HKI( "Text" ) )
423 .Map( PCB_TEXT_T, _HKI( "Text" ) )
424 .Map( PCB_TEXTBOX_T, _HKI( "Text Box" ) )
425 .Map( PCB_TABLE_T, _HKI( "Table" ) )
426 .Map( PCB_TABLECELL_T, _HKI( "Table Cell" ) )
427 .Map( PCB_TRACE_T, _HKI( "Track" ) )
428 .Map( PCB_ARC_T, _HKI( "Track" ) )
429 .Map( PCB_VIA_T, _HKI( "Via" ) )
430 .Map( PCB_MARKER_T, _HKI( "Marker" ) )
431 .Map( PCB_DIM_ALIGNED_T, _HKI( "Dimension" ) )
432 .Map( PCB_DIM_ORTHOGONAL_T, _HKI( "Dimension" ) )
433 .Map( PCB_DIM_CENTER_T, _HKI( "Dimension" ) )
434 .Map( PCB_DIM_RADIAL_T, _HKI( "Dimension" ) )
435 .Map( PCB_DIM_LEADER_T, _HKI( "Leader" ) )
436 .Map( PCB_TARGET_T, _HKI( "Target" ) )
437 .Map( PCB_ZONE_T, _HKI( "Zone" ) )
438 .Map( PCB_ITEM_LIST_T, _HKI( "ItemList" ) )
439 .Map( PCB_NETINFO_T, _HKI( "NetInfo" ) )
440 .Map( PCB_GROUP_T, _HKI( "Group" ) )
441
442 .Map( SCH_MARKER_T, _HKI( "Marker" ) )
443 .Map( SCH_JUNCTION_T, _HKI( "Junction" ) )
444 .Map( SCH_NO_CONNECT_T, _HKI( "No-Connect Flag" ) )
445 .Map( SCH_BUS_WIRE_ENTRY_T, _HKI( "Wire Entry" ) )
446 .Map( SCH_BUS_BUS_ENTRY_T, _HKI( "Bus Entry" ) )
447 .Map( SCH_LINE_T, _HKI( "Line" ) )
448 .Map( SCH_BITMAP_T, _HKI( "Bitmap" ) )
449 .Map( SCH_SHAPE_T, _HKI( "Graphic" ) )
450 .Map( SCH_RULE_AREA_T, _HKI( "Rule Area" ) )
451 .Map( SCH_TEXT_T, _HKI( "Text" ) )
452 .Map( SCH_TEXTBOX_T, _HKI( "Text Box" ) )
453 .Map( SCH_TABLE_T, _HKI( "Table" ) )
454 .Map( SCH_TABLECELL_T, _HKI( "Table Cell" ) )
455 .Map( SCH_LABEL_T, _HKI( "Net Label" ) )
456 .Map( SCH_DIRECTIVE_LABEL_T, _HKI( "Directive Label" ) )
457 .Map( SCH_GLOBAL_LABEL_T, _HKI( "Global Label" ) )
458 .Map( SCH_HIER_LABEL_T, _HKI( "Hierarchical Label" ) )
459 .Map( SCH_FIELD_T, _HKI( "Field" ) )
460 .Map( SCH_SYMBOL_T, _HKI( "Symbol" ) )
461 .Map( SCH_PIN_T, _HKI( "Pin" ) )
462 .Map( SCH_SHEET_PIN_T, _HKI( "Sheet Pin" ) )
463 .Map( SCH_SHEET_T, _HKI( "Sheet" ) )
464 .Map( SCH_GROUP_T, _HKI( "Group" ) )
465
466 // Synthetic search tokens don't need to be included...
467 //.Map( SCH_FIELD_LOCATE_REFERENCE_T, _HKI( "Field Locate Reference" ) )
468 //.Map( SCH_FIELD_LOCATE_VALUE_T, _HKI( "Field Locate Value" ) )
469 //.Map( SCH_FIELD_LOCATE_FOOTPRINT_T, _HKI( "Field Locate Footprint" ) )
470
471 .Map( SCH_SCREEN_T, _HKI( "SCH Screen" ) )
472
473 .Map( LIB_SYMBOL_T, _HKI( "Symbol" ) )
474
475 .Map( GERBER_LAYOUT_T, _HKI( "Gerber Layout" ) )
476 .Map( GERBER_DRAW_ITEM_T, _HKI( "Draw Item" ) )
477 .Map( GERBER_IMAGE_T, _HKI( "Image" ) );
478
481
482 propMgr.AddProperty( new PROPERTY_ENUM<EDA_ITEM, KICAD_T>( wxS( "Type" ),
485 }
487
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 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:97
EDA_ITEM & operator=(const EDA_ITEM &aItem)
Assign the members of aItem to another object.
Definition: eda_item.cpp:329
virtual const BOX2I GetBoundingBox() const
Return the orthogonal bounding box of this object for display purposes.
Definition: eda_item.cpp:110
wxString GetTypeDesc() const
Return a translated description of the type for this EDA_ITEM for display in user facing messages.
Definition: eda_item.cpp:393
void SetFlags(EDA_ITEM_FLAGS aMask)
Definition: eda_item.h:141
virtual wxString GetItemDescription(UNITS_PROVIDER *aUnitsProvider, bool aFull) const
Return a user-visible description string of this item.
Definition: eda_item.cpp:144
void SetModified()
Definition: eda_item.cpp:100
bool m_forceVisible
Definition: eda_item.h:521
virtual EDA_GROUP * GetParentGroup() const
Definition: eda_item.h:115
KICAD_T Type() const
Returns the type of object.
Definition: eda_item.h:109
bool operator<(const EDA_ITEM &aItem) const
Test if another item is less than this object.
Definition: eda_item.cpp:320
EDA_ITEM_FLAGS m_flags
Definition: eda_item.h:518
virtual std::vector< int > ViewGetLayers() const override
Return the all the layers within the VIEW the object is painted on.
Definition: eda_item.cpp:353
virtual bool Matches(const EDA_SEARCH_DATA &aSearchData, void *aAuxData) const
Compare the item against the search criteria in aSearchData.
Definition: eda_item.h:393
EDA_GROUP * m_group
The group this item belongs to, if any. No ownership implied.
Definition: eda_item.h:520
KIID GetParentGroupId() const
Definition: eda_item.cpp:91
virtual bool IsType(const std::vector< KICAD_T > &aScanTypes) const
Check whether the item is one of the listed types.
Definition: eda_item.h:191
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:127
virtual wxString GetFriendlyName() const
Definition: eda_item.cpp:402
EDA_ITEM * GetParent() const
Definition: eda_item.h:111
bool m_isRollover
Definition: eda_item.h:522
virtual EDA_ITEM * Clone() const
Create a duplicate of this item with linked list members set to NULL.
Definition: eda_item.cpp:118
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:346
EDA_ITEM * m_parent
Owner.
Definition: eda_item.h:519
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:237
KICAD_T m_structType
Run time identification, keep private so it can never be changed after a ctor sets it.
Definition: eda_item.h:515
EDA_ITEM(EDA_ITEM *parent, KICAD_T idType, bool isSCH_ITEM=false, bool isBOARD_ITEM=false)
Definition: eda_item.cpp:39
virtual bool IsReplaceable() const
Override this method in any derived object that supports test find and replace.
Definition: eda_item.h:431
EDA_ITEM * findParent(KICAD_T aType) const
Definition: eda_item.cpp:75
virtual BITMAPS GetMenuImage() const
Return a pointer to an image to be used in menus.
Definition: eda_item.cpp:361
static ENUM_MAP< T > & Instance()
Definition: property.h:681
void SetForcedTransparency(double aForcedTransparency)
Definition: view_item.h:160
double GetForcedTransparency() const
Definition: view_item.h:165
Definition: kiid.h:49
PROPERTY_BASE & SetIsHiddenFromPropertiesManager(bool aHide=true)
Definition: property.h:301
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:153
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:90
#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 NO_SETTER(owner, type)
Definition: property.h:792
#define ENUM_TO_WXANY(type)
Macro to define read-only fields (no setter method available)
Definition: property.h:783
#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_GROUP_T
Definition: typeinfo.h:173
@ 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:175
@ 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:210
@ 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:202
@ 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:174
@ 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:211
@ SCH_BUS_WIRE_ENTRY_T
Definition: typeinfo.h:161
@ GERBER_LAYOUT_T
Definition: typeinfo.h:209
@ 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