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

#include <pl_editor_layout.h>

Public Member Functions

 PL_EDITOR_LAYOUT ()
 
 ~PL_EDITOR_LAYOUT ()
 
PAGE_INFOGetPageSettings ()
 
const PAGE_INFOGetPageSettings () const
 
void SetPageSettings (const PAGE_INFO &aPageSettings)
 
const wxPoint & GetAuxOrigin () const
 
TITLE_BLOCKGetTitleBlock ()
 
const TITLE_BLOCKGetTitleBlock () const
 
void SetTitleBlock (const TITLE_BLOCK &aTitleBlock)
 
DS_DRAW_ITEM_LISTGetDrawItems ()
 
BOX2I ComputeBoundingBox ()
 Calculate the bounding box containing all Gerber items.
 
const BOX2I GetBoundingBox () const
 Called soon after ComputeBoundingBox() to return the same BOX2I, as long as the CLASS_PL_EDITOR_LAYOUT has not changed.
 
void SetBoundingBox (const BOX2I &aBox)
 

Private Attributes

BOX2I m_boundingBox
 
PAGE_INFO m_paper
 
TITLE_BLOCK m_titles
 
DS_DRAW_ITEM_LIST m_drawItemList
 

Detailed Description

Definition at line 34 of file pl_editor_layout.h.

Constructor & Destructor Documentation

◆ PL_EDITOR_LAYOUT()

PL_EDITOR_LAYOUT::PL_EDITOR_LAYOUT ( )

Definition at line 29 of file pl_editor_layout.cpp.

References SetPageSettings().

◆ ~PL_EDITOR_LAYOUT()

PL_EDITOR_LAYOUT::~PL_EDITOR_LAYOUT ( )

Definition at line 37 of file pl_editor_layout.cpp.

Member Function Documentation

◆ ComputeBoundingBox()

BOX2I PL_EDITOR_LAYOUT::ComputeBoundingBox ( )

Calculate the bounding box containing all Gerber items.

Returns
the full item list bounding box.

Definition at line 42 of file pl_editor_layout.cpp.

References SetBoundingBox().

◆ GetAuxOrigin()

const wxPoint & PL_EDITOR_LAYOUT::GetAuxOrigin ( ) const
inline

Definition at line 44 of file pl_editor_layout.h.

◆ GetBoundingBox()

const BOX2I PL_EDITOR_LAYOUT::GetBoundingBox ( ) const
inline

Called soon after ComputeBoundingBox() to return the same BOX2I, as long as the CLASS_PL_EDITOR_LAYOUT has not changed.

Definition at line 70 of file pl_editor_layout.h.

References m_boundingBox.

◆ GetDrawItems()

DS_DRAW_ITEM_LIST & PL_EDITOR_LAYOUT::GetDrawItems ( )
inline

Definition at line 54 of file pl_editor_layout.h.

References m_drawItemList.

◆ GetPageSettings() [1/2]

PAGE_INFO & PL_EDITOR_LAYOUT::GetPageSettings ( )
inline

◆ GetPageSettings() [2/2]

const PAGE_INFO & PL_EDITOR_LAYOUT::GetPageSettings ( ) const
inline

Definition at line 41 of file pl_editor_layout.h.

References m_paper.

◆ GetTitleBlock() [1/2]

TITLE_BLOCK & PL_EDITOR_LAYOUT::GetTitleBlock ( )
inline

Definition at line 50 of file pl_editor_layout.h.

References m_titles.

Referenced by PL_EDITOR_FRAME::GetTitleBlock().

◆ GetTitleBlock() [2/2]

const TITLE_BLOCK & PL_EDITOR_LAYOUT::GetTitleBlock ( ) const
inline

Definition at line 51 of file pl_editor_layout.h.

References m_titles.

◆ SetBoundingBox()

void PL_EDITOR_LAYOUT::SetBoundingBox ( const BOX2I aBox)
inline

Definition at line 72 of file pl_editor_layout.h.

References m_boundingBox.

Referenced by ComputeBoundingBox().

◆ SetPageSettings()

void PL_EDITOR_LAYOUT::SetPageSettings ( const PAGE_INFO aPageSettings)
inline

Definition at line 42 of file pl_editor_layout.h.

References m_paper.

Referenced by PL_EDITOR_LAYOUT(), and PL_EDITOR_FRAME::SetPageSettings().

◆ SetTitleBlock()

void PL_EDITOR_LAYOUT::SetTitleBlock ( const TITLE_BLOCK aTitleBlock)
inline

Definition at line 52 of file pl_editor_layout.h.

References m_titles.

Referenced by PL_EDITOR_FRAME::SetTitleBlock().

Member Data Documentation

◆ m_boundingBox

BOX2I PL_EDITOR_LAYOUT::m_boundingBox
private

Definition at line 79 of file pl_editor_layout.h.

Referenced by GetBoundingBox(), and SetBoundingBox().

◆ m_drawItemList

DS_DRAW_ITEM_LIST PL_EDITOR_LAYOUT::m_drawItemList
private

Definition at line 83 of file pl_editor_layout.h.

Referenced by GetDrawItems().

◆ m_paper

PAGE_INFO PL_EDITOR_LAYOUT::m_paper
private

Definition at line 80 of file pl_editor_layout.h.

Referenced by GetPageSettings(), and SetPageSettings().

◆ m_titles

TITLE_BLOCK PL_EDITOR_LAYOUT::m_titles
private

Definition at line 81 of file pl_editor_layout.h.

Referenced by GetTitleBlock(), and SetTitleBlock().


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