KiCad PCB EDA Suite
|
Gerbview-specific implementation of the LAYER_PRESENTATION interface. More...
Public Member Functions | |
GBR_LAYER_PRESENTATION (GERBVIEW_FRAME &aFrame) | |
COLOR4D | getLayerColor (int aLayer) const override |
wxString | getLayerName (int aLayer) const override |
void | DrawColorSwatch (wxBitmap &aLayerbmp, int aLayer) const |
Fill the layer bitmap aLayerbmp with the layer color for the layer ID. | |
std::unique_ptr< wxBitmap > | CreateLayerPairIcon (int aLeftLayer, int aRightLayer, int aScale) 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 std::unique_ptr< wxBitmap > | CreateLayerPairIcon (const KIGFX::COLOR4D &aBgColor, const KIGFX::COLOR4D &aTopColor, const KIGFX::COLOR4D &aBottomColor, int aScale) |
Create a layer pair "side-by-side swatch" icon. | |
Private Attributes | |
GERBVIEW_FRAME & | m_frame |
Gerbview-specific implementation of the LAYER_PRESENTATION interface.
Definition at line 41 of file gbr_layer_box_selector.cpp.
|
inline |
Definition at line 44 of file gbr_layer_box_selector.cpp.
|
staticinherited |
Create a layer pair "side-by-side swatch" icon.
Definition at line 108 of file layer_presentation.cpp.
References BM_LAYERICON_SIZE, ICON_BLACK, ICON_WHITE, image, s_BitmapLayerIcon, KIGFX::COLOR4D::ToColour(), and KIGFX::COLOR4D::WithAlpha().
Referenced by LAYER_PRESENTATION::CreateLayerPairIcon(), COPPER_LAYERS_PAIR_PRESETS_UI::fillRowFromLayerPair(), and PCB_EDIT_FRAME::PrepareLayerIndicator().
|
inherited |
Create a layer pair "side-by-side swatch" icon for the given layer pair with the style of this presentation.
Definition at line 163 of file layer_presentation.cpp.
References LAYER_PRESENTATION::CreateLayerPairIcon(), LAYER_PRESENTATION::getLayerColor(), and LAYER_PCB_BACKGROUND.
|
staticinherited |
Definition at line 35 of file layer_presentation.cpp.
References KIGFX::COLOR4D::ToColour(), KIGFX::COLOR4D::UNSPECIFIED, and KIGFX::COLOR4D::WithAlpha().
Referenced by PANEL_SETUP_BOARD_STACKUP::createColorBox(), GRID_CELL_LAYER_RENDERER::Draw(), LAYER_PRESENTATION::DrawColorSwatch(), PANEL_SETUP_BOARD_STACKUP::onColorSelected(), and PANEL_SETUP_BOARD_STACKUP::synchronizeWithBoard().
|
inherited |
Fill the layer bitmap aLayerbmp with the layer color for the layer ID.
Definition at line 63 of file layer_presentation.cpp.
References color, LAYER_PRESENTATION::DrawColorSwatch(), LAYER_PRESENTATION::getLayerColor(), and LAYER_PCB_BACKGROUND.
|
inlineoverridevirtual |
Implements LAYER_PRESENTATION.
Definition at line 47 of file gbr_layer_box_selector.cpp.
References GERBER_DRAW_LAYER, GERBVIEW_FRAME::GetLayerColor(), and m_frame.
|
inlineoverridevirtual |
Implements LAYER_PRESENTATION.
Definition at line 53 of file gbr_layer_box_selector.cpp.
References GERBER_FILE_IMAGE_LIST::GetDisplayName(), GERBER_FILE_IMAGE_LIST::GetImagesList(), and name.
|
private |
Definition at line 62 of file gbr_layer_box_selector.cpp.
Referenced by getLayerColor().