2012-05-04 17:44:42 +00:00
|
|
|
/**
|
|
|
|
* @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 );
|
2014-06-29 13:05:51 +00:00
|
|
|
|
|
|
|
// no m_printLayersMask = -1;
|
|
|
|
m_printLayersMask.set();
|
2012-05-04 17:44:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|