60 for( i = 0; i < (int)
m_Outline.GetCount(); i++ )
63 for( island = 0; island < (int)
m_Cutouts.GetCount(); island++ )
65 for( i = 0; i < (int)
m_Cutouts[island]->GetCount(); i++ )
71 for( island = 0; island < (int)
m_Islands.GetCount(); island++ )
73 for( i = 0; i < (int)
m_Islands[island]->GetCount(); i++ )
92 for( i = 0; i < (int) aOutline->GetCount(); i++ )
93 m_Outline.Add(
new wxRealPoint( (*aOutline)[i]->x, (*aOutline)[i]->y ) );
103 const wxString& aDefaultUnits,
const wxString& aActualConversion )
108 lNode =
FindNode( aNode, wxT(
"pt" ) );
112 if( lNode->GetName() == wxT(
"pt" ) )
116 aPolygon->Add(
new wxRealPoint( x, y ) );
125 const wxString& aActualConversion )
130 lNode =
FindNode( aNode, wxT(
"netNameRef" ) );
134 lNode->GetAttribute( wxT(
"Name" ), &propValue );
135 propValue.Trim(
false );
136 propValue.Trim(
true );
162 aFootprint->
Add( dwg );
167 auto outline =
new std::vector<VECTOR2I>;
170 outline->push_back(
VECTOR2I( point->x, point->y ) );
174 dwg->
SetEnd( outline->back() );
189 for(
int i = 0; i < (int)
m_Outline.GetCount(); i++ )
243 for( i = 0; i < (int)
m_Outline.GetCount(); i++ )
249 for( island = 0; island < (int)
m_Islands.GetCount(); island++ )
251 for( i = 0; i < (int)
m_Islands[island]->GetCount(); i++ )
258 for( island = 0; island < (int)
m_Cutouts.GetCount(); island++ )
260 for( i = 0; i < (int)
m_Cutouts[island]->GetCount(); i++ )
bool SetNetCode(int aNetCode, bool aNoAssert)
Set net using a net code.
Information pertinent to a Pcbnew printed circuit board.
void Add(BOARD_ITEM *aItem, ADD_MODE aMode=ADD_MODE::INSERT, bool aSkipConnectivity=false) override
Removes an item from the container.
void SetStart(const VECTOR2I &aStart)
void SetEnd(const VECTOR2I &aEnd)
void SetPolyPoints(const std::vector< VECTOR2I > &aPoints)
virtual void SetPosOffset(int aX_offs, int aY_offs)
PCB_LAYER_ID GetKiCadLayer() const
int GetNetCode(const wxString &aNetName) const
PCB_LAYER_ID m_KiCadLayer
virtual void Flip() override
void SetOutline(VERTICES_ARRAY *aOutline)
virtual bool Parse(XNODE *aNode, const wxString &aDefaultUnits, const wxString &aActualConversion)
void FormPolygon(XNODE *aNode, VERTICES_ARRAY *aPolygon, const wxString &aDefaultUnits, const wxString &actualConversion)
PCAD_POLYGON(PCAD_CALLBACKS *aCallbacks, BOARD *aBoard, int aPCadLayer)
void AssignNet(const wxString &aNetName)
void AddToBoard(FOOTPRINT *aFootprint=nullptr) override
virtual void SetPosOffset(int aX_offs, int aY_offs) override
virtual void Rotate(const VECTOR2I &aRotCentre, const EDA_ANGLE &aAngle) override
Rotate this object.
void SetLayer(PCB_LAYER_ID aLayer) override
Set the layer this item is on.
virtual void Move(const VECTOR2I &aMoveVector) override
Move this object.
void SetStroke(const STROKE_PARAMS &aStroke) override
Simple container to manage line stroke parameters.
Hold an XML or S-expression element.
Handle a list of polygons defining a copper zone.
void SetDoNotAllowPads(bool aEnable)
void SetBorderDisplayStyle(ZONE_BORDER_DISPLAY_STYLE aBorderHatchStyle, int aBorderHatchPitch, bool aRebuilBorderdHatch)
Set all hatch parameters for the zone.
void SetDoNotAllowCopperPour(bool aEnable)
virtual void SetLayer(PCB_LAYER_ID aLayer) override
Set the layer this item is on.
void SetIsRuleArea(bool aEnable)
void SetDoNotAllowTracks(bool aEnable)
void SetDoNotAllowVias(bool aEnable)
void SetLocalClearance(int aClearance)
void SetDoNotAllowFootprints(bool aEnable)
bool AppendCorner(VECTOR2I aPosition, int aHoleIdx, bool aAllowDuplication=false)
Add a new corner to the zone outline (to the main outline or a hole)
void SetAssignedPriority(unsigned aPriority)
static int GetDefaultHatchPitch()
PCB_LAYER_ID FlipLayer(PCB_LAYER_ID aLayerId, int aCopperLayersCount)
XNODE * FindNode(XNODE *aChild, const wxString &aTag)
void SetDoublePrecisionPosition(const wxString &aStr, const wxString &aDefaultMeasurementUnit, double *aX, double *aY, const wxString &aActualConversion)
constexpr ret_type KiROUND(fp_type v)
Round a floating point number to an integer using "round halfway cases away from zero".