KiCad PCB EDA Suite
Loading...
Searching...
No Matches
gerbview_printout.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1992-2016 KiCad Developers, see AUTHORS.txt for contributors.
3 * Copyright (C) 2018 CERN
4 * Author: Maciej Suminski <[email protected]>
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_PRINTOUT_H
21#define GERBVIEW_PRINTOUT_H
22
23#include <board_printout.h>
24
25class GBR_LAYOUT;
26
28{
29public:
31 const KIGFX::VIEW* aView, const wxString& aTitle );
32
33 bool OnPrintPage( int aPage ) override;
34
35protected:
36 int milsToIU( double aMils ) const override;
37
38 void setupViewLayers( KIGFX::VIEW& aView, const LSET& aLayerSet ) override;
39
40 void setupGal( KIGFX::GAL* aGal ) override;
41
42 BOX2I getBoundingBox() override;
43
44 std::unique_ptr<KIGFX::PAINTER> getPainter( KIGFX::GAL* aGal ) override;
45
46private:
48};
49
50#endif /* GERBVIEW_PRINTOUT_H */
An object derived from wxPrintout to handle the necessary information to control a printer when print...
A list of GERBER_DRAW_ITEM objects currently loaded.
Definition: gbr_layout.h:46
void setupGal(KIGFX::GAL *aGal) override
Returns bounding box of the printed objects (excluding drawing-sheet frame)
std::unique_ptr< KIGFX::PAINTER > getPainter(KIGFX::GAL *aGal) override
Source VIEW object (note that actual printing only refers to this object)
bool OnPrintPage(int aPage) override
int milsToIU(double aMils) const override
< Convert mils to internal units
void setupViewLayers(KIGFX::VIEW &aView, const LSET &aLayerSet) override
Configures PAINTER object for a printout.
BOX2I getBoundingBox() override
Returns a PAINTER instance used to draw the items.
GBR_LAYOUT * m_layout
Abstract interface for drawing on a 2D-surface.
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
Definition: view.h:68
LSET is a set of PCB_LAYER_IDs.
Definition: layer_ids.h:575