2008-11-24 06:53:43 +00:00
|
|
|
/**********************************************/
|
|
|
|
/* Routine de selection de couches pour trace */
|
|
|
|
/**********************************************/
|
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"
|
|
|
|
|
|
|
|
|
|
|
|
/* Variables locales : */
|
|
|
|
|
|
|
|
/* Routines Locales */
|
|
|
|
|
|
|
|
/*******************************************************************************/
|
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
|
|
|
/*******************************************************************************/
|
|
|
|
/* routine de trace du pcb, avec selection des couches */
|
|
|
|
{
|
2008-11-24 06:53:43 +00:00
|
|
|
DISPLAY_OPTIONS save_opt;
|
|
|
|
TRACK * pt_piste;
|
|
|
|
|
|
|
|
save_opt = DisplayOpt;
|
|
|
|
DisplayOpt.DisplayPadFill = FILLED;
|
|
|
|
DisplayOpt.DisplayPadNum = 0;
|
|
|
|
DisplayOpt.DisplayPadNoConn = 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
|
|
|
|
|
|
|
/* trace des pistes */
|
|
|
|
pt_piste = Pcb->m_Track;
|
|
|
|
for( ; pt_piste != NULL ; pt_piste = pt_piste->Next() )
|
|
|
|
{
|
2007-06-05 12:10:51 +00:00
|
|
|
// if( (printmasklayer & ReturnMaskLayer(pt_piste) ) == 0 ) continue;
|
2008-11-24 06:53:43 +00:00
|
|
|
Trace_Segment(NULL, DC, pt_piste, drawmode);
|
|
|
|
}
|
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
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|