67                                                const wxSize& size, 
int n,
 
   68                                                const wxString choices[] ) :
 
 
   85    for( 
unsigned layerid = 0; layerid < images.
ImagesMaxCount(); ++layerid )
 
   95        wxVector<wxBitmap> bitmaps;
 
  103            bmp.SetScaleFactor( 
scale );
 
  104            bitmaps.push_back( bmp );
 
  108                wxBitmapBundle::FromBitmaps( bitmaps ), (
void*) (intptr_t) layerid );
 
  121        SetMinSize( wxSize( -1, -1 ) );
 
  122        wxSize bestSize = GetBestSize();
 
  124        bestSize.x = GetBestSize().x + size + 10;
 
  125        SetMinSize( bestSize );
 
  127        SetSelection( wxNOT_FOUND );
 
 
std::unique_ptr< LAYER_PRESENTATION > m_layerPresentation
 
bool isLayerEnabled(int aLayer) const override
Return true if the layer id is enabled (i.e. is it should be displayed).
 
GBR_LAYER_BOX_SELECTOR(wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, int n=0, const wxString choices[]=nullptr)
 
Gerbview-specific implementation of the LAYER_PRESENTATION interface.
 
GBR_LAYER_PRESENTATION(GERBVIEW_FRAME &aFrame)
 
COLOR4D getLayerColor(int aLayer) const override
 
wxString getLayerName(int aLayer) const override
 
GERBER_FILE_IMAGE_LIST is a helper class to handle a list of GERBER_FILE_IMAGE files which are loaded...
 
static GERBER_FILE_IMAGE_LIST & GetImagesList()
 
const wxString GetDisplayName(int aIdx, bool aNameOnly=false, bool aFullName=false)
Get the display name for the layer at aIdx.
 
unsigned ImagesMaxCount()
 
GERBER_FILE_IMAGE * GetGbrImage(int aIdx)
 
A color representation with 4 components: red, green, blue, alpha.
 
LAYER_BOX_SELECTOR(wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, int n=0, const wxString choices[]=nullptr)
 
Base class for an object that can provide information about presenting layers (colours,...
 
#define GERBER_DRAW_LAYER(x)