KiCad PCB EDA Suite
ZONE_DESC Struct Reference

Public Member Functions

 ZONE_DESC ()
 

Detailed Description

Definition at line 1459 of file zone.cpp.

Constructor & Destructor Documentation

◆ ZONE_DESC()

ZONE_DESC::ZONE_DESC ( )
inline

Definition at line 1461 of file zone.cpp.

1462  {
1464  .Map( ZONE_CONNECTION::INHERITED, _HKI( "Inherited" ) )
1465  .Map( ZONE_CONNECTION::NONE, _HKI( "None" ) )
1466  .Map( ZONE_CONNECTION::THERMAL, _HKI( "Thermal reliefs" ) )
1467  .Map( ZONE_CONNECTION::FULL, _HKI( "Solid" ) )
1468  .Map( ZONE_CONNECTION::THT_THERMAL, _HKI( "Reliefs for PTH" ) );
1469 
1471  REGISTER_TYPE( ZONE );
1473  propMgr.AddProperty( new PROPERTY<ZONE, unsigned>( _HKI( "Priority" ),
1475  //propMgr.AddProperty( new PROPERTY<ZONE, bool>( "Filled",
1476  //&ZONE::SetIsFilled, &ZONE::IsFilled ) );
1477  propMgr.AddProperty( new PROPERTY<ZONE, wxString>( _HKI( "Name" ),
1479  propMgr.AddProperty( new PROPERTY<ZONE, int>( _HKI( "Clearance Override" ),
1482  propMgr.AddProperty( new PROPERTY<ZONE, int>( _HKI( "Min Width" ),
1485  propMgr.AddProperty( new PROPERTY_ENUM<ZONE, ZONE_CONNECTION>( _HKI( "Pad Connections" ),
1487  propMgr.AddProperty( new PROPERTY<ZONE, int>( _HKI( "Thermal Relief Gap" ),
1490  propMgr.AddProperty( new PROPERTY<ZONE, int>( _HKI( "Thermal Relief Width" ),
1493  }
ZONE_CONNECTION GetPadConnection() const
Definition: zone.h:241
static PROPERTY_MANAGER & Instance()
Definition: property_mgr.h:65
#define TYPE_HASH(x)
Definition: property.h:59
void SetZoneName(const wxString &aName)
Definition: zone.h:130
unsigned GetPriority() const
Definition: zone.h:122
static ENUM_MAP< T > & Instance()
Definition: property.h:510
void SetPriority(unsigned aPriority)
Definition: zone.h:117
A base class derived from BOARD_ITEM for items that can be connected and have a net,...
#define REGISTER_TYPE(x)
Definition: property_mgr.h:248
int GetThermalReliefGap() const
Definition: zone.h:191
Display value expressed in distance units (mm/inch)
Definition: property.h:53
pads are covered by copper
int GetLocalClearance() const
Definition: zone.h:157
int GetMinThickness() const
Definition: zone.h:244
void InheritsAfter(TYPE_ID aDerived, TYPE_ID aBase)
Declare an inheritance relationship between types.
Handle a list of polygons defining a copper zone.
Definition: zone.h:56
void SetMinThickness(int aMinThickness)
Definition: zone.h:245
Thermal relief only for THT pads.
Use thermal relief for pads.
void SetPadConnection(ZONE_CONNECTION aPadConnection)
Definition: zone.h:242
void AddProperty(PROPERTY_BASE *aProperty)
Register a property.
Pads are not covered.
void SetThermalReliefGap(int aThermalReliefGap)
Definition: zone.h:183
Provide class metadata.Helper macro to map type hashes to names.
Definition: property_mgr.h:62
void SetLocalClearance(int aClearance)
Definition: zone.h:158
int GetThermalReliefSpokeWidth() const
Definition: zone.h:202
wxString GetZoneName() const
Definition: zone.h:129
#define _HKI(x)
void SetThermalReliefSpokeWidth(int aThermalReliefSpokeWidth)
Definition: zone.h:194

References _HKI, PROPERTY_MANAGER::AddProperty(), DISTANCE, FULL, ZONE::GetLocalClearance(), ZONE::GetMinThickness(), ZONE::GetPadConnection(), ZONE::GetPriority(), ZONE::GetThermalReliefGap(), ZONE::GetThermalReliefSpokeWidth(), ZONE::GetZoneName(), INHERITED, PROPERTY_MANAGER::InheritsAfter(), PROPERTY_MANAGER::Instance(), ENUM_MAP< T >::Instance(), NONE, REGISTER_TYPE, ZONE::SetLocalClearance(), ZONE::SetMinThickness(), ZONE::SetPadConnection(), ZONE::SetPriority(), ZONE::SetThermalReliefGap(), ZONE::SetThermalReliefSpokeWidth(), ZONE::SetZoneName(), THERMAL, THT_THERMAL, and TYPE_HASH.


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