51 case SCH_LINE_T:
return std::make_unique<SCH_LINE>();
52 case SCH_SHAPE_T:
return std::make_unique<SCH_SHAPE>();
53 case SCH_BITMAP_T:
return std::make_unique<SCH_BITMAP>();
55 case SCH_TEXT_T:
return std::make_unique<SCH_TEXT>();
56 case SCH_TABLE_T:
return std::make_unique<SCH_TABLE>();
58 case SCH_LABEL_T:
return std::make_unique<SCH_LABEL>();
62 case SCH_FIELD_T:
return std::make_unique<SCH_FIELD>( parentSchItem );
73 return std::make_unique<SCH_SHEET_PIN>(
static_cast<SCH_SHEET*
>( aContainer ) );
78 case SCH_SHEET_T:
return std::make_unique<SCH_SHEET>();
83 return std::make_unique<SCH_PIN>(
static_cast<LIB_SYMBOL*
>( aContainer ) );
std::unique_ptr< EDA_ITEM > CreateItemForType(KICAD_T aType, EDA_ITEM *aContainer)
A base class for most all the KiCad significant classes used in schematics and boards.
KICAD_T Type() const
Returns the type of object.
Define a library symbol object.
Base class for any item which can be embedded within the SCHEMATIC container class,...
Sheet symbol placed in a schematic, and is the entry point for a sub schematic.
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.