10 LAST_USER_LAYER = 1007,
11 FIRST_USER_LAYER = 1000,
12 USER1 = FIRST_USER_LAYER + 0,
13 USER2 = FIRST_USER_LAYER + 1,
14 USER3 = FIRST_USER_LAYER + 2,
15 USER4 = FIRST_USER_LAYER + 3,
16 USER5 = FIRST_USER_LAYER + 4,
17 USER6 = FIRST_USER_LAYER + 5,
18 USER7 = FIRST_USER_LAYER + 6,
19 USER8 = FIRST_USER_LAYER + 7,
40 BOTTOM_SILKSCREEN = -120,
42 BOTTOM_PACKAGE = -140,
43 BOTTOM_ASSEMBLY = -150,
44 BOTTOM_COURTYARD = -160,
48 static const unsigned int max_user_layers = LAST_USER_LAYER - FIRST_USER_LAYER + 1;
52 static bool is_copper(
int l)
54 return l <= TOP_COPPER && l >= BOTTOM_COPPER;
59 return is_copper(l.start()) || is_copper(l.end());
62 static bool is_silkscreen(
int l)
64 return l == TOP_SILKSCREEN || l == BOTTOM_SILKSCREEN;
67 static bool is_user(
int l)
69 return l <= LAST_USER_LAYER && l >= FIRST_USER_LAYER;
72 static const unsigned int max_inner_layers;
74 static std::string get_layer_name(
int l);
75 static const std::vector<int> &get_layers();