70#define LAST_DCODE 10000
71#define TOOLS_MAX_COUNT (LAST_DCODE + 1)
147 const VECTOR2I& aShapePos,
bool aFilledShape );
164 bool aFilled,
const VECTOR2I& aPosition );
Support the "aperture macro" defined within standard RS274X.
A gerber DCODE (also called Aperture) definition.
APERTURE_MACRO * GetMacro() const
std::vector< double > m_am_params
parameters used only when this D_CODE holds a reference to an aperture macro, and these parameters wo...
double GetParam(unsigned aIdx) const
Return a parameter stored in parameter list.
void DrawFlashedShape(const GERBER_DRAW_ITEM *aParent, wxDC *aDC, const COLOR4D &aColor, const VECTOR2I &aShapePos, bool aFilledShape)
Draw the dcode shape for flashed items.
wxString m_AperFunction
the aperture attribute (created by a TA.AperFunction command).
int m_Num_Dcode
D code value ( >= 10 )
int GetShapeDim(GERBER_DRAW_ITEM *aParent)
Calculate a value that can be used to evaluate the size of text when displaying the D-Code of an item...
void DrawFlashedPolygon(const GERBER_DRAW_ITEM *aParent, wxDC *aDC, const COLOR4D &aColor, bool aFilled, const VECTOR2I &aPosition)
A helper function used to draw the polygon stored in m_PolyCorners.
EDA_ANGLE m_Rotation
shape rotation
VECTOR2I m_Drill
dimension of the hole (if any) (drill file)
void SetMacro(APERTURE_MACRO *aMacro)
int m_EdgesCount
in aperture definition Polygon only: number of edges for the polygon
static const wxChar * ShowApertureType(APERTURE_T aType)
Return a character string telling what type of aperture type aType is.
VECTOR2I m_Size
Horizontal and vertical dimensions.
APERTURE_T m_ApertType
Aperture type ( Line, rectangle, circle, oval poly, macro )
bool m_Defined
false if the aperture is not defined in the header
APERTURE_DEF_HOLETYPE m_DrillShape
shape of the hole (0 = no hole, round = 1, rect = 2).
bool m_InUse
false if the aperture (previously defined) is not used to draw something
void AppendParam(double aValue)
Add a parameter to the D_CODE parameter list.
unsigned GetParamCount() const
Return the number of parameters stored in parameter list.
APERTURE_MACRO * m_Macro
no ownership, points to GERBER.m_aperture_macros element.
void ConvertShapeToPolygon(const GERBER_DRAW_ITEM *aParent)
Convert a shape to an equivalent polygon.
A color representation with 4 components: red, green, blue, alpha.
Represent a set of closed polygons.
APERTURE_T
The set of all gerber aperture types allowed from ADD dcode command, like ADD11C,0....