|
KiCad PCB EDA Suite
|
Base class for an object that can provide information about presenting layers (colours, etc). More...
#include <layer_presentation.h>
Public Member Functions | |
| virtual | ~LAYER_PRESENTATION () |
| virtual COLOR4D | getLayerColor (int aLayer) const =0 |
| virtual wxString | getLayerName (int aLayer) const =0 |
| void | DrawColorSwatch (wxBitmap &aLayerbmp, int aLayer) const |
| Fill the layer bitmap aLayerbmp with the layer color for the layer ID. | |
| wxBitmapBundle | CreateLayerPairIcon (int aLeftLayer, int aRightLayer, int aDefSize=24) const |
| Create a layer pair "side-by-side swatch" icon for the given layer pair with the style of this presentation. | |
Static Public Member Functions | |
| static void | DrawColorSwatch (wxBitmap &aLayerbmp, const COLOR4D &aBackground, const COLOR4D &aColor) |
| static wxBitmapBundle | CreateLayerPairIcon (const COLOR4D &aTopColor, const COLOR4D &aBottomColor, int aDefSize=24) |
| Create a layer pair "side-by-side swatch" icon. | |
Base class for an object that can provide information about presenting layers (colours, etc).
Definition at line 39 of file layer_presentation.h.
|
inlinevirtual |
Definition at line 42 of file layer_presentation.h.
|
static |
Create a layer pair "side-by-side swatch" icon.
Definition at line 135 of file layer_presentation.cpp.
References createLayerPairBitmapAtSize().
Referenced by CreateLayerPairIcon(), and PCB_EDIT_FRAME::PrepareLayerIndicator().
| wxBitmapBundle LAYER_PRESENTATION::CreateLayerPairIcon | ( | int | aLeftLayer, |
| int | aRightLayer, | ||
| int | aDefSize = 24 ) const |
Create a layer pair "side-by-side swatch" icon for the given layer pair with the style of this presentation.
Definition at line 150 of file layer_presentation.cpp.
References CreateLayerPairIcon(), and getLayerColor().
|
static |
Definition at line 36 of file layer_presentation.cpp.
References KIGFX::COLOR4D::ToColour(), COLOR4D::UNSPECIFIED, and KIGFX::COLOR4D::WithAlpha().
Referenced by PANEL_SETUP_BOARD_STACKUP::createColorBox(), GRID_CELL_LAYER_RENDERER::Draw(), DrawColorSwatch(), PANEL_SETUP_BOARD_STACKUP::onColorSelected(), and PANEL_SETUP_BOARD_STACKUP::synchronizeWithBoard().
| void LAYER_PRESENTATION::DrawColorSwatch | ( | wxBitmap & | aLayerbmp, |
| int | aLayer ) const |
Fill the layer bitmap aLayerbmp with the layer color for the layer ID.
Definition at line 65 of file layer_presentation.cpp.
References DrawColorSwatch(), getLayerColor(), and LAYER_PCB_BACKGROUND.
|
pure virtual |
Implemented in GBR_LAYER_PRESENTATION, and PCB_LAYER_PRESENTATION.
Referenced by CreateLayerPairIcon(), and DrawColorSwatch().
|
pure virtual |
Implemented in GBR_LAYER_PRESENTATION, and PCB_LAYER_PRESENTATION.