KiCad PCB EDA Suite
pl_editor_layout.h
Go to the documentation of this file.
1 
4 /*
5  * This program source code file is part of KiCad, a free EDA CAD application.
6  *
7  * Copyright (C) 2013 CERN
8  * @author Jean-Pierre Charras, jp.charras at wanadoo.fr
9  *
10  * This program is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU General Public License
12  * as published by the Free Software Foundation; either version 2
13  * of the License, or (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, you may find one here:
22  * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
23  * or you may search the http://www.gnu.org website for the version 2 license,
24  * or you may write to the Free Software Foundation, Inc.,
25  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
26  */
27 
28 #ifndef CLASS_PL_EDITOR_LAYOUT_H
29 #define CLASS_PL_EDITOR_LAYOUT_H
30 
31 #include <page_info.h>
32 #include <title_block.h>
34 
35 
40 {
41 private:
45 
47 
48 public:
51 
53  const PAGE_INFO& GetPageSettings() const { return m_paper; }
54  void SetPageSettings( const PAGE_INFO& aPageSettings ) { m_paper = aPageSettings; }
55 
56  const wxPoint& GetAuxOrigin() const
57  {
58  static wxPoint zero( 0, 0 );
59  return zero;
60  }
61 
63  const TITLE_BLOCK& GetTitleBlock() const { return m_titles; }
64  void SetTitleBlock( const TITLE_BLOCK& aTitleBlock ) { m_titles = aTitleBlock; }
65 
67  {
68  return m_drawItemList;
69  }
70 
77 
83  const EDA_RECT GetBoundingBox() const { return m_boundingBox; }
84 
85  void SetBoundingBox( const EDA_RECT& aBox ) { m_boundingBox = aBox; }
86 
87  virtual void GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_ITEM>& aList );
88 
89 #if defined(DEBUG)
90  void Show( int nestLevel, std::ostream& os ) const;
91 #endif
92 };
93 
94 #endif // #ifndef CLASS_PL_EDITOR_LAYOUT_H
const wxPoint & GetAuxOrigin() const
EDA_RECT ComputeBoundingBox()
Function ComputeBoundingBox calculates the bounding box containing all Gerber items.
TITLE_BLOCK m_titles
DS_DRAW_ITEM_LIST m_drawItemList
The base class for create windows for drawing purpose.
Hold the information shown in the lower right corner of a plot, printout, or editing view.
Definition: title_block.h:40
PAGE_INFO & GetPageSettings()
TITLE_BLOCK & GetTitleBlock()
Describe the page size and margins of a paper page on which to eventually print or plot.
Definition: page_info.h:53
PL_EDITOR_LAYOUT.
const PAGE_INFO & GetPageSettings() const
void SetBoundingBox(const EDA_RECT &aBox)
DS_DRAW_ITEM_LIST & GetDrawItems()
virtual void GetMsgPanelInfo(EDA_DRAW_FRAME *aFrame, std::vector< MSG_PANEL_ITEM > &aList)
void SetPageSettings(const PAGE_INFO &aPageSettings)
const TITLE_BLOCK & GetTitleBlock() const
void SetTitleBlock(const TITLE_BLOCK &aTitleBlock)
Handle the component boundary box.
Definition: eda_rect.h:42
Store the list of graphic items: rect, lines, polygons and texts to draw/plot the title block and fra...
Definition: ds_draw_item.h:376
const EDA_RECT GetBoundingBox() const
Function GetBoundingBox may be called soon after ComputeBoundingBox() to return the same EDA_RECT,...