/**************************************************************/ /* pcbstruct.h : definition des structures de donnees type PCB */ /**************************************************************/ #ifndef PCBSTRUCT_H #define PCBSTRUCT_H #include "base_struct.h" // Definitions relatives aux libariries #define ENTETE_LIBRAIRIE "PCBNEW-LibModule-V1" #define ENTETE_LIBDOC "PCBNEW-LibDoc----V1" #define L_ENTETE_LIB 18 #define EXT_CMP wxT( ".emp" ) #define EXT_CMP_MASK wxT( "*.emp" ) #define EXT_DOC wxT( ".mdc" ) /* Bits indicateurs du membre .Status, pour pistes, modules... */ #define FLAG1 0x2000 /* flag libre pour calculs locaux */ #define FLAG0 0x1000 /* flag libre pour calculs locaux */ #define BEGIN_ONPAD 0x800 /* flag indiquant un debut de segment sur pad */ #define END_ONPAD 0x400 /* flag indiquant une fin de segment sur pad */ #define BUSY 0x0200 /* flag indiquant que la structure a deja * ete examinee, dans certaines routines */ #define DELETED 0x0100 /* Bit flag de Status pour structures effacee * et mises en chaine "DELETED" */ #define NO_TRACE 0x80 /* l'element ne doit pas etre affiche */ #define SURBRILL 0x20 /* element en surbrillance */ #define DRAG 0x10 /* segment en mode drag */ #define EDIT 0x8 /* element en cours d'edition */ #define SEGM_FIXE 0x04 /* segment FIXE ( pas d'effacement global ) */ #define SEGM_AR 0x02 /* segment Auto_Route */ #define CHAIN 0x01 /* segment marque */ /* Layer identification (layer number) */ #define FIRST_COPPER_LAYER 0 #define COPPER_LAYER_N 0 #define LAYER_N_2 1 /* Numero layer 2 */ #define LAYER_N_3 2 /* Numero layer 3 */ #define LAYER_N_4 3 /* Numero layer 4 */ #define LAYER_N_5 4 /* Numero layer 5 */ #define LAYER_N_6 5 /* Numero layer 6 */ #define LAYER_N_7 6 /* Numero layer 7 */ #define LAYER_N_8 7 /* Numero layer 8 */ #define LAYER_N_9 8 /* Numero layer 9 */ #define LAYER_N_10 9 /* Numero layer 10 */ #define LAYER_N_11 10 /* Numero layer 11 */ #define LAYER_N_12 11 /* Numero layer 12 */ #define LAYER_N_13 12 /* Numero layer 13 */ #define LAYER_N_14 13 /* Numero layer 14 */ #define LAYER_N_15 14 /* Numero layer 15 */ #define LAYER_CMP_N 15 #define CMP_N 15 #define LAST_COPPER_LAYER 15 #define NB_COPPER_LAYERS (LAST_COPPER_LAYER + 1) #define FIRST_NO_COPPER_LAYER 16 #define ADHESIVE_N_CU 16 #define ADHESIVE_N_CMP 17 #define SOLDERPASTE_N_CU 18 #define SOLDERPASTE_N_CMP 19 #define SILKSCREEN_N_CU 20 #define SILKSCREEN_N_CMP 21 #define SOLDERMASK_N_CU 22 #define SOLDERMASK_N_CMP 23 #define DRAW_N 24 #define COMMENT_N 25 #define ECO1_N 26 #define ECO2_N 27 #define EDGE_N 28 #define LAST_NO_COPPER_LAYER 28 #define NB_LAYERS (LAST_NO_COPPER_LAYER + 1) #define LAYER_COUNT 32 /*************************************/ /* constantes de gestion des couches */ /*************************************/ #define CUIVRE_LAYER (1<