29 #ifndef GERBER_DRAW_ITEM_H 30 #define GERBER_DRAW_ITEM_H 127 void MoveAB(
const wxPoint& aMoveVector );
134 void MoveXY(
const wxPoint& aMoveVector );
213 bool HitTest(
const wxPoint& aRefPos,
int aAccuracy = 0 )
const override;
223 bool HitTest(
const EDA_RECT& aRefArea,
bool aContained,
int aAccuracy = 0 )
const override;
230 return wxT(
"GERBER_DRAW_ITEM" );
234 void Show(
int nestLevel, std::ostream& os )
const override;
238 virtual void ViewGetLayers(
int aLayers[],
int& aCount )
const override;
void SetLayerParameters()
Initialize parameters from Image and Layer parameters found in the gerber file: m_UnitsMetric,...
A list of GERBER_DRAW_ITEM objects currently loaded.
D_CODE * GetDcodeDescr() const
Return the GetDcodeDescr of this object, or NULL.
wxString GetClass() const override
void MoveAB(const wxPoint &aMoveVector)
Move this object.
The Cairo implementation of the graphics abstraction layer.
bool HasNegativeItems()
Optimize screen refresh (when no items are in background color refresh can be faster).
VECTOR2I GetABPosition(const VECTOR2I &aXYPosition) const
virtual const BOX2I ViewBBox() const override
int GetLayer() const
Return the layer this item is on.
Hold the image data and parameters for one gerber file and layer parameters.
SHAPE_POLY_SET m_AbsolutePolygon
GERBER_DRAW_ITEM(GERBER_FILE_IMAGE *aGerberparams)
void Print(wxDC *aDC, const wxPoint &aOffset, GBR_DISPLAY_OPTIONS *aOptions)
const EDA_RECT GetBoundingBox() const override
Return the orthogonal bounding box of this object for display purposes.
bool HitTest(const wxPoint &aRefPos, int aAccuracy=0) const override
Test if the given wxPoint is within the bounds of this object.
void SetNetAttributes(const GBR_NETLIST_METADATA &aNetAttributes)
BITMAPS GetMenuImage() const override
Return a pointer to an image to be used in menus.
The base class for create windows for drawing purpose.
virtual void ViewGetLayers(int aLayers[], int &aCount) const override
SEARCH_RESULT Visit(INSPECTOR inspector, void *testData, const KICAD_T scanTypes[]) override
Return the text to display to be used in the selection clarification context menu when multiple items...
const INSPECTOR_FUNC & INSPECTOR
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
void GetMsgPanelInfo(EDA_DRAW_FRAME *aFrame, std::vector< MSG_PANEL_ITEM > &aList) override
Populate aList of MSG_PANEL_ITEM objects with it's internal state for display purposes.
wxPoint GetABPosition(const wxPoint &aXYPosition) const
Return the image position of aPosition for this object.
Represent a set of closed polygons.
GBR_NETLIST_METADATA m_netAttributes
the string given by a TO attribute set in aperture (dcode).
bool GetTextD_CodePrms(int &aSize, wxPoint &aPos, double &aOrientation)
Return the best size and orientation to display the D_Code on screen.
const GBR_NETLIST_METADATA & GetNetAttributes() const
void SetPosition(const wxPoint &aPos) override
void ConvertSegmentToPolygon()
Convert a line to an equivalent polygon.
virtual wxString GetSelectMenuText(EDA_UNITS aUnits) const override
Return a pointer to an image to be used in menus.
A gerber DCODE (also called Aperture) definition.
BITMAPS
A list of all bitmap identifiers.
wxPoint GetPosition() const override
Return the position of this object.
Handle the component boundary box.
A base class for most all the KiCad significant classes used in schematics and boards.
void SetLayerPolarity(bool aNegative)
void PrintGerberPoly(wxDC *aDC, const COLOR4D &aColor, const wxPoint &aOffset, bool aFilledShape)
Print the polygon stored in m_PolyCorners.
wxPoint GetXYPosition(const wxPoint &aABPosition) const
Return the image position of aPosition for this object.
EDA_MSG_PANEL items for displaying messages.
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
void MoveXY(const wxPoint &aMoveVector)
Move this object.
bool GetLayerPolarity() const
GERBER_FILE_IMAGE * m_GerberImageFile
Base PCB main window class for Pcbnew, Gerbview, and CvPcb footprint viewer.
wxString ShowGBRShape() const
double ViewGetLOD(int aLayer, KIGFX::VIEW *aView) const override
A color representation with 4 components: red, green, blue, alpha.