|
KiCad PCB EDA Suite
|
Contains methods for drawing PCB-specific items. More...
#include <pcb_painter.h>
Public Member Functions | |
| PCB_PAINTER (GAL *aGal, FRAME_T aFrameType) | |
| virtual PCB_RENDER_SETTINGS * | GetSettings () override |
| Return a pointer to current settings that are going to be used when drawing items. | |
| 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. | |
| virtual bool | HasUniformColor (const VIEW_ITEM *aItem, int aLayer) const override |
| Return false when drawing the item on the given layer emits more than one colour, so a cached group of it cannot be recoloured in place and must be repainted instead. | |
Protected Member Functions | |
| PCB_VIEWERS_SETTINGS_BASE * | viewer_settings () |
| bool | zoneOutlineOnly (const ZONE *aZone) const |
| True when a zone's only visual is its outline, as for a rule area or outline-only display. | |
| void | draw (const PCB_TRACK *aTrack, int aLayer) |
| void | draw (const PCB_ARC *aArc, int aLayer) |
| void | draw (const PCB_VIA *aVia, int aLayer) |
| void | draw (const PAD *aPad, int aLayer) |
| void | draw (const PCB_DRILL_MAP *aMap, int aLayer) |
| void | draw (const PCB_SHAPE *aSegment, int aLayer) |
| void | draw (const PCB_REFERENCE_IMAGE *aBitmap, int aLayer) |
| void | draw (const PCB_FIELD *aField, int aLayer) |
| void | draw (const PCB_TEXT *aText, int aLayer) |
| void | draw (const PCB_TEXTBOX *aText, int aLayer) |
| void | draw (const PCB_TABLE *aTable, int aLayer) |
| void | draw (const FOOTPRINT *aFootprint, int aLayer) |
| void | draw (const PCB_GROUP *aGroup, int aLayer) |
| void | draw (const ZONE *aZone, int aLayer) |
| void | draw (const PCB_BARCODE *aBarcode, int aLayer) |
| void | draw (const PCB_DIMENSION_BASE *aDimension, int aLayer) |
| void | draw (const PCB_POINT *aPoint, int aLayer) |
| void | draw (const PCB_TARGET *aTarget) |
| void | draw (const PCB_MARKER *aMarker, int aLayer) |
| void | draw (const PCB_BOARD_OUTLINE *aBoardOutline, int aLayer) |
| void | draw (const PCB_GRID_ITEM *aGridItem, int aLayer) |
| void | drawDrillSymbol (const BOARD_ITEM *aItem, int aLayer) |
| void | drawDrillMarks (const PCB_DRILL_MAP *aMap, const std::vector< DRILL_SYMBOL_ENTRY > &aEntries, const COLOR4D &aColor, const KIFONT::METRICS &aFontMetrics) |
| One hole's marks for one map. | |
| void | drawChartSymbols (const PCB_DRILL_CHART *aChart, int aLayer) |
| int | getLineThickness (int aActualThickness) const |
| Get the thickness to draw for a line (e.g. | |
| virtual PAD_DRILL_SHAPE | getDrillShape (const PAD *aPad) const |
| Return drill shape of a pad. | |
| virtual SHAPE_SEGMENT | getPadHoleShape (const PAD *aPad) const |
| Return hole shape for a pad (internal units). | |
| virtual int | getViaDrillSize (const PCB_VIA *aVia) const |
| Return drill diameter for a via (internal units). | |
| void | strokeText (const wxString &aText, const VECTOR2I &aPosition, const TEXT_ATTRIBUTES &aAttrs, const KIFONT::METRICS &aFontMetrics) |
| void | renderNetNameForSegment (const SHAPE_SEGMENT &aSeg, const COLOR4D &aColor, const wxString &aNetName) const |
| void | drawBackdrillIndicator (const BOARD_ITEM *aItem, const VECTOR2D &aCenter, int aDrillSize, PCB_LAYER_ID aStartLayer, PCB_LAYER_ID aEndLayer) |
| Draw backdrill indicator (two semi-circles) at the given center point. | |
| void | drawPostMachiningIndicator (const BOARD_ITEM *aItem, const VECTOR2D &aCenter, PCB_LAYER_ID aLayer) |
| Draw post-machining indicator (dashed circle) at the given center point. | |
Protected Attributes | |
| PCB_RENDER_SETTINGS | m_pcbSettings |
| FRAME_T | m_frameType |
| int | m_maxError |
| int | m_holePlatingThickness |
| int | m_lockedShadowMargin |
Contains methods for drawing PCB-specific items.
Definition at line 246 of file pcb_painter.h.
Definition at line 698 of file pcb_painter.cpp.
|
overridevirtual |
Takes an instance of VIEW_ITEM and passes it to a function that knows how to draw the item.
| aItem | is an item to be drawn. |
| aLayer | tells which layer is currently rendered so that draw functions may know what to draw (eg. for pads there are separate layers for holes, because they have other dimensions then the pad itself. |
Implements KIGFX::PAINTER.
Definition at line 739 of file pcb_painter.cpp.
|
protected |
Definition at line 3553 of file pcb_painter.cpp.
|
protected |
Definition at line 1916 of file pcb_painter.cpp.
|
protected |
Definition at line 1092 of file pcb_painter.cpp.
|
protected |
Definition at line 3825 of file pcb_painter.cpp.
|
protected |
Definition at line 4222 of file pcb_painter.cpp.
|
protected |
Definition at line 3846 of file pcb_painter.cpp.
|
protected |
Definition at line 1700 of file pcb_painter.cpp.
|
protected |
Definition at line 3236 of file pcb_painter.cpp.
|
protected |
Definition at line 3962 of file pcb_painter.cpp.
|
protected |
Definition at line 3623 of file pcb_painter.cpp.
|
protected |
Definition at line 4125 of file pcb_painter.cpp.
|
protected |
Definition at line 4078 of file pcb_painter.cpp.
|
protected |
Definition at line 3184 of file pcb_painter.cpp.
|
protected |
Definition at line 2640 of file pcb_painter.cpp.
|
protected |
Definition at line 3490 of file pcb_painter.cpp.
|
protected |
Definition at line 4042 of file pcb_painter.cpp.
|
protected |
Definition at line 3243 of file pcb_painter.cpp.
|
protected |
Definition at line 3351 of file pcb_painter.cpp.
|
protected |
Definition at line 936 of file pcb_painter.cpp.
|
protected |
Definition at line 1336 of file pcb_painter.cpp.
|
protected |
Definition at line 3700 of file pcb_painter.cpp.
|
protected |
Draw backdrill indicator (two semi-circles) at the given center point.
| aItem | the board item (for color lookup) |
| aCenter | center point of the indicator |
| aDrillSize | diameter of the backdrill |
| aStartLayer | layer where backdrill starts |
| aEndLayer | layer where backdrill ends |
Definition at line 4249 of file pcb_painter.cpp.
|
protected |
Definition at line 1638 of file pcb_painter.cpp.
|
protected |
One hole's marks for one map.
Shared so that the map can draw them itself while it is being dragged, when the holes' own view bounds still describe where the marks were.
Definition at line 1798 of file pcb_painter.cpp.
|
protected |
Definition at line 1759 of file pcb_painter.cpp.
|
protected |
Draw post-machining indicator (dashed circle) at the given center point.
| aItem | the board item (for color lookup) |
| aCenter | center point of the indicator |
| aLayer | layer to use for color |
Definition at line 4277 of file pcb_painter.cpp.
|
protectedvirtual |
Return drill shape of a pad.
Definition at line 720 of file pcb_painter.cpp.
|
protected |
Get the thickness to draw for a line (e.g.
0 thickness lines get a minimum value).
| aActualThickness | line own thickness |
Definition at line 708 of file pcb_painter.cpp.
|
protectedvirtual |
Return hole shape for a pad (internal units).
Definition at line 726 of file pcb_painter.cpp.
|
inlineoverridevirtual |
Return a pointer to current settings that are going to be used when drawing items.
Implements KIGFX::PAINTER.
Definition at line 251 of file pcb_painter.h.
|
protectedvirtual |
Return drill diameter for a via (internal units).
Definition at line 733 of file pcb_painter.cpp.
|
overridevirtual |
Return false when drawing the item on the given layer emits more than one colour, so a cached group of it cannot be recoloured in place and must be repainted instead.
Reimplemented from KIGFX::PAINTER.
Definition at line 1277 of file pcb_painter.cpp.
|
protected |
Definition at line 1021 of file pcb_painter.cpp.
|
protected |
Definition at line 3153 of file pcb_painter.cpp.
|
protected |
Definition at line 95 of file pcb_painter.cpp.
|
protected |
True when a zone's only visual is its outline, as for a rule area or outline-only display.
Definition at line 1329 of file pcb_painter.cpp.
|
protected |
Definition at line 355 of file pcb_painter.h.
|
protected |
Definition at line 358 of file pcb_painter.h.
|
protected |
Definition at line 359 of file pcb_painter.h.
|
protected |
Definition at line 357 of file pcb_painter.h.
|
protected |
Definition at line 354 of file pcb_painter.h.