42    for( 
unsigned id_param = 1; id_param <= aDcode->
GetParamCount(); id_param++ )
 
 
  117        if( prim_macro.IsAMPrimitiveExposureOn( 
this ) )
 
  119            prim_macro.ConvertBasicShapeToPolygon( 
this, 
m_shape );
 
  123            prim_macro.ConvertBasicShapeToPolygon( 
this, holeBuffer );
 
  127                m_shape.BooleanSubtract( holeBuffer );
 
  142    for( 
int icnt = 0; icnt < 
m_shape.OutlineCount(); icnt++ )
 
  147        for( 
int jj = 0; jj < outline.
PointCount(); jj++ )
 
 
Hold a parameter value for an "aperture macro" as defined within standard RS274X.
 
unsigned GetIndex() const
 
double GetValueFromMacro(APERTURE_MACRO *aApertureMacro) const
 
An aperture macro primitive as given in gerber layer format doc.
 
void InitLocalParams(const D_CODE *aDcode)
Init m_localParamValues to a initial values coming from aDcode and clear m_paramLevelEval must be cal...
 
double GetLocalParamValue(int aIndex)
 
std::map< int, double > m_localParamValues
m_localParamValues is the current value of local parameters after evaluation the key is the local par...
 
int m_paramLevelEval
the current level of local param values evaluation when a primitive is evaluated, if its m_LocalParam...
 
std::vector< AM_PRIMITIVE > m_primitivesList
A list of AM_PRIMITIVEs to define the shape of the aperture macro.
 
void AddLocalParamDefToStack()
A deferred parameter can be defined in aperture macro, but outside aperture primitives.
 
SHAPE_POLY_SET * GetApertureMacroShape(const GERBER_DRAW_ITEM *aParent, const VECTOR2I &aShapePos)
Calculate the primitive shape for flashed items.
 
AM_PARAM & GetLastLocalParamDefFromStack()
 
AM_PARAMS m_localParamStack
m_localparamStack handle a list of local deferred parameters
 
SHAPE_POLY_SET m_shape
The shape of the item, calculated by GetApertureMacroShape.
 
void AddPrimitiveToList(AM_PRIMITIVE &aPrimitive)
Add a new ptimitive ( AMP_CIRCLE, AMP_LINE2 ...) to the list of primitives to define the full shape o...
 
void EvalLocalParams(const AM_PRIMITIVE &aPrimitive)
Evaluate m_localParamValues from current m_paramLevelEval to aPrimitive m_LocalParamLevel if m_paramL...
 
A gerber DCODE (also called Aperture) definition.
 
double GetParam(unsigned aIdx) const
Return a parameter stored in parameter list.
 
unsigned GetParamCount() const
Return the number of parameters stored in parameter list.
 
D_CODE * GetDcodeDescr() const
Return the GetDcodeDescr of this object, or NULL.
 
VECTOR2I GetABPosition(const VECTOR2I &aXYPosition) const
Return the image position of aPosition for this object.
 
Represent a polyline containing arcs as well as line segments: A chain of connected line and/or arc s...
 
void SetPoint(int aIndex, const VECTOR2I &aPos)
Move a point to a specific location.
 
int PointCount() const
Return the number of points (vertices) in this line chain.
 
const VECTOR2I & CPoint(int aIndex) const
Return a reference to a given point in the line chain.
 
Represent a set of closed polygons.
 
void RemoveAllContours()
Remove all outlines & holes (clears) the polygon set.
 
int OutlineCount() const
Return the number of outlines in the set.
 
VECTOR2< int32_t > VECTOR2I