21#ifndef __GERBVIEW_PAINTER_H 
   22#define __GERBVIEW_PAINTER_H 
  136    virtual bool Draw( 
const VIEW_ITEM* aItem, 
int aLayer ) 
override;
 
  153                      bool aFilled, 
bool aShift = 
false );
 
 
Color settings are a bit different than most of the settings objects in that there can be more than o...
 
A base class for most all the KiCad significant classes used in schematics and boards.
 
Hold the image data and parameters for one gerber file and layer parameters.
 
A color representation with 4 components: red, green, blue, alpha.
 
static const COLOR4D WHITE
 
static const COLOR4D BLACK
 
Abstract interface for drawing on a 2D-surface.
 
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.
 
GERBVIEW_PAINTER(GAL *aGal)
 
void drawPolygon(GERBER_DRAW_ITEM *aParent, const SHAPE_POLY_SET &aPolygon, bool aFilled, bool aShift=false)
Helper routine to draw a polygon.
 
virtual GERBVIEW_RENDER_SETTINGS * GetSettings() override
Return a pointer to current settings that are going to be used when drawing items.
 
int getLineThickness(int aActualThickness) const
Get the thickness to draw for a line (e.g.
 
void draw(GERBER_DRAW_ITEM *aVia, int aLayer)
 
void drawApertureMacro(GERBER_DRAW_ITEM *aParent, bool aFilled)
Helper to draw an aperture macro shape.
 
GERBVIEW_RENDER_SETTINGS m_gerbviewSettings
 
void drawFlashedShape(GERBER_DRAW_ITEM *aItem, bool aFilled)
Helper to draw a flashed shape (aka spot)
 
Store GerbView specific render settings.
 
void SetBackgroundColor(const COLOR4D &aColor) override
Set the background color.
 
wxString m_attributeHighlightString
If set to anything but an empty string, will highlight items with matching attribute.
 
void LoadColors(const COLOR_SETTINGS *aSettings) override
 
wxString m_componentHighlightString
If set to anything but an empty string, will highlight items with matching component.
 
void ClearHighlightSelections()
Clear all highlight selections (dcode, net, component, attribute selection)
 
int m_dcodeHighlightValue
If set to anything but >0 (in fact 10 the min dcode value), will highlight items with matching dcode.
 
static const double MAX_FONT_SIZE
Maximum font size for D-Codes and other strings.
 
GERBVIEW_RENDER_SETTINGS()
 
wxString m_netHighlightString
If set to anything but an empty string, will highlight items with matching net.
 
friend class GERBVIEW_PAINTER
 
void SetLayerColor(int aLayer, const COLOR4D &aColor)
Change the color used to draw a layer.
 
const COLOR4D & GetCursorColor() override
Return current cursor color settings.
 
const COLOR4D & GetLayerColor(int aLayer) const
Return the color used to draw a layer.
 
const COLOR4D & GetBackgroundColor() const override
Return current background color settings.
 
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...
 
const COLOR4D & GetGridColor() override
Return current grid color settings.
 
bool GetShowPageLimits() const override
 
PAINTER(GAL *aGal)
Initialize this object for painting on any of the polymorphic GRAPHICS_ABSTRACTION_LAYER* derivatives...
 
virtual void update()
Precalculates extra colors for layers (e.g.
 
std::map< int, COLOR4D > m_layerColors
 
An abstract base class for deriving all objects that can be added to a VIEW.
 
Represent a set of closed polygons.
 
@ LAYER_GERBVIEW_BACKGROUND
 
@ LAYER_CURSOR
PCB cursor.
 
The Cairo implementation of the graphics abstraction layer.