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.
 
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)
Configure #PAINTER 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
Return the #PAINTER instance used to draw the items.
 
const KIGFX::VIEW * m_view
Source VIEW object (note that actual printing only refers to this object).
 
virtual void setupViewLayers(KIGFX::VIEW &aView, const LSET &aLayerSet)
Enable layers visibility for a printout.
 
BOARD_PRINTOUT(const BOARD_PRINTOUT_SETTINGS &aParams, const KIGFX::VIEW *aView, const wxString &aTitle)
 
void GetPageInfo(int *minPage, int *maxPage, int *selPageFrom, int *selPageTo) override
 
bool HasPage(int aPage) override
 
virtual void setupGal(KIGFX::GAL *aGal)
Configure GAL object for a printout.
 
BOARD_PRINTOUT_SETTINGS m_settings
Printout parameters.
 
virtual BOX2I getBoundingBox()=0
Return bounding box of the printed objects (excluding drawing-sheet frame).
 
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
 
BOARD_PRINTOUT_SETTINGS(const PAGE_INFO &aPageInfo)
 
LSET m_LayerSet
Layers to print.
 
void Save(APP_SETTINGS_BASE *aConfig) override
 
bool m_Mirror
Print mirrored.
 
virtual ~BOARD_PRINTOUT_SETTINGS()
 
PRINTOUT_SETTINGS(const PAGE_INFO &aPageInfo)