KiCad PCB EDA Suite
class_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 <base_struct.h>
32 #include <class_page_info.h>
33 #include <class_title_block.h>
34 
35 class EDA_DRAW_PANEL;
36 
37 
43 {
44 private:
48 
49 public:
52 
53  const PAGE_INFO& GetPageSettings() const { return m_paper; }
54  void SetPageSettings( const PAGE_INFO& aPageSettings )
55  {
56  m_paper = aPageSettings;
57  }
58 
59  const wxPoint& GetAuxOrigin() const
60  {
61  static wxPoint zero( 0, 0 );
62  return zero;
63  }
64 
65  const TITLE_BLOCK& GetTitleBlock() const
66  {
67  return m_titles;
68  }
69 
70  void SetTitleBlock( const TITLE_BLOCK& aTitleBlock )
71  {
72  m_titles = aTitleBlock;
73  }
74 
81 
87  const EDA_RECT GetBoundingBox() const { return m_BoundingBox; }
88 
89  void SetBoundingBox( const EDA_RECT& aBox ) { m_BoundingBox = aBox; }
90 
91 #if defined(DEBUG)
92  void Show( int nestLevel, std::ostream& os ) const;
93 
94 #endif
95 };
96 
97 #endif // #ifndef CLASS_PL_EDITOR_LAYOUT_H
const wxPoint & GetAuxOrigin() const
EDA_RECT ComputeBoundingBox()
Function ComputeBoundingBox calculates the bounding box containing all Gerber items.
const TITLE_BLOCK & GetTitleBlock() const
Class TITLE_BLOCK holds the information shown in the lower right corner of a plot, printout, or editing view.
const EDA_RECT GetBoundingBox() const
Function GetBoundingBox may be called soon after ComputeBoundingBox() to return the same EDA_RECT...
Class PAGE_INFO describes the page size and margins of a paper page on which to eventually print or p...
Class PL_EDITOR_LAYOUT holds list of GERBER_DRAW_ITEM currently loaded.
const PAGE_INFO & GetPageSettings() const
void SetBoundingBox(const EDA_RECT &aBox)
void SetPageSettings(const PAGE_INFO &aPageSettings)
void SetTitleBlock(const TITLE_BLOCK &aTitleBlock)
Class EDA_RECT handles the component boundary box.
Basic classes for most KiCad items.