KiCad PCB EDA Suite
gerbview_draw_panel_gal.h
Go to the documentation of this file.
1 /*
2  * This program source code file is part of KiCad, a free EDA CAD application.
3  *
4  * Copyright (C) 2017 KiCad Developers, see AUTHORS.txt for contributors.
5  *
6  * This program is free software: you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License as published by the
8  * Free Software Foundation, either version 3 of the License, or (at your
9  * option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License along
17  * with this program. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef GERBVIEW_DRAW_PANEL_GAL_H_
21 #define GERBVIEW_DRAW_PANEL_GAL_H_
22 
23 #include <class_draw_panel_gal.h>
24 #include <worksheet_viewitem.h>
25 
26 namespace KIGFX
27 {
28  class WORKSHEET_VIEWITEM;
29 }
30 
32 
33 
35 {
36 public:
37  GERBVIEW_DRAW_PANEL_GAL( wxWindow* aParentWindow, wxWindowID aWindowId, const wxPoint& aPosition,
38  const wxSize& aSize, KIGFX::GAL_DISPLAY_OPTIONS& aOptions,
39  GAL_TYPE aGalType = GAL_TYPE_OPENGL );
40 
41  virtual ~GERBVIEW_DRAW_PANEL_GAL();
42 
48  void UseColorScheme( const COLORS_DESIGN_SETTINGS* aSettings );
49 
51  virtual void SetHighContrastLayer( int aLayer ) override;
52 
54  void GetMsgPanelInfo( EDA_UNITS_T aUnits, std::vector<MSG_PANEL_ITEM>& aList ) override;
55 
57  void OnShow() override;
58 
59  bool SwitchBackend( GAL_TYPE aGalType ) override;
60 
62  virtual void SetTopLayer( int aLayer ) override;
63 
65  BOX2I GetDefaultViewBBox() const override;
66 
72  void SetWorksheet( KIGFX::WORKSHEET_VIEWITEM* aWorksheet );
73 
74 protected:
76  void setDefaultLayerDeps();
77 
79  std::unique_ptr<KIGFX::WORKSHEET_VIEWITEM> m_worksheet;
80 };
81 
82 
83 #endif /* GERBVIEW_DRAW_PANEL_GAL_H_ */
Class CAIRO_GAL is the cairo implementation of the graphics abstraction layer.
Definition: class_module.h:58
Class that handles properties and drawing of worksheet layout.
std::unique_ptr< KIGFX::WORKSHEET_VIEWITEM > m_worksheet
Currently used worksheet
Class COLORS_DESIGN_SETTINGS is a list of color settings for designs in Pcbnew.
EDA_UNITS_T
Definition: common.h:159