You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
3.3 KiB

  1. /* Bits caracterisant une cellule */
  2. #define HOLE 0x00000001L /* a conducting hole, ou obstacle */
  3. #define CELL_is_MODULE 2 /* autoplacement: occupe par un module */
  4. #define CELL_is_EDGE 0x20 /* zone et autoplacement: cellule limitant un contour (Board, Zone) */
  5. #define CELL_is_FRIEND 0x40 /* zone et autoplacement: cellule faisant partie du net */
  6. #define CELL_is_ZONE 0x80 /* zone et autoplacement: cellule disponible */
  7. /* Bits Masques de presence d'obstacles pour autoroutage */
  8. #define OCCUPE 1 /* autoroutage : obstacle pour pistes et vias */
  9. #define VIA_IMPOSSIBLE 2 /* autoroutage : obsacle pour vias */
  10. #define CURRENT_PAD 4
  11. /* traces radiating outward from a hole to a side or corner */
  12. #define HOLE_NORTH 0x00000002L /* upward */
  13. #define HOLE_NORTHEAST 0x00000004L /* upward and right */
  14. #define HOLE_EAST 0x00000008L /* to the right */
  15. #define HOLE_SOUTHEAST 0x00000010L /* downward and right */
  16. #define HOLE_SOUTH 0x00000020L /* downward */
  17. #define HOLE_SOUTHWEST 0x00000040L /* downward and left */
  18. #define HOLE_WEST 0x00000080L /* to the left */
  19. #define HOLE_NORTHWEST 0x00000100L /* upward and left */
  20. /* straight lines through the center */
  21. #define LINE_HORIZONTAL 0x00000002L /* left-to-right line */
  22. #define LINE_VERTICAL 0x00000004L /* top-to-bottom line */
  23. /* lines cutting across a corner, connecting adjacent sides */
  24. #define CORNER_NORTHEAST 0x00000008L /* upper right corner */
  25. #define CORNER_SOUTHEAST 0x00000010L /* lower right corner */
  26. #define CORNER_SOUTHWEST 0x00000020L /* lower left corner */
  27. #define CORNER_NORTHWEST 0x00000040L /* upper left corner */
  28. /* diagonal lines through the center */
  29. #define DIAG_NEtoSW 0x00000080L /* northeast to southwest */
  30. #define DIAG_SEtoNW 0x00000100L /* southeast to northwest */
  31. /* 135 degree angle side-to-far-corner lines */
  32. #define BENT_NtoSE 0x00000200L /* north to southeast */
  33. #define BENT_NtoSW 0x00000400L /* north to southwest */
  34. #define BENT_EtoSW 0x00000800L /* east to southwest */
  35. #define BENT_EtoNW 0x00001000L /* east to northwest */
  36. #define BENT_StoNW 0x00002000L /* south to northwest */
  37. #define BENT_StoNE 0x00004000L /* south to northeast */
  38. #define BENT_WtoNE 0x00008000L /* west to northeast */
  39. #define BENT_WtoSE 0x00010000L /* west to southeast */
  40. /* 90 degree corner-to-adjacent-corner lines */
  41. #define ANGLE_NEtoSE 0x00020000L /* northeast to southeast */
  42. #define ANGLE_SEtoSW 0x00040000L /* southeast to southwest */
  43. #define ANGLE_SWtoNW 0x00080000L /* southwest to northwest */
  44. #define ANGLE_NWtoNE 0x00100000L /* northwest to northeast */
  45. /* 45 degree angle side-to-near-corner lines */
  46. #define SHARP_NtoNE 0x00200000L /* north to northeast */
  47. #define SHARP_EtoNE 0x00400000L /* east to northeast */
  48. #define SHARP_EtoSE 0x00800000L /* east to southeast */
  49. #define SHARP_StoSE 0x01000000L /* south to southeast */
  50. #define SHARP_StoSW 0x02000000L /* south to southwest */
  51. #define SHARP_WtoSW 0x04000000L /* west to southwest */
  52. #define SHARP_WtoNW 0x08000000L /* west to northwest */
  53. #define SHARP_NtoNW 0x10000000L /* north to northwest */
  54. /* directions the cell can be reached from (point to previous cell) */
  55. #define FROM_NOWHERE 0
  56. #define FROM_NORTH 1
  57. #define FROM_NORTHEAST 2
  58. #define FROM_EAST 3
  59. #define FROM_SOUTHEAST 4
  60. #define FROM_SOUTH 5
  61. #define FROM_SOUTHWEST 6
  62. #define FROM_WEST 7
  63. #define FROM_NORTHWEST 8
  64. #define FROM_OTHERSIDE 9