You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
615 B
35 lines
615 B
/**
|
|
* @file class_gbr_layout.cpp
|
|
* @brief GBR_LAYOUT class functions.
|
|
*/
|
|
|
|
#include <limits.h>
|
|
#include <algorithm>
|
|
|
|
#include <fctsys.h>
|
|
#include <common.h>
|
|
#include <class_gbr_layout.h>
|
|
|
|
GBR_LAYOUT::GBR_LAYOUT()
|
|
{
|
|
PAGE_INFO pageInfo( wxT( "GERBER" ) );
|
|
SetPageSettings( pageInfo );
|
|
m_printLayersMask = -1;
|
|
}
|
|
|
|
|
|
GBR_LAYOUT::~GBR_LAYOUT()
|
|
{
|
|
}
|
|
|
|
|
|
EDA_RECT GBR_LAYOUT::ComputeBoundingBox()
|
|
{
|
|
EDA_RECT bbox;
|
|
|
|
for( GERBER_DRAW_ITEM* gerb_item = m_Drawings; gerb_item; gerb_item = gerb_item->Next() )
|
|
bbox.Merge( gerb_item->GetBoundingBox() );
|
|
|
|
SetBoundingBox( bbox );
|
|
return bbox;
|
|
}
|