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