~jeru-sheng/kicad/kicad-feature

« back to all changes in this revision

Viewing changes to gerbview/lay2plot.cpp

  • Committer: plyatov
  • Date: 2007-05-06 16:03:28 UTC
  • Revision ID: svn-v4:16bec504-3128-0410-b3e8-8e38c2123bca:trunk/kicad:13
Initial import of KiCad.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
                /**********************************************/
 
2
                /* Routine de selection de couches pour trace */
 
3
                /**********************************************/
 
4
 
 
5
#include "fctsys.h"
 
6
 
 
7
#include "common.h"
 
8
#include "gerbview.h"
 
9
 
 
10
#include "protos.h"
 
11
 
 
12
 
 
13
/* Variables locales : */
 
14
 
 
15
/* Routines Locales */
 
16
        /****************************/
 
17
        /* int GetLayerNumber(void) */
 
18
        /****************************/
 
19
/* retourne le nombre de couches a tracer
 
20
*/
 
21
int GetLayerNumber(void)
 
22
{
 
23
int ii = 0;
 
24
//TO REDO
 
25
return ii;
 
26
}
 
27
 
 
28
 
 
29
/*******************************************************************************/
 
30
void Print_PcbItems(BOARD * Pcb, wxDC *DC, int drawmode, int printmasklayer)
 
31
/*******************************************************************************/
 
32
/* routine de trace du pcb, avec selection des couches */
 
33
{
 
34
DISPLAY_OPTIONS save_opt;
 
35
TRACK * pt_piste;
 
36
 
 
37
        save_opt = DisplayOpt;
 
38
        DisplayOpt.DisplayPadFill = FILLED;
 
39
        DisplayOpt.DisplayPadNum = 0;
 
40
        DisplayOpt.DisplayPadNoConn = 0;
 
41
        DisplayOpt.DisplayPadIsol = 0;
 
42
        DisplayOpt.DisplayPcbTrackFill = FILLED;
 
43
        DisplayOpt.DisplayTrackIsol = 0;
 
44
        DisplayOpt.DisplayDrawItems = FILLED;
 
45
        DisplayOpt.DisplayZones = 1;
 
46
 
 
47
        /* trace des pistes */
 
48
        pt_piste = Pcb->m_Track;
 
49
        for ( ; pt_piste != NULL ; pt_piste = (TRACK*) pt_piste->Pnext )
 
50
                {
 
51
//              if( (printmasklayer & ReturnMaskLayer(pt_piste) ) == 0 ) continue;
 
52
                Trace_Segment(NULL, DC, pt_piste, drawmode);
 
53
                }
 
54
 
 
55
        DisplayOpt = save_opt;
 
56
}
 
57
 
 
58
 
 
59