28#ifndef BOARD_PRINTOUT_H
29#define BOARD_PRINTOUT_H
71 const wxString& aTitle );
75 void GetPageInfo(
int* minPage,
int* maxPage,
int* selPageFrom,
int* selPageTo )
override;
92 virtual void DrawPage(
const wxString& aLayerName = wxEmptyString,
93 int aPageNum = 1,
int aPageCount = 1 );
97 virtual int milsToIU(
double aMils )
const = 0;
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
An object derived from wxPrintout to handle the necessary information to control a printer when print...
virtual void DrawPage(const wxString &aLayerName=wxEmptyString, int aPageNum=1, int aPageCount=1)
Print a page (or a set of pages).
bool m_gerbviewPrint
True if the caller is Gerbview, false for Pcbnew.
virtual void setupPainter(KIGFX::PAINTER &aPainter)
Configures GAL object for a printout.
virtual int milsToIU(double aMils) const =0
< Convert mils to internal units
virtual std::unique_ptr< KIGFX::PAINTER > getPainter(KIGFX::GAL *aGal)=0
Source VIEW object (note that actual printing only refers to this object)
const KIGFX::VIEW * m_view
Printout parameters.
virtual void setupViewLayers(KIGFX::VIEW &aView, const LSET &aLayerSet)
Configures PAINTER object for a printout.
void GetPageInfo(int *minPage, int *maxPage, int *selPageFrom, int *selPageTo) override
bool HasPage(int aPage) override
virtual void setupGal(KIGFX::GAL *aGal)
Returns bounding box of the printed objects (excluding drawing-sheet frame)
BOARD_PRINTOUT_SETTINGS m_settings
virtual BOX2I getBoundingBox()=0
Returns a PAINTER instance used to draw the items.
virtual ~BOARD_PRINTOUT()
Abstract interface for drawing on a 2D-surface.
Contains all the knowledge about how to draw graphical object onto any particular output device.
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
LSET is a set of PCB_LAYER_IDs.
Describe the page size and margins of a paper page on which to eventually print or plot.
The Cairo implementation of the graphics abstraction layer.
void Load(APP_SETTINGS_BASE *aConfig) override
LSET m_LayerSet
Layers to print.
void Save(APP_SETTINGS_BASE *aConfig) override
bool m_Mirror
Print mirrored.
virtual ~BOARD_PRINTOUT_SETTINGS()
Handle the parameters used to print a board drawing.
int m_pageCount
Number of pages to print.