Add default parameter to GetEffectivePolygon()

Allows legacy plugins to use this function

(cherry picked from commit 6b3ac54a41)
This commit is contained in:
Seth Hillbrand 2023-12-01 09:24:54 -08:00
parent fe69da4cb8
commit fc86de34f8
1 changed files with 5 additions and 4 deletions

View File

@ -33,6 +33,7 @@
#include <geometry/shape_compound.h>
#include <pad_shapes.h>
#include <geometry/eda_angle.h>
#include <geometry/geometry_utils.h>
#include <core/arraydim.h>
class PCB_SHAPE;
@ -436,7 +437,7 @@ public:
* @param ignoreLineWidth used for edge cuts where the line width is only for visualization.
*/
void TransformShapeToPolygon( SHAPE_POLY_SET& aBuffer, PCB_LAYER_ID aLayer, int aClearance,
int aMaxError, ERROR_LOC aErrorLoc,
int aMaxError, ERROR_LOC aErrorLoc = ERROR_INSIDE,
bool ignoreLineWidth = false ) const override;
/**
@ -449,7 +450,7 @@ public:
* @return false if the pad has no hole, true otherwise.
*/
bool TransformHoleToPolygon( SHAPE_POLY_SET& aBuffer, int aClearance, int aError,
ERROR_LOC aErrorLoc ) const;
ERROR_LOC aErrorLoc = ERROR_INSIDE ) const;
/**
* Some pad shapes can be complex (rounded/chamfered rectangle), even without considering
@ -470,7 +471,7 @@ public:
GetEffectiveShape( PCB_LAYER_ID aLayer = UNDEFINED_LAYER,
FLASHING flashPTHPads = FLASHING::DEFAULT ) const override;
const std::shared_ptr<SHAPE_POLY_SET>& GetEffectivePolygon( ERROR_LOC aErrorLoc ) const;
const std::shared_ptr<SHAPE_POLY_SET>& GetEffectivePolygon( ERROR_LOC aErrorLoc = ERROR_INSIDE ) const;
/**
* Return a SHAPE_SEGMENT object representing the pad's hole.
@ -730,7 +731,7 @@ public:
* the dirty bit.
*/
void BuildEffectiveShapes( PCB_LAYER_ID aLayer ) const;
void BuildEffectivePolygon( ERROR_LOC aErrorLoc ) const;
void BuildEffectivePolygon( ERROR_LOC aErrorLoc = ERROR_INSIDE ) const;
virtual void ViewGetLayers( int aLayers[], int& aCount ) const override;