KiCad PCB EDA Suite
Loading...
Searching...
No Matches
GBR_LAYER_PRESENTATION Class Reference

Gerbview-specific implementation of the LAYER_PRESENTATION interface. More...

Inheritance diagram for GBR_LAYER_PRESENTATION:
LAYER_PRESENTATION

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_FRAMEm_frame
 

Detailed Description

Gerbview-specific implementation of the LAYER_PRESENTATION interface.

Definition at line 41 of file gbr_layer_box_selector.cpp.

Constructor & Destructor Documentation

◆ GBR_LAYER_PRESENTATION()

GBR_LAYER_PRESENTATION::GBR_LAYER_PRESENTATION ( GERBVIEW_FRAME aFrame)
inline

Definition at line 44 of file gbr_layer_box_selector.cpp.

Member Function Documentation

◆ CreateLayerPairIcon() [1/2]

std::unique_ptr< wxBitmap > LAYER_PRESENTATION::CreateLayerPairIcon ( const KIGFX::COLOR4D aBgColor,
const KIGFX::COLOR4D aTopColor,
const KIGFX::COLOR4D aBottomColor,
int  aScale 
)
staticinherited

◆ CreateLayerPairIcon() [2/2]

std::unique_ptr< wxBitmap > LAYER_PRESENTATION::CreateLayerPairIcon ( int  aLeftLayer,
int  aRightLayer,
int  aScale 
) const
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.

◆ DrawColorSwatch() [1/2]

◆ DrawColorSwatch() [2/2]

void LAYER_PRESENTATION::DrawColorSwatch ( wxBitmap &  aLayerbmp,
int  aLayer 
) const
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.

◆ getLayerColor()

COLOR4D GBR_LAYER_PRESENTATION::getLayerColor ( int  aLayer) const
inlineoverridevirtual

◆ getLayerName()

wxString GBR_LAYER_PRESENTATION::getLayerName ( int  aLayer) const
inlineoverridevirtual

Member Data Documentation

◆ m_frame

GERBVIEW_FRAME& GBR_LAYER_PRESENTATION::m_frame
private

Definition at line 62 of file gbr_layer_box_selector.cpp.

Referenced by getLayerColor().


The documentation for this class was generated from the following file: