~cern-kicad/kicad/kicad-pns-tom

« back to all changes in this revision

Viewing changes to pcbnew/class_drawsegment.h

All: use CPOLYGONS_LIST, a typedef of  std::vector<CPolyPt> to handle a Corners  Polygons List. 
This is a starting point of some code enhancements relative to polygons in Pcbew and 3D viewer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
211
211
     * clearance when the circle is approximated by segment bigger or equal
212
212
     * to the real clearance value (usually near from 1.0)
213
213
     */
214
 
    void TransformShapeWithClearanceToPolygon( std::vector <CPolyPt>& aCornerBuffer,
215
 
                                               int                    aClearanceValue,
216
 
                                               int                    aCircleToSegmentsCount,
217
 
                                               double                 aCorrectionFactor ) const;
 
214
    void TransformShapeWithClearanceToPolygon( CPOLYGONS_LIST& aCornerBuffer,
 
215
                                               int             aClearanceValue,
 
216
                                               int             aCircleToSegmentsCount,
 
217
                                               double          aCorrectionFactor ) const;
218
218
 
219
219
    virtual wxString GetSelectMenuText() const;
220
220