21 #ifndef __GERBVIEW_PAINTER_H 22 #define __GERBVIEW_PAINTER_H 187 virtual bool Draw(
const VIEW_ITEM* aItem,
int aLayer )
override;
204 bool aFilled,
bool aShift =
false );
GERBVIEW_RENDER_SETTINGS m_gerbviewSettings
Class GBR_DISPLAY_OPTIONS is a helper class to handle display options (filling modes and afew other o...
bool m_showNegativeItems
Flag determining if negative items should be drawn with a "ghost" color.
GERBVIEW_PAINTER(GAL *aGal)
const COLOR4D & GetBackgroundColor() override
Return current background color settings.
The Cairo implementation of the graphics abstraction layer.
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
static const double MAX_FONT_SIZE
Maximum font size for D-Codes and other strings.
COLOR4D m_layerColors[LAYER_ID_COUNT]
const COLOR4D & GetGridColor() override
Return current grid color settings.
void draw(GERBER_DRAW_ITEM *aVia, int aLayer)
const COLOR4D & GetCursorColor() override
Return current cursor color settings.
bool m_lineFill
Flag determining if lines should be drawn with fill.
Hold the image data and parameters for one gerber file and layer parameters.
virtual bool Draw(const VIEW_ITEM *aItem, int aLayer) override
Takes an instance of VIEW_ITEM and passes it to a function that knows how to draw the item.
void drawFlashedShape(GERBER_DRAW_ITEM *aItem, bool aFilled)
Helper to draw a flashed shape (aka spot)
bool IsShowNegativeItems() const
An abstract base class for deriving all objects that can be added to a VIEW.
int getLineThickness(int aActualThickness) const
Get the thickness to draw for a line (e.g.
bool m_spotFill
Flag determining if spots should be drawn with fill.
void SetBackgroundColor(const COLOR4D &aColor) override
Set the background color.
bool m_showCodes
Flag determining if D-Codes should be drawn.
void drawApertureMacro(GERBER_DRAW_ITEM *aParent, bool aFilled)
Helper to draw an aperture macro shape.
Contains all the knowledge about how to draw graphical object onto any particular output device.
virtual COLOR4D GetColor(const VIEW_ITEM *aItem, int aLayer) const override
Returns the color that should be used to draw the specific VIEW_ITEM on the specific layer using curr...
wxString m_netHighlightString
If set to anything but an empty string, will highlight items with matching net.
wxString m_attributeHighlightString
If set to anything but an empty string, will highlight items with matching attribute.
Methods for drawing GerbView specific items.
virtual void update()
Precalculates extra colors for layers (e.g.
Represent a set of closed polygons.
void ClearHighlightSelections()
Clear all highlight selections (dcode, net, component, attribute selection)
wxString m_componentHighlightString
If set to anything but an empty string, will highlight items with matching component.
Store GerbView specific render settings.
GERBVIEW_RENDER_SETTINGS()
virtual GERBVIEW_RENDER_SETTINGS * GetSettings() override
Return a pointer to current settings that are going to be used when drawing items.
bool m_polygonFill
Flag determining if polygons should be drawn with fill.
void LoadColors(const COLOR_SETTINGS *aSettings) override
int m_dcodeHighlightValue
If set to anything but >0 (in fact 10 the min dcode value), will highlight items with matching dcode.
A base class for most all the KiCad significant classes used in schematics and boards.
void drawPolygon(GERBER_DRAW_ITEM *aParent, const SHAPE_POLY_SET &aPolygon, bool aFilled, bool aShift=false)
Helper routine to draw a polygon.
void LoadDisplayOptions(const GBR_DISPLAY_OPTIONS &aOptions)
Load settings related to display options.
Color settings are a bit different than most of the settings objects in that there can be more than o...
const COLOR4D & GetLayerColor(int aLayer) const
Return the color used to draw a layer.
void SetLayerColor(int aLayer, const COLOR4D &aColor)
Change the color used to draw a layer.
bool m_diffMode
Flag determining if layers should be rendered in "diff" mode.
bool IsPolygonFill() const
Abstract interface for drawing on a 2D-surface.
A color representation with 4 components: red, green, blue, alpha.