KiCad PCB EDA Suite
EDA_ITEM_DESC Struct Reference

Public Member Functions

 EDA_ITEM_DESC ()
 

Detailed Description

Definition at line 243 of file eda_item.cpp.

Constructor & Destructor Documentation

◆ EDA_ITEM_DESC()

EDA_ITEM_DESC::EDA_ITEM_DESC ( )
inline

Definition at line 245 of file eda_item.cpp.

246  {
248  .Undefined( TYPE_NOT_INIT )
249  .Map( NOT_USED, wxT( "<not used>" ) )
250  .Map( SCREEN_T, _HKI( "Screen" ) )
251 
252  .Map( PCB_FOOTPRINT_T, _HKI( "Footprint" ) )
253  .Map( PCB_PAD_T, _HKI( "Pad" ) )
254  .Map( PCB_SHAPE_T, _HKI( "Graphic Shape" ) )
255  .Map( PCB_TEXT_T, _HKI( "Board Text" ) )
256  .Map( PCB_FP_TEXT_T, _HKI( "Footprint Text" ) )
257  .Map( PCB_FP_SHAPE_T, _HKI( "Graphic Shape" ) )
258  .Map( PCB_FP_ZONE_T, _HKI( "Zone" ) )
259  .Map( PCB_TRACE_T, _HKI( "Track" ) )
260  .Map( PCB_VIA_T, _HKI( "Via" ) )
261  .Map( PCB_MARKER_T, _HKI( "Board Marker" ) )
262  .Map( PCB_DIM_ALIGNED_T, _HKI( "Aligned Dimension" ) )
263  .Map( PCB_DIM_ORTHOGONAL_T, _HKI( "Orthogonal Dimension" ) )
264  .Map( PCB_DIM_CENTER_T, _HKI( "Center Dimension" ) )
265  .Map( PCB_DIM_LEADER_T, _HKI( "Leader" ) )
266  .Map( PCB_TARGET_T, _HKI( "Target" ) )
267  .Map( PCB_ZONE_T, _HKI( "Zone" ) )
268  .Map( PCB_ITEM_LIST_T, _HKI( "Item List" ) )
269  .Map( PCB_NETINFO_T, _HKI( "Net Info" ) )
270  .Map( PCB_GROUP_T, _HKI( "Group" ) )
271 
272  .Map( SCH_MARKER_T, _HKI( "Schematic Marker" ) )
273  .Map( SCH_JUNCTION_T, _HKI( "Junction" ) )
274  .Map( SCH_NO_CONNECT_T, _HKI( "No-Connect Flag" ) )
275  .Map( SCH_BUS_WIRE_ENTRY_T, _HKI( "Wire Entry" ) )
276  .Map( SCH_BUS_BUS_ENTRY_T, _HKI( "Bus Entry" ) )
277  .Map( SCH_LINE_T, _HKI( "Graphic Line" ) )
278  .Map( SCH_BITMAP_T, _HKI( "Bitmap" ) )
279  .Map( SCH_TEXT_T, _HKI( "Schematic Text" ) )
280  .Map( SCH_LABEL_T, _HKI( "Net Label" ) )
281  .Map( SCH_GLOBAL_LABEL_T, _HKI( "Global Label" ) )
282  .Map( SCH_HIER_LABEL_T, _HKI( "Hierarchical Label" ) )
283  .Map( SCH_FIELD_T, _HKI( "Schematic Field" ) )
284  .Map( SCH_SYMBOL_T, _HKI( "Schematic Symbol" ) )
285  .Map( SCH_SHEET_PIN_T, _HKI( "Sheet Pin" ) )
286  .Map( SCH_SHEET_T, _HKI( "Sheet" ) )
287 
288  // Synthetic search tokens don't need to be included...
289  //.Map( SCH_FIELD_LOCATE_REFERENCE_T, _HKI( "Field Locate Reference" ) )
290  //.Map( SCH_FIELD_LOCATE_VALUE_T, _HKI( "Field Locate Value" ) )
291  //.Map( SCH_FIELD_LOCATE_FOOTPRINT_T, _HKI( "Field Locate Footprint" ) )
292 
293  .Map( SCH_SCREEN_T, _HKI( "SCH Screen" ) )
294 
295  .Map( LIB_SYMBOL_T, _HKI( "Symbol" ) )
296  .Map( LIB_ALIAS_T, _HKI( "Alias" ) )
297  .Map( LIB_ARC_T, _HKI( "Arc" ) )
298  .Map( LIB_CIRCLE_T, _HKI( "Circle" ) )
299  .Map( LIB_TEXT_T, _HKI( "Symbol Text" ) )
300  .Map( LIB_RECTANGLE_T, _HKI( "Rectangle" ) )
301  .Map( LIB_POLYLINE_T, _HKI( "Polyline" ) )
302  .Map( LIB_BEZIER_T, _HKI( "Bezier" ) )
303  .Map( LIB_PIN_T, _HKI( "Pin" ) )
304  .Map( LIB_FIELD_T, _HKI( "Symbol Field" ) )
305 
306  .Map( GERBER_LAYOUT_T, _HKI( "Gerber Layout" ) )
307  .Map( GERBER_DRAW_ITEM_T, _HKI( "Draw Item" ) )
308  .Map( GERBER_IMAGE_T, _HKI( "Image" ) );
309 
312  propMgr.AddProperty( new PROPERTY_ENUM<EDA_ITEM, KICAD_T>( "Type",
314  }
static PROPERTY_MANAGER & Instance()
Definition: property_mgr.h:65
class PCB_DIM_ALIGNED, a linear dimension (graphic item)
Definition: typeinfo.h:100
class PCB_DIM_LEADER, a leader dimension (graphic item)
Definition: typeinfo.h:101
class FP_TEXT, text in a footprint
Definition: typeinfo.h:92
class PCB_GROUP, a set of BOARD_ITEMs
Definition: typeinfo.h:108
class PCB_DIM_CENTER, a center point marking (graphic item)
Definition: typeinfo.h:102
the 3d code uses this value
Definition: typeinfo.h:79
static ENUM_MAP< T > & Instance()
Definition: property.h:510
class PCB_TEXT, text on a layer
Definition: typeinfo.h:91
class FP_SHAPE, a footprint edge
Definition: typeinfo.h:93
class PAD, a pad in a footprint
Definition: typeinfo.h:89
#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:77
not really an item, used to identify a screen
Definition: typeinfo.h:85
class PCB_TRACK, a track segment (segment on a copper layer)
Definition: typeinfo.h:95
class BOARD_ITEM_LIST, a list of board items
Definition: typeinfo.h:106
class ZONE, a copper pour area
Definition: typeinfo.h:105
class PCB_TARGET, a target (graphic item)
Definition: typeinfo.h:104
class FOOTPRINT, a footprint
Definition: typeinfo.h:88
class PCB_MARKER, a marker used to show something
Definition: typeinfo.h:98
class NETINFO_ITEM, a description of a net
Definition: typeinfo.h:107
void AddProperty(PROPERTY_BASE *aProperty)
Register a property.
class ZONE, managed by a footprint
Definition: typeinfo.h:94
A base class for most all the KiCad significant classes used in schematics and boards.
Definition: eda_item.h:100
Provide class metadata.Helper macro to map type hashes to names.
Definition: property_mgr.h:62
class PCB_DIM_ORTHOGONAL, a linear dimension constrained to x/y
Definition: typeinfo.h:103
class PCB_VIA, a via (like a track segment on a copper layer)
Definition: typeinfo.h:96
class PCB_SHAPE, a segment not on copper layers
Definition: typeinfo.h:90
#define _HKI(x)
KICAD_T Type() const
Returns the type of object.
Definition: eda_item.h:113

References _HKI, PROPERTY_MANAGER::AddProperty(), GERBER_DRAW_ITEM_T, GERBER_IMAGE_T, GERBER_LAYOUT_T, PROPERTY_MANAGER::Instance(), ENUM_MAP< T >::Instance(), LIB_ALIAS_T, LIB_ARC_T, LIB_BEZIER_T, LIB_CIRCLE_T, LIB_FIELD_T, LIB_PIN_T, LIB_POLYLINE_T, LIB_RECTANGLE_T, LIB_SYMBOL_T, LIB_TEXT_T, NO_SETTER, NOT_USED, PCB_DIM_ALIGNED_T, PCB_DIM_CENTER_T, PCB_DIM_LEADER_T, PCB_DIM_ORTHOGONAL_T, PCB_FOOTPRINT_T, PCB_FP_SHAPE_T, PCB_FP_TEXT_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_TRACE_T, PCB_VIA_T, PCB_ZONE_T, REGISTER_TYPE, SCH_BITMAP_T, SCH_BUS_BUS_ENTRY_T, SCH_BUS_WIRE_ENTRY_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_SCREEN_T, SCH_SHEET_PIN_T, SCH_SHEET_T, SCH_SYMBOL_T, SCH_TEXT_T, SCREEN_T, EDA_ITEM::Type(), and TYPE_NOT_INIT.


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