KiCad PCB EDA Suite
Loading...
Searching...
No Matches
SCH_PRINTOUT Class Reference

Custom print out for printing schematics. More...

#include <sch_printout.h>

Inheritance diagram for SCH_PRINTOUT:

Public Member Functions

 SCH_PRINTOUT (SCH_EDIT_FRAME *aParent, const wxString &aTitle, bool aUseCairo)
 
bool OnPrintPage (int page) override
 
bool HasPage (int page) override
 
bool OnBeginDocument (int startPage, int endPage) override
 
void GetPageInfo (int *minPage, int *maxPage, int *selPageFrom, int *selPageTo) override
 
void PrintPage (SCH_SCREEN *aScreen)
 

Private Member Functions

int milsToIU (int aMils)
 

Private Attributes

SCH_EDIT_FRAMEm_parent
 Source VIEW object (note that actual printing only refers to this object)
 
const KIGFX::SCH_VIEWm_view
 
bool m_useCairo
 

Detailed Description

Custom print out for printing schematics.

Definition at line 38 of file sch_printout.h.

Constructor & Destructor Documentation

◆ SCH_PRINTOUT()

SCH_PRINTOUT::SCH_PRINTOUT ( SCH_EDIT_FRAME aParent,
const wxString &  aTitle,
bool  aUseCairo 
)

Definition at line 40 of file sch_printout.cpp.

References m_parent, m_useCairo, and m_view.

Member Function Documentation

◆ GetPageInfo()

void SCH_PRINTOUT::GetPageInfo ( int *  minPage,
int *  maxPage,
int *  selPageFrom,
int *  selPageTo 
)
override

◆ HasPage()

bool SCH_PRINTOUT::HasPage ( int  page)
override

◆ milsToIU()

int SCH_PRINTOUT::milsToIU ( int  aMils)
private

Definition at line 112 of file sch_printout.cpp.

References EDA_IU_SCALE::IU_PER_MILS, KiROUND(), and schIUScale.

Referenced by PrintPage().

◆ OnBeginDocument()

bool SCH_PRINTOUT::OnBeginDocument ( int  startPage,
int  endPage 
)
override

Definition at line 63 of file sch_printout.cpp.

◆ OnPrintPage()

◆ PrintPage()

void SCH_PRINTOUT::PrintPage ( SCH_SCREEN aScreen)

Definition at line 121 of file sch_printout.cpp.

References APP_SETTINGS_BASE::PRINTING::background, KIGFX::GAL_DISPLAY_OPTIONS::cairo_antialiasing_mode, BOX2< Vec >::Centre(), SCH_SCREEN::CheckIfOnDrawList(), KIGFX::GAL::ClearScreen(), APP_SETTINGS_BASE::PRINTING::color_theme, KIGFX::GAL_PRINT::Create(), KIGFX::VIEW::DataReference(), EESCHEMA_SETTINGS::APPEARANCE::default_font, dummy, SCH_BASE_FRAME::eeconfig(), SCH_RENDER_SETTINGS::GetBackgroundColor(), SCH_BASE_FRAME::GetCanvas(), COLOR_SETTINGS::GetColor(), SCH_BASE_FRAME::GetColorSettings(), SETTINGS_MANAGER::GetColorSettings(), SCH_BASE_FRAME::GetDrawBgColor(), SCH_SCREEN::GetFileName(), BOX2< Vec >::GetHeight(), KIGFX::RENDER_SETTINGS::GetLayerColor(), SCH_SCREEN::GetPageSettings(), SCHEMATIC::GetProperties(), SCH_BASE_FRAME::GetRenderSettings(), SCH_EDIT_FRAME::GetScreen(), EE_SELECTION_TOOL::GetSelection(), PGM_BASE::GetSettingsManager(), PAGE_INFO::GetSizeIU(), TOOL_MANAGER::GetTool(), TOOLS_HOLDER::GetToolManager(), SCH_DRAW_PANEL::GetView(), BOX2< Vec >::GetWidth(), KIGFX::GOOD, GRForceBlackPen(), GRResetPenAndBrush(), GRSFilledRect(), KIGFX::PRINT_CONTEXT::HasNativeLandscapeRotation(), EDA_IU_SCALE::IU_PER_MILS, LAYER_DRAWINGSHEET, LAYER_ID_COUNT, LAYER_SCHEMATIC_BACKGROUND, LAYER_SCHEMATIC_DRAWINGSHEET, LAYER_SELECT_OVERLAY, SCH_RENDER_SETTINGS::LoadColors(), EESCHEMA_SETTINGS::m_Appearance, BASE_SCREEN::m_DrawOrg, SCH_RENDER_SETTINGS::m_OverrideItemColors, m_parent, M_PI_2, APP_SETTINGS_BASE::m_Printing, SCH_RENDER_SETTINGS::m_ShowPinsElectricalType, BASE_SCREEN::m_StartVisu, m_useCairo, m_view, milsToIU(), APP_SETTINGS_BASE::PRINTING::monochrome, Pgm(), SCH_SCREEN::Print(), EDA_DRAW_FRAME::PrintDrawingSheet(), SCH_WORLD_UNIT(), SCH_EDIT_FRAME::Schematic(), SCH_SCREEN::Schematic(), schIUScale, SCH_RENDER_SETTINGS::SetBackgroundColor(), KIGFX::GAL::SetClearColor(), KIGFX::RENDER_SETTINGS::SetDefaultFont(), EDA_DRAW_FRAME::SetDrawBgColor(), KIGFX::RENDER_SETTINGS::SetIsPrinting(), KIGFX::RENDER_SETTINGS::SetLayerColor(), KIGFX::GAL::SetLookAtPoint(), KIGFX::RENDER_SETTINGS::SetPrintBlackAndWhite(), KIGFX::RENDER_SETTINGS::SetPrintDC(), KIGFX::GAL::SetWorldUnitLength(), KIGFX::GAL::SetZoomFactor(), KIGFX::TARGET_NONCACHED, APP_SETTINGS_BASE::PRINTING::title_block, ToWxSize(), APP_SETTINGS_BASE::PRINTING::use_theme, KIGFX::VIEW::VIEW_MAX_LAYERS, KIGFX::COLOR4D::WithAlpha(), VECTOR2< T >::x, VECTOR2< T >::y, ZOOM_MAX_LIMIT_EESCHEMA, and ZOOM_MIN_LIMIT_EESCHEMA.

Referenced by OnPrintPage().

Member Data Documentation

◆ m_parent

SCH_EDIT_FRAME* SCH_PRINTOUT::m_parent
private

Source VIEW object (note that actual printing only refers to this object)

Definition at line 50 of file sch_printout.h.

Referenced by GetPageInfo(), HasPage(), OnPrintPage(), PrintPage(), and SCH_PRINTOUT().

◆ m_useCairo

bool SCH_PRINTOUT::m_useCairo
private

Definition at line 53 of file sch_printout.h.

Referenced by PrintPage(), and SCH_PRINTOUT().

◆ m_view

const KIGFX::SCH_VIEW* SCH_PRINTOUT::m_view
private

Definition at line 52 of file sch_printout.h.

Referenced by PrintPage(), and SCH_PRINTOUT().


The documentation for this class was generated from the following files: