KiCad PCB EDA Suite
BOARD_PRINTOUT_SETTINGS Struct Reference

#include <board_printout.h>

Inheritance diagram for BOARD_PRINTOUT_SETTINGS:
PRINTOUT_SETTINGS PCBNEW_PRINTOUT_SETTINGS

Public Member Functions

 BOARD_PRINTOUT_SETTINGS (const PAGE_INFO &aPageInfo)
 
virtual ~BOARD_PRINTOUT_SETTINGS ()
 
void Load (APP_SETTINGS_BASE *aConfig) override
 
void Save (APP_SETTINGS_BASE *aConfig) override
 
bool PrintBorderAndTitleBlock () const
 Returns true if the drawing border and title block should be printed. More...
 

Public Attributes

LSET m_layerSet
 Layers to print. More...
 
bool m_mirror
 Print mirrored. More...
 
double m_scale
 Printing scale. More...
 
bool m_titleBlock
 Print frame and title block. More...
 
bool m_blackWhite
 Print in B&W or Color. More...
 
int m_pageCount
 Number of pages to print. More...
 
bool m_background
 Print background color. More...
 
const PAGE_INFOm_pageInfo
 
COLOR_SETTINGSm_colorSettings
 The color settings to be used for printing. More...
 

Detailed Description

Definition at line 48 of file board_printout.h.

Constructor & Destructor Documentation

◆ BOARD_PRINTOUT_SETTINGS()

BOARD_PRINTOUT_SETTINGS::BOARD_PRINTOUT_SETTINGS ( const PAGE_INFO aPageInfo)

Definition at line 36 of file board_printout.cpp.

37  : PRINTOUT_SETTINGS( aPageInfo )
38 {
39  m_layerSet.set();
40  m_mirror = false;
41 }
bool m_mirror
Print mirrored.
PRINTOUT_SETTINGS(const PAGE_INFO &aPageInfo)
Definition: printout.h:33
LSET m_layerSet
Layers to print.

References m_layerSet, and m_mirror.

◆ ~BOARD_PRINTOUT_SETTINGS()

virtual BOARD_PRINTOUT_SETTINGS::~BOARD_PRINTOUT_SETTINGS ( )
inlinevirtual

Definition at line 52 of file board_printout.h.

53  {
54  }

Member Function Documentation

◆ Load()

void BOARD_PRINTOUT_SETTINGS::Load ( APP_SETTINGS_BASE aConfig)
overridevirtual

Reimplemented from PRINTOUT_SETTINGS.

Reimplemented in PCBNEW_PRINTOUT_SETTINGS.

Definition at line 44 of file board_printout.cpp.

45 {
46  PRINTOUT_SETTINGS::Load( aConfig );
47 
48  m_layerSet.reset();
49 
50  for( int layer : aConfig->m_Printing.layers )
51  m_layerSet.set( layer, true );
52 }
virtual void Load(APP_SETTINGS_BASE *aConfig)
Definition: printout.cpp:32
std::vector< int > layers
List of enabled layers for printing.
Definition: app_settings.h:105
LSET m_layerSet
Layers to print.

References APP_SETTINGS_BASE::PRINTING::layers, PRINTOUT_SETTINGS::Load(), m_layerSet, and APP_SETTINGS_BASE::m_Printing.

Referenced by PCBNEW_PRINTOUT_SETTINGS::Load().

◆ PrintBorderAndTitleBlock()

bool PRINTOUT_SETTINGS::PrintBorderAndTitleBlock ( ) const
inlineinherited

Returns true if the drawing border and title block should be printed.

Definition at line 64 of file printout.h.

64 { return m_titleBlock; }
bool m_titleBlock
Print frame and title block.
Definition: printout.h:52

References PRINTOUT_SETTINGS::m_titleBlock.

Referenced by BOARD_PRINTOUT::DrawPage().

◆ Save()

void BOARD_PRINTOUT_SETTINGS::Save ( APP_SETTINGS_BASE aConfig)
overridevirtual

Reimplemented from PRINTOUT_SETTINGS.

Reimplemented in PCBNEW_PRINTOUT_SETTINGS.

Definition at line 55 of file board_printout.cpp.

56 {
57  PRINTOUT_SETTINGS::Save( aConfig );
58 
59  aConfig->m_Printing.layers.clear();
60 
61  for( unsigned layer = 0; layer < m_layerSet.size(); ++layer )
62  if( m_layerSet.test( layer ) )
63  aConfig->m_Printing.layers.push_back( layer );
64 }
virtual void Save(APP_SETTINGS_BASE *aConfig)
Definition: printout.cpp:24
std::vector< int > layers
List of enabled layers for printing.
Definition: app_settings.h:105
LSET m_layerSet
Layers to print.

References APP_SETTINGS_BASE::PRINTING::layers, m_layerSet, APP_SETTINGS_BASE::m_Printing, and PRINTOUT_SETTINGS::Save().

Referenced by PCBNEW_PRINTOUT_SETTINGS::Save().

Member Data Documentation

◆ m_background

bool PRINTOUT_SETTINGS::m_background
inherited

Print background color.

Definition at line 55 of file printout.h.

Referenced by PRINTOUT_SETTINGS::PRINTOUT_SETTINGS(), DIALOG_PRINT_PCBNEW::saveSettings(), and BOARD_PRINTOUT::setupPainter().

◆ m_blackWhite

◆ m_colorSettings

COLOR_SETTINGS* PRINTOUT_SETTINGS::m_colorSettings
inherited

The color settings to be used for printing.

Definition at line 59 of file printout.h.

Referenced by BOARD_PRINTOUT::DrawPage(), PRINTOUT_SETTINGS::PRINTOUT_SETTINGS(), and DIALOG_PRINT_PCBNEW::saveSettings().

◆ m_layerSet

◆ m_mirror

bool BOARD_PRINTOUT_SETTINGS::m_mirror

◆ m_pageCount

◆ m_pageInfo

const PAGE_INFO& PRINTOUT_SETTINGS::m_pageInfo
inherited

Definition at line 56 of file printout.h.

Referenced by BOARD_PRINTOUT::DrawPage(), and DIALOG_PRINT_GENERIC::initPrintData().

◆ m_scale

◆ m_titleBlock


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