38 PCB_FIELD(
const PCB_TEXT& aText,
int aFieldId,
const wxString& aName = wxEmptyString );
40 void Serialize( google::protobuf::Any &aContainer )
const override;
41 bool Deserialize(
const google::protobuf::Any &aContainer )
override;
48 wxString
GetClass()
const override {
return wxT(
"PCB_FIELD" ); }
50 bool IsType(
const std::vector<KICAD_T>& aScanTypes )
const override
55 for(
KICAD_T scanType : aScanTypes )
97 wxString
GetName(
bool aUseDefaultName =
true )
const;
Container for design settings for a BOARD object.
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
A base class for most all the KiCad significant classes used in schematics and boards.
KICAD_T Type() const
Returns the type of object.
virtual bool IsType(const std::vector< KICAD_T > &aScanTypes) const
Check whether the item is one of the listed types.
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
bool operator==(const PCB_FIELD &aOther) const
bool IsType(const std::vector< KICAD_T > &aScanTypes) const override
Check whether the item is one of the listed types.
wxString GetTextTypeDescription() const override
wxString GetName(bool aUseDefaultName=true) const
Return the field name (not translated).
bool IsComponentClass() const
void Serialize(google::protobuf::Any &aContainer) const override
Serializes this object to the given Any message.
bool IsMandatoryField() const
wxString GetCanonicalName() const
Get a non-language-specific name for a field which can be used for storage, variable look-up,...
void SetName(const wxString &aName)
double ViewGetLOD(int aLayer, KIGFX::VIEW *aView) const override
Return the level of detail (LOD) of the item.
void swapData(BOARD_ITEM *aImage) override
double Similarity(const BOARD_ITEM &aOther) const override
Return a measure of how likely the other object is to represent the same object.
static bool ClassOf(const EDA_ITEM *aItem)
wxString GetClass() const override
Return the class name.
bool Deserialize(const google::protobuf::Any &aContainer) override
Deserializes the given protobuf message into this object.
PCB_FIELD * CloneField() const
Same as Clone, but returns a PCB_FIELD item.
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
wxString GetItemDescription(UNITS_PROVIDER *aUnitsProvider, bool aFull) const override
Return a user-visible description string of this item.
@ DATASHEET_FIELD
name of datasheet
@ VALUE_FIELD
Field Value of part, i.e. "3.3K".
@ MANDATORY_FIELDS
The first 5 are mandatory, and must be instantiated in SCH_COMPONENT and LIB_PART constructors.
@ REFERENCE_FIELD
Field Reference of part, i.e. "IC21".
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
@ PCB_FIELD_LOCATE_VALUE_T
@ PCB_FIELD_T
class PCB_FIELD, text associated with a footprint property
@ PCB_FIELD_LOCATE_REFERENCE_T
@ PCB_FIELD_LOCATE_DATASHEET_T