KiCad PCB EDA Suite
pl_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 PL_DRAW_PANEL_GAL_H
21 #define PL_DRAW_PANEL_GAL_H
22 
23 #include <class_draw_panel_gal.h>
24 #include <ws_proxy_view_item.h>
25 #include <ws_painter.h>
26 
27 
29 {
30 public:
31  PL_DRAW_PANEL_GAL( wxWindow* aParentWindow, wxWindowID aWindowId, const wxPoint& aPosition,
32  const wxSize& aSize, KIGFX::GAL_DISPLAY_OPTIONS& aOptions,
33  GAL_TYPE aGalType = GAL_TYPE_OPENGL );
34 
35  virtual ~PL_DRAW_PANEL_GAL();
36 
38  void GetMsgPanelInfo( EDA_UNITS_T aUnits, std::vector<MSG_PANEL_ITEM>& aList ) override;
39 
43  void DisplayWorksheet();
44 
46  bool SwitchBackend( GAL_TYPE aGalType ) override;
47 
49  virtual void SetTopLayer( int aLayer ) override;
50 
51 protected:
53  void setDefaultLayerDeps();
54 
56  std::unique_ptr<KIGFX::WS_PROXY_VIEW_ITEM> m_worksheet;
57 };
58 
59 
60 #endif /* PL_DRAW_PANEL_GAL_H */
std::unique_ptr< KIGFX::WS_PROXY_VIEW_ITEM > m_worksheet
Currently used worksheet
PL_DRAW_PANEL_GAL(wxWindow *aParentWindow, wxWindowID aWindowId, const wxPoint &aPosition, const wxSize &aSize, KIGFX::GAL_DISPLAY_OPTIONS &aOptions, GAL_TYPE aGalType=GAL_TYPE_OPENGL)
bool SwitchBackend(GAL_TYPE aGalType) override
void DisplayWorksheet()
Build and update the list of WS_DRAW_ITEM_xxx showing the frame layout.
void GetMsgPanelInfo(EDA_UNITS_T aUnits, std::vector< MSG_PANEL_ITEM > &aList) override
void setDefaultLayerDeps()
Sets rendering targets & dependencies for layers.
virtual void SetTopLayer(int aLayer) override
EDA_UNITS_T
Definition: common.h:133