52 case SCH_LINE_T:
return std::make_unique<SCH_LINE>();
53 case SCH_SHAPE_T:
return std::make_unique<SCH_SHAPE>();
54 case SCH_BITMAP_T:
return std::make_unique<SCH_BITMAP>();
56 case SCH_TEXT_T:
return std::make_unique<SCH_TEXT>();
57 case SCH_TABLE_T:
return std::make_unique<SCH_TABLE>();
59 case SCH_LABEL_T:
return std::make_unique<SCH_LABEL>();
63 case SCH_FIELD_T:
return std::make_unique<SCH_FIELD>( parentSchItem );
64 case SCH_GROUP_T:
return std::make_unique<SCH_GROUP>();
75 return std::make_unique<SCH_SHEET_PIN>(
static_cast<SCH_SHEET*
>( aContainer ) );
80 case SCH_SHEET_T:
return std::make_unique<SCH_SHEET>();
85 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.
Class to handle a set of SCH_ITEMs.
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.