KiCad PCB EDA Suite
EDA_ITEM_DESC Struct Reference

Public Member Functions

 EDA_ITEM_DESC ()
 

Detailed Description

Definition at line 306 of file eda_item.cpp.

Constructor & Destructor Documentation

◆ EDA_ITEM_DESC()

EDA_ITEM_DESC::EDA_ITEM_DESC ( )
inline

Definition at line 308 of file eda_item.cpp.

309 {
311 .Undefined( TYPE_NOT_INIT )
312 .Map( NOT_USED, wxT( "<not used>" ) )
313 .Map( SCREEN_T, _HKI( "Screen" ) )
314
315 .Map( PCB_FOOTPRINT_T, _HKI( "Footprint" ) )
316 .Map( PCB_PAD_T, _HKI( "Pad" ) )
317 .Map( PCB_SHAPE_T, _HKI( "Graphic" ) )
318 .Map( PCB_BITMAP_T, _HKI( "Bitmap" ) )
319 .Map( PCB_TEXT_T, _HKI( "Text" ) )
320 .Map( PCB_TEXTBOX_T, _HKI( "Text Box" ) )
321 .Map( PCB_FP_TEXT_T, _HKI( "Text" ) )
322 .Map( PCB_FP_TEXTBOX_T, _HKI( "Text Box" ) )
323 .Map( PCB_FP_SHAPE_T, _HKI( "Graphic" ) )
324 .Map( PCB_FP_DIM_ALIGNED_T, _HKI( "Dimension" ) )
325 .Map( PCB_FP_DIM_ORTHOGONAL_T, _HKI( "Dimension" ) )
326 .Map( PCB_FP_DIM_CENTER_T, _HKI( "Dimension" ) )
327 .Map( PCB_FP_DIM_RADIAL_T, _HKI( "Dimension" ) )
328 .Map( PCB_FP_DIM_LEADER_T, _HKI( "Leader" ) )
329 .Map( PCB_FP_ZONE_T, _HKI( "Zone" ) )
330 .Map( PCB_TRACE_T, _HKI( "Track" ) )
331 .Map( PCB_ARC_T, _HKI( "Track" ) )
332 .Map( PCB_VIA_T, _HKI( "Via" ) )
333 .Map( PCB_MARKER_T, _HKI( "Marker" ) )
334 .Map( PCB_DIM_ALIGNED_T, _HKI( "Dimension" ) )
335 .Map( PCB_DIM_ORTHOGONAL_T, _HKI( "Dimension" ) )
336 .Map( PCB_DIM_CENTER_T, _HKI( "Dimension" ) )
337 .Map( PCB_DIM_RADIAL_T, _HKI( "Dimension" ) )
338 .Map( PCB_DIM_LEADER_T, _HKI( "Leader" ) )
339 .Map( PCB_TARGET_T, _HKI( "Target" ) )
340 .Map( PCB_ZONE_T, _HKI( "Zone" ) )
341 .Map( PCB_ITEM_LIST_T, _HKI( "ItemList" ) )
342 .Map( PCB_NETINFO_T, _HKI( "NetInfo" ) )
343 .Map( PCB_GROUP_T, _HKI( "Group" ) )
344
345 .Map( SCH_MARKER_T, _HKI( "Marker" ) )
346 .Map( SCH_JUNCTION_T, _HKI( "Junction" ) )
347 .Map( SCH_NO_CONNECT_T, _HKI( "No-Connect Flag" ) )
348 .Map( SCH_BUS_WIRE_ENTRY_T, _HKI( "Wire Entry" ) )
349 .Map( SCH_BUS_BUS_ENTRY_T, _HKI( "Bus Entry" ) )
350 .Map( SCH_LINE_T, _HKI( "Line" ) )
351 .Map( SCH_BITMAP_T, _HKI( "Bitmap" ) )
352 .Map( SCH_TEXT_T, _HKI( "Text" ) )
353 .Map( SCH_TEXTBOX_T, _HKI( "Text Box" ) )
354 .Map( SCH_LABEL_T, _HKI( "Net Label" ) )
355 .Map( SCH_DIRECTIVE_LABEL_T, _HKI( "Directive Label" ) )
356 .Map( SCH_GLOBAL_LABEL_T, _HKI( "Global Label" ) )
357 .Map( SCH_HIER_LABEL_T, _HKI( "Hierarchical Label" ) )
358 .Map( SCH_FIELD_T, _HKI( "Field" ) )
359 .Map( SCH_SYMBOL_T, _HKI( "Symbol" ) )
360 .Map( SCH_PIN_T, _HKI( "Pin" ) )
361 .Map( SCH_SHEET_PIN_T, _HKI( "Sheet Pin" ) )
362 .Map( SCH_SHEET_T, _HKI( "Sheet" ) )
363
364 // Synthetic search tokens don't need to be included...
365 //.Map( SCH_FIELD_LOCATE_REFERENCE_T, _HKI( "Field Locate Reference" ) )
366 //.Map( SCH_FIELD_LOCATE_VALUE_T, _HKI( "Field Locate Value" ) )
367 //.Map( SCH_FIELD_LOCATE_FOOTPRINT_T, _HKI( "Field Locate Footprint" ) )
368
369 .Map( SCH_SCREEN_T, _HKI( "SCH Screen" ) )
370
371 .Map( LIB_SYMBOL_T, _HKI( "Symbol" ) )
372 .Map( LIB_ALIAS_T, _HKI( "Alias" ) )
373 .Map( LIB_SHAPE_T, _HKI( "Graphic" ) )
374 .Map( LIB_TEXT_T, _HKI( "Text" ) )
375 .Map( LIB_TEXTBOX_T, _HKI( "Text Box" ) )
376 .Map( LIB_PIN_T, _HKI( "Pin" ) )
377 .Map( LIB_FIELD_T, _HKI( "Symbol Field" ) )
378
379 .Map( GERBER_LAYOUT_T, _HKI( "Gerber Layout" ) )
380 .Map( GERBER_DRAW_ITEM_T, _HKI( "Draw Item" ) )
381 .Map( GERBER_IMAGE_T, _HKI( "Image" ) );
382
387 }
A base class for most all the KiCad significant classes used in schematics and boards.
Definition: eda_item.h:100
KICAD_T Type() const
Returns the type of object.
Definition: eda_item.h:112
static ENUM_MAP< T > & Instance()
Definition: property.h:510
Provide class metadata.Helper macro to map type hashes to names.
Definition: property_mgr.h:63
void AddProperty(PROPERTY_BASE *aProperty)
Register a property.
static PROPERTY_MANAGER & Instance()
Definition: property_mgr.h:65
#define _HKI(x)
#define NO_SETTER(owner, type)
Definition: property.h:621
#define REGISTER_TYPE(x)
Definition: property_mgr.h:248
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
Definition: typeinfo.h:78
@ PCB_FP_DIM_ALIGNED_T
class PCB_DIM_ALIGNED, a linear dimension (graphic item)
Definition: typeinfo.h:97
@ PCB_SHAPE_T
class PCB_SHAPE, a segment not on copper layers
Definition: typeinfo.h:90
@ PCB_DIM_ORTHOGONAL_T
class PCB_DIM_ORTHOGONAL, a linear dimension constrained to x/y
Definition: typeinfo.h:112
@ SCH_LINE_T
Definition: typeinfo.h:137
@ PCB_FP_SHAPE_T
class FP_SHAPE, a footprint edge
Definition: typeinfo.h:96
@ LIB_SYMBOL_T
Definition: typeinfo.h:189
@ SCH_NO_CONNECT_T
Definition: typeinfo.h:134
@ PCB_DIM_LEADER_T
class PCB_DIM_LEADER, a leader dimension (graphic item)
Definition: typeinfo.h:109
@ LIB_TEXT_T
Definition: typeinfo.h:192
@ PCB_VIA_T
class PCB_VIA, a via (like a track segment on a copper layer)
Definition: typeinfo.h:104
@ TYPE_NOT_INIT
Definition: typeinfo.h:83
@ LIB_ALIAS_T
Definition: typeinfo.h:190
@ PCB_FP_TEXTBOX_T
class FP_TEXTBOX, wrapped text in a footprint
Definition: typeinfo.h:95
@ SCH_SYMBOL_T
Definition: typeinfo.h:147
@ PCB_DIM_CENTER_T
class PCB_DIM_CENTER, a center point marking (graphic item)
Definition: typeinfo.h:110
@ PCB_GROUP_T
class PCB_GROUP, a set of BOARD_ITEMs
Definition: typeinfo.h:117
@ 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:114
@ LIB_TEXTBOX_T
Definition: typeinfo.h:193
@ SCH_FIELD_T
Definition: typeinfo.h:146
@ PCB_TEXT_T
class PCB_TEXT, text on a layer
Definition: typeinfo.h:92
@ SCH_DIRECTIVE_LABEL_T
Definition: typeinfo.h:145
@ SCH_LABEL_T
Definition: typeinfo.h:142
@ PCB_FP_DIM_CENTER_T
class PCB_DIM_CENTER, a center point marking (graphic item)
Definition: typeinfo.h:99
@ SCH_SHEET_T
Definition: typeinfo.h:149
@ LIB_SHAPE_T
Definition: typeinfo.h:191
@ SCH_MARKER_T
Definition: typeinfo.h:132
@ PCB_ITEM_LIST_T
class BOARD_ITEM_LIST, a list of board items
Definition: typeinfo.h:115
@ GERBER_DRAW_ITEM_T
Definition: typeinfo.h:206
@ SCH_HIER_LABEL_T
Definition: typeinfo.h:144
@ 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:106
@ SCH_BUS_BUS_ENTRY_T
Definition: typeinfo.h:136
@ LIB_PIN_T
Definition: typeinfo.h:194
@ SCH_SCREEN_T
Definition: typeinfo.h:177
@ PCB_TARGET_T
class PCB_TARGET, a target (graphic item)
Definition: typeinfo.h:113
@ PCB_FP_DIM_ORTHOGONAL_T
class PCB_DIM_ORTHOGONAL, a linear dimension constrained to x/y
Definition: typeinfo.h:101
@ PCB_FP_DIM_LEADER_T
class PCB_DIM_LEADER, a leader dimension (graphic item)
Definition: typeinfo.h:98
@ PCB_FOOTPRINT_T
class FOOTPRINT, a footprint
Definition: typeinfo.h:88
@ SCH_SHEET_PIN_T
Definition: typeinfo.h:148
@ PCB_DIM_ALIGNED_T
class PCB_DIM_ALIGNED, a linear dimension (graphic item)
Definition: typeinfo.h:108
@ SCH_TEXT_T
Definition: typeinfo.h:141
@ LIB_FIELD_T
Definition: typeinfo.h:200
@ PCB_FP_ZONE_T
class ZONE, managed by a footprint
Definition: typeinfo.h:102
@ PCB_BITMAP_T
class PCB_BITMAP, bitmap on a layer
Definition: typeinfo.h:91
@ PCB_FP_DIM_RADIAL_T
class PCB_DIM_RADIAL, a radius or diameter dimension
Definition: typeinfo.h:100
@ PCB_PAD_T
class PAD, a pad in a footprint
Definition: typeinfo.h:89
@ GERBER_IMAGE_T
Definition: typeinfo.h:207
@ SCH_BUS_WIRE_ENTRY_T
Definition: typeinfo.h:135
@ GERBER_LAYOUT_T
Definition: typeinfo.h:205
@ SCREEN_T
not really an item, used to identify a screen
Definition: typeinfo.h:85
@ PCB_FP_TEXT_T
class FP_TEXT, text in a footprint
Definition: typeinfo.h:94
@ SCH_BITMAP_T
Definition: typeinfo.h:139
@ PCB_ARC_T
class PCB_ARC, an arc track segment on a copper layer
Definition: typeinfo.h:105
@ PCB_NETINFO_T
class NETINFO_ITEM, a description of a net
Definition: typeinfo.h:116
@ SCH_TEXTBOX_T
Definition: typeinfo.h:140
@ PCB_TRACE_T
class PCB_TRACK, a track segment (segment on a copper layer)
Definition: typeinfo.h:103
@ PCB_DIM_RADIAL_T
class PCB_DIM_RADIAL, a radius or diameter dimension
Definition: typeinfo.h:111
@ SCH_GLOBAL_LABEL_T
Definition: typeinfo.h:143
@ SCH_JUNCTION_T
Definition: typeinfo.h:133
@ SCH_PIN_T
Definition: typeinfo.h:150

References _HKI, PROPERTY_MANAGER::AddProperty(), GERBER_DRAW_ITEM_T, GERBER_IMAGE_T, GERBER_LAYOUT_T, ENUM_MAP< T >::Instance(), PROPERTY_MANAGER::Instance(), LIB_ALIAS_T, LIB_FIELD_T, LIB_PIN_T, LIB_SHAPE_T, LIB_SYMBOL_T, LIB_TEXT_T, LIB_TEXTBOX_T, NO_SETTER, NOT_USED, PCB_ARC_T, PCB_BITMAP_T, PCB_DIM_ALIGNED_T, PCB_DIM_CENTER_T, PCB_DIM_LEADER_T, PCB_DIM_ORTHOGONAL_T, PCB_DIM_RADIAL_T, PCB_FOOTPRINT_T, PCB_FP_DIM_ALIGNED_T, PCB_FP_DIM_CENTER_T, PCB_FP_DIM_LEADER_T, PCB_FP_DIM_ORTHOGONAL_T, PCB_FP_DIM_RADIAL_T, PCB_FP_SHAPE_T, PCB_FP_TEXT_T, PCB_FP_TEXTBOX_T, PCB_FP_ZONE_T, PCB_GROUP_T, PCB_ITEM_LIST_T, PCB_MARKER_T, PCB_NETINFO_T, PCB_PAD_T, PCB_SHAPE_T, PCB_TARGET_T, PCB_TEXT_T, PCB_TEXTBOX_T, PCB_TRACE_T, PCB_VIA_T, PCB_ZONE_T, REGISTER_TYPE, SCH_BITMAP_T, SCH_BUS_BUS_ENTRY_T, SCH_BUS_WIRE_ENTRY_T, SCH_DIRECTIVE_LABEL_T, SCH_FIELD_T, SCH_GLOBAL_LABEL_T, SCH_HIER_LABEL_T, SCH_JUNCTION_T, SCH_LABEL_T, SCH_LINE_T, SCH_MARKER_T, SCH_NO_CONNECT_T, SCH_PIN_T, SCH_SCREEN_T, SCH_SHEET_PIN_T, SCH_SHEET_T, SCH_SYMBOL_T, SCH_TEXT_T, SCH_TEXTBOX_T, SCREEN_T, EDA_ITEM::Type(), and TYPE_NOT_INIT.


The documentation for this struct was generated from the following file: