60 for( i = 0; i < (int)
m_outline.GetCount(); i++ )
65 for( island = 0; island < (int)
m_cutouts.GetCount(); island++ )
67 for( i = 0; i < (int)
m_cutouts[island]->GetCount(); i++ )
75 for( island = 0; island < (int)
m_islands.GetCount(); island++ )
77 for( i = 0; i < (int)
m_islands[island]->GetCount(); i++ )
98 for( i = 0; i < (int) aOutline->GetCount(); i++ )
99 m_outline.Add(
new wxRealPoint( (*aOutline)[i]->x, (*aOutline)[i]->y ) );
109 const wxString& aDefaultUnits,
const wxString& aActualConversion )
114 lNode =
FindNode( aNode, wxT(
"pt" ) );
118 if( lNode->GetName() == wxT(
"pt" ) )
122 aPolygon->Add(
new wxRealPoint( x, y ) );
131 const wxString& aActualConversion )
136 lNode =
FindNode( aNode, wxT(
"netNameRef" ) );
140 lNode->GetAttribute( wxT(
"Name" ), &propValue );
141 propValue.Trim(
false );
142 propValue.Trim(
true );
166 aFootprint->
Add( dwg );
171 auto outline =
new std::vector<VECTOR2I>;
173 outline->push_back(
VECTOR2I( point->x, point->y ) );
177 dwg->
SetEnd0( outline->back() );
198 for( i = 0; i < (int)
m_outline.GetCount(); i++ )
251 for( i = 0; i < (int)
m_outline.GetCount(); i++ )
257 for( island = 0; island < (int)
m_islands.GetCount(); island++ )
259 for( i = 0; i < (int)
m_islands[island]->GetCount(); i++ )
266 for( island = 0; island < (int)
m_cutouts.GetCount(); island++ )
268 for( i = 0; i < (int)
m_cutouts[island]->GetCount(); i++ )
bool SetNetCode(int aNetCode, bool aNoAssert)
Set net using a net code.
virtual void SetLayer(PCB_LAYER_ID aLayer)
Set the layer this item is on.
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 SetPolyPoints(const std::vector< VECTOR2I > &aPoints)
void SetEnd0(const VECTOR2I &aPoint)
void SetStart0(const VECTOR2I &aPoint)
virtual void SetDrawCoord()
Set draw coordinates (absolute values ) from relative coordinates.
PCB_LAYER_ID m_KiCadLayer
int GetNetCode(const wxString &aNetName) const
PCB_LAYER_ID GetKiCadLayer() const
virtual void SetPosOffset(int aX_offs, int aY_offs)
void FormPolygon(XNODE *aNode, VERTICES_ARRAY *aPolygon, const wxString &aDefaultUnits, const wxString &actualConversion)
void AddToBoard() override
virtual void Flip() override
void AssignNet(const wxString &aNetName)
virtual void SetPosOffset(int aX_offs, int aY_offs) override
PCB_POLYGON(PCB_CALLBACKS *aCallbacks, BOARD *aBoard, int aPCadLayer)
virtual bool Parse(XNODE *aNode, const wxString &aDefaultUnits, const wxString &aActualConversion)
void SetOutline(VERTICES_ARRAY *aOutline)
void AddToFootprint(FOOTPRINT *aFootprint) override
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()
bool IsNonCopperLayer(int aLayerId)
Test whether a layer is a non copper layer.
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".