50 bool first_item =
true;
56 if( gerber ==
nullptr )
63 bbox = item->GetBoundingBox();
67 bbox.
Merge( item->GetBoundingBox() );
85 #if 0 && defined(DEBUG) 86 std::cout <<
GetClass().mb_str() <<
' ';
100 if( gerber ==
nullptr )
103 result = gerber->
Visit( inspector, testData, p );
Class CLASS_GBR_LAYOUT to handle info to draw loaded Gerber images and page frame reference.
wxString GetClass() const override
Return the class name.
void Merge(const EDA_RECT &aRect)
Modify the position and size of the rectangle in order to contain aRect.
GERBER_DRAW_ITEMS & GetItems()
Hold the image data and parameters for one gerber file and layer parameters.
GERBER_FILE_IMAGE_LIST is a helper class to handle a list of GERBER_FILE_IMAGE files which are loaded...
SEARCH_RESULT Visit(INSPECTOR inspector, void *testData, const KICAD_T scanTypes[]) override
May be re-implemented for each derived class in order to handle all the types given by its member dat...
const INSPECTOR_FUNC & INSPECTOR
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
GERBER_FILE_IMAGE * GetGbrImage(int aIdx)
unsigned ImagesMaxCount()
static GERBER_FILE_IMAGE_LIST & GetImagesList()
EDA_RECT ComputeBoundingBox() const
Calculate the bounding box containing all Gerber items.
void Normalize()
Ensures that the height ant width are positive.
Handle the component boundary box.
GERBER_FILE_IMAGE_LIST * GetImagesList() const
A base class for most all the KiCad significant classes used in schematics and boards.
SEARCH_RESULT Visit(INSPECTOR inspector, void *testData, const KICAD_T scanTypes[]) override
May be re-implemented for each derived class in order to handle all the types given by its member dat...