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