mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-27 00:26:13 +00:00
F_Cu = 0 B_Cu = 2 Remaining internal copper layers are even and incrementing Non-copper layers are odd and incrementing. This means that we can no longer do things like: for( PCB_LAYER_ID layer = F_Cu; layer <= B_Cu; ++layer) Instead, we have the class LAYER_RANGE: for( PCB_LAYER_ID layer : LAYER_RANGE( F_Cu, B_Cu) ) Similarly, gt/lt tests should not refer to the integer value of the layer. We have functions such as IsCopperLayer to test whether a layer is copper or not. When using the connectivity RTree, the third dimension is layer, so we provide B_Cu with the special INT_MAX value, ensuring that elements between F_Cu and B_Cu will be identified. There is a new, special function GetBoardLayer() for interfacing with CN_ITEMS Similarly, PNS layers remain unchanged and sequential. A set of interface functions is provided to map PNS layers to Board layers and back. This allows the PNS_LAYER_RANGE to function as expected |
||
---|---|---|
.. | ||
3d_cache | ||
3d_canvas | ||
3d_model_viewer | ||
3d_navlib | ||
3d_rendering | ||
3d_viewer | ||
common_ogl | ||
dialogs | ||
3d_fastmath.cpp | ||
3d_fastmath.h | ||
3d_math.cpp | ||
3d_math.h | ||
3d_viewer_id.h | ||
CMakeLists.txt | ||
credits.txt |