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.
 
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.
 

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.

References m_frame.

Member Function Documentation

◆ CreateLayerPairIcon() [1/2]

wxBitmapBundle LAYER_PRESENTATION::CreateLayerPairIcon ( const COLOR4D & aTopColor,
const COLOR4D & aBottomColor,
int aDefSize = 24 )
staticinherited

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().

◆ CreateLayerPairIcon() [2/2]

wxBitmapBundle LAYER_PRESENTATION::CreateLayerPairIcon ( int aLeftLayer,
int aRightLayer,
int aDefSize = 24 ) 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 150 of file layer_presentation.cpp.

References CreateLayerPairIcon(), and getLayerColor().

◆ DrawColorSwatch() [1/2]

void LAYER_PRESENTATION::DrawColorSwatch ( wxBitmap & aLayerbmp,
const COLOR4D & aBackground,
const COLOR4D & aColor )
staticinherited

◆ 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 65 of file layer_presentation.cpp.

References DrawColorSwatch(), getLayerColor(), and LAYER_PCB_BACKGROUND.

◆ getLayerColor()

COLOR4D GBR_LAYER_PRESENTATION::getLayerColor ( int aLayer) const
inlineoverridevirtual

Implements LAYER_PRESENTATION.

Definition at line 47 of file gbr_layer_box_selector.cpp.

References GERBER_DRAW_LAYER, and m_frame.

◆ 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 GBR_LAYER_PRESENTATION(), and getLayerColor().


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