43 ret = hash<unsigned long long>{}( aItem->
GetLayerSet().to_ullong() );
53 switch( aItem->
Type() )
57 const FOOTPRINT* footprint = static_cast<const FOOTPRINT*>( aItem );
70 for(
PAD* pad : footprint->
Pads() )
77 const PAD* pad = static_cast<const PAD*>( aItem );
79 ret = hash<int>{}( pad->
GetShape() << 16 );
108 const FP_TEXT* text = static_cast<const FP_TEXT*>( aItem );
141 const FP_SHAPE* segment = static_cast<const FP_SHAPE*>( aItem );
172 wxASSERT_MSG(
false,
"Unhandled type in function hash_fp_item() (exporter_gencad.cpp)" );
EDA_TEXT_VJUSTIFY_T GetVertJustify() const
class FP_TEXT, text in a footprint
const wxPoint & GetEnd() const
Function GetEnd returns the ending point of the graphic.
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
use coordinates relative to the parent object
int GetRadius() const
Function GetRadius returns the radius of this item Has meaning only for arc and circle.
double GetTextAngle() const
const wxPoint & GetStart0() const
class FP_SHAPE, a footprint edge
class PAD, a pad in a footprint
PAD_SHAPE_T GetShape() const
static void hash_combine(std::size_t &seed)
This is a dummy function to take the final case of hash_combine below.
int GetTextHeight() const
const wxPoint & GetOffset() const
EDA_TEXT_HJUSTIFY_T GetHorizJustify() const
double GetOrientation() const
Return the rotation angle of the pad in a variety of units (the basic call returns tenths of degrees)...
TEXT_TYPE GetType() const
const wxSize & GetSize() const
const wxPoint & GetStart() const
Function GetStart returns the starting point of the graphic.
size_t hash_fp_item(const EDA_ITEM *aItem, int aFlags)
Calculate hash of an EDA_ITEM.
static size_t hash_board_item(const BOARD_ITEM *aItem, int aFlags)
class FOOTPRINT, a footprint
const wxSize & GetDelta() const
const wxPoint & GetPos0() const
const wxPoint & GetPos0() const
wxPoint GetPosition() const override
PAD_DRILL_SHAPE_T GetDrillShape() const
const wxPoint & GetEnd0() const
A base class for most all the KiCad significant classes used in schematics and boards.
PCB_SHAPE_TYPE_T GetShape() const
virtual const wxString & GetText() const
Return the string associated with the text object.
virtual LSET GetLayerSet() const
Return a std::bitset of all layers on which the item physically resides.
KICAD_T Type() const
Returns the type of object.
virtual wxPoint GetPosition() const override