2009-11-09 14:00:22 +00:00
|
|
|
/****************/
|
|
|
|
/* lay2plot.cpp */
|
|
|
|
/****************/
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
#include "fctsys.h"
|
|
|
|
#include "common.h"
|
2009-02-04 15:25:03 +00:00
|
|
|
#include "class_drawpanel.h"
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2009-02-04 15:25:03 +00:00
|
|
|
#include "gerbview.h"
|
2007-06-05 12:10:51 +00:00
|
|
|
#include "protos.h"
|
|
|
|
|
|
|
|
|
2009-11-09 14:00:22 +00:00
|
|
|
/* Routine to plot the pcb, by selected layers. */
|
2007-05-06 16:03:28 +00:00
|
|
|
void Print_PcbItems(BOARD * Pcb, wxDC *DC, int drawmode, int printmasklayer)
|
2007-06-05 12:10:51 +00:00
|
|
|
{
|
2008-11-24 06:53:43 +00:00
|
|
|
DISPLAY_OPTIONS save_opt;
|
|
|
|
TRACK * pt_piste;
|
|
|
|
|
|
|
|
save_opt = DisplayOpt;
|
|
|
|
DisplayOpt.DisplayPadFill = FILLED;
|
2009-09-29 04:44:35 +00:00
|
|
|
DisplayOpt.DisplayViaFill = FILLED;
|
2008-11-24 06:53:43 +00:00
|
|
|
DisplayOpt.DisplayPadNum = 0;
|
|
|
|
DisplayOpt.DisplayPadIsol = 0;
|
|
|
|
DisplayOpt.DisplayPcbTrackFill = FILLED;
|
2009-06-18 20:51:01 +00:00
|
|
|
DisplayOpt.ShowTrackClearanceMode = DO_NOT_SHOW_CLEARANCE;
|
2008-11-24 06:53:43 +00:00
|
|
|
DisplayOpt.DisplayDrawItems = FILLED;
|
2008-12-12 21:30:07 +00:00
|
|
|
DisplayOpt.DisplayZonesMode = 0;
|
2008-11-24 06:53:43 +00:00
|
|
|
|
|
|
|
pt_piste = Pcb->m_Track;
|
|
|
|
for( ; pt_piste != NULL ; pt_piste = pt_piste->Next() )
|
|
|
|
{
|
2009-11-09 14:00:22 +00:00
|
|
|
// if( (printmasklayer & ReturnMaskLayer(pt_piste) ) == 0 ) continue;
|
2010-01-31 20:01:46 +00:00
|
|
|
Trace_Segment(Pcb, NULL, DC, pt_piste, drawmode);
|
2008-11-24 06:53:43 +00:00
|
|
|
}
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2008-11-24 06:53:43 +00:00
|
|
|
DisplayOpt = save_opt;
|
2007-06-05 12:10:51 +00:00
|
|
|
}
|