35 #include <wx/gdicmn.h> 36 #include <wx/string.h> 61 for( i = 0; i < (int)
m_outline.GetCount(); i++ )
66 for( island = 0; island < (int)
m_cutouts.GetCount(); island++ )
68 for( i = 0; i < (int)
m_cutouts[island]->GetCount(); i++ )
76 for( island = 0; island < (int)
m_islands.GetCount(); island++ )
78 for( i = 0; i < (int)
m_islands[island]->GetCount(); i++ )
99 for( i = 0; i < (int) aOutline->GetCount(); i++ )
100 m_outline.Add(
new wxRealPoint( (*aOutline)[i]->x, (*aOutline)[i]->y ) );
110 const wxString& aDefaultUnits,
const wxString& aActualConversion )
115 lNode =
FindNode( aNode, wxT(
"pt" ) );
119 if( lNode->GetName() == wxT(
"pt" ) )
123 aPolygon->Add(
new wxRealPoint( x, y ) );
132 const wxString& aActualConversion )
137 lNode =
FindNode( aNode, wxT(
"netNameRef" ) );
141 lNode->GetAttribute( wxT(
"Name" ), &propValue );
142 propValue.Trim(
false );
143 propValue.Trim(
true );
167 aFootprint->
Add( dwg );
172 auto outline =
new std::vector<wxPoint>;
174 outline->push_back( wxPoint( point->x, point->y ) );
178 dwg->
SetEnd0( outline->back() );
199 for( i = 0; i < (int)
m_outline.GetCount(); i++ )
252 for( i = 0; i < (int)
m_outline.GetCount(); i++ )
258 for( island = 0; island < (int)
m_islands.GetCount(); island++ )
260 for( i = 0; i < (int)
m_islands[island]->GetCount(); i++ )
267 for( island = 0; island < (int)
m_cutouts.GetCount(); island++ )
269 for( i = 0; i < (int)
m_cutouts[island]->GetCount(); i++ )
void SetEnd0(const wxPoint &aPoint)
void SetDoNotAllowTracks(bool aEnable)
virtual void SetLayer(PCB_LAYER_ID aLayer)
Set the layer this item is on.
void SetBorderDisplayStyle(ZONE_BORDER_DISPLAY_STYLE aHatchStyle, int aHatchPitch, bool aRebuildHatch)
Set all hatch parameters for the zone.
PCB_LAYER_ID FlipLayer(PCB_LAYER_ID aLayerId, int aCopperLayersCount)
void SetOutline(VERTICES_ARRAY *aOutline)
void AddToFootprint(FOOTPRINT *aFootprint) override
bool SetNetCode(int aNetCode, bool aNoAssert)
Set net using a net code.
virtual bool Parse(XNODE *aNode, const wxString &aDefaultUnits, const wxString &aActualConversion)
void AddToBoard() override
void SetPriority(unsigned aPriority)
virtual void Flip() override
int GetNetCode(const wxString &aNetName) const
void SetIsRuleArea(bool aEnable)
virtual void SetPosOffset(int aX_offs, int aY_offs)
void Add(BOARD_ITEM *aItem, ADD_MODE aMode=ADD_MODE::INSERT) override
Adds an item to the container.
static int GetDefaultHatchPitch()
void SetDoNotAllowPads(bool aEnable)
virtual void SetPosOffset(int aX_offs, int aY_offs) override
bool IsNonCopperLayer(LAYER_NUM aLayerId)
Test whether a layer is a non copper layer.
void SetDoNotAllowVias(bool aEnable)
void SetWidth(int aWidth)
Handle a list of polygons defining a copper zone.
void SetDrawCoord()
Set draw coordinates (absolute values ) from relative coordinates.
void SetStart0(const wxPoint &aPoint)
void FormPolygon(XNODE *aNode, VERTICES_ARRAY *aPolygon, const wxString &aDefaultUnits, const wxString &actualConversion)
PCB_LAYER_ID GetKiCadLayer() const
Hold an XML or S-expression element.
void SetPolyPoints(const std::vector< wxPoint > &aPoints)
bool AppendCorner(wxPoint aPosition, int aHoleIdx, bool aAllowDuplication=false)
Add a new corner to the zone outline (to the main outline or a hole)
Information pertinent to a Pcbnew printed circuit board.
void SetDoNotAllowCopperPour(bool aEnable)
PCB_LAYER_ID m_KiCadLayer
XNODE * FindNode(XNODE *aChild, const wxString &aTag)
constexpr ret_type KiROUND(fp_type v)
Round a floating point number to an integer using "round halfway cases away from zero".
void SetDoublePrecisionPosition(const wxString &aStr, const wxString &aDefaultMeasurementUnit, double *aX, double *aY, const wxString &aActualConversion)
virtual void SetLayer(PCB_LAYER_ID aLayer) override
Set the layer this item is on.
void SetLocalClearance(int aClearance)
void AssignNet(const wxString &aNetName)
PCB_POLYGON(PCB_CALLBACKS *aCallbacks, BOARD *aBoard, int aPCadLayer)
void SetDoNotAllowFootprints(bool aEnable)