|
KiCad PCB EDA Suite
|
Parse board outline geometry from a .alg ASCII reference file. More...
Classes | |
| struct | OUTLINE_SEGMENT |
Public Types | |
| enum class | SEGMENT_TYPE { LINE , ARC , RECTANGLE } |
Public Member Functions | |
| void | updateBounds (double aX, double aY) |
| int | expectedEdgeCutsSegments () const |
| Expected number of Edge_Cuts segments when translating to KiCad. | |
Static Public Member Functions | |
| static ALG_OUTLINE_DATA | ParseAlgOutlines (const std::string &aPath) |
Public Attributes | |
| int | designOutlineCount = 0 |
| int | outlineCount = 0 |
| std::vector< OUTLINE_SEGMENT > | designOutlineSegments |
| std::vector< OUTLINE_SEGMENT > | outlineSegments |
| double | minX = std::numeric_limits<double>::max() |
| double | minY = std::numeric_limits<double>::max() |
| double | maxX = std::numeric_limits<double>::lowest() |
| double | maxY = std::numeric_limits<double>::lowest() |
Parse board outline geometry from a .alg ASCII reference file.
Extracts LINE, ARC, and RECTANGLE records from both DESIGN_OUTLINE and OUTLINE subclasses under BOARD GEOMETRY. Coordinates are in mils.
Definition at line 1489 of file test_allegro_import.cpp.
|
strong |
| Enumerator | |
|---|---|
| LINE | |
| ARC | |
| RECTANGLE | |
Definition at line 1491 of file test_allegro_import.cpp.
|
inline |
Expected number of Edge_Cuts segments when translating to KiCad.
Each LINE/ARC = 1 segment. Each RECTANGLE = 4 segments.
Definition at line 1617 of file test_allegro_import.cpp.
References designOutlineSegments, and RECTANGLE.
Referenced by BOOST_AUTO_TEST_CASE().
|
inlinestatic |
Definition at line 1524 of file test_allegro_import.cpp.
References ARC, ALG_OUTLINE_DATA::OUTLINE_SEGMENT::centerX, ALG_OUTLINE_DATA::OUTLINE_SEGMENT::centerY, ALG_OUTLINE_DATA::OUTLINE_SEGMENT::clockwise, designOutlineCount, designOutlineSegments, LINE, outlineCount, outlineSegments, ALG_OUTLINE_DATA::OUTLINE_SEGMENT::radius, RECTANGLE, ALG_REFERENCE_DATA::SplitAlgLine(), ALG_OUTLINE_DATA::OUTLINE_SEGMENT::type, updateBounds(), ALG_OUTLINE_DATA::OUTLINE_SEGMENT::x1, ALG_OUTLINE_DATA::OUTLINE_SEGMENT::x2, ALG_OUTLINE_DATA::OUTLINE_SEGMENT::y1, and ALG_OUTLINE_DATA::OUTLINE_SEGMENT::y2.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
inline |
Definition at line 1516 of file test_allegro_import.cpp.
References maxX, maxY, minX, and minY.
Referenced by ParseAlgOutlines().
| int ALG_OUTLINE_DATA::designOutlineCount = 0 |
Definition at line 1506 of file test_allegro_import.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and ParseAlgOutlines().
| std::vector<OUTLINE_SEGMENT> ALG_OUTLINE_DATA::designOutlineSegments |
Definition at line 1508 of file test_allegro_import.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), expectedEdgeCutsSegments(), and ParseAlgOutlines().
| double ALG_OUTLINE_DATA::maxX = std::numeric_limits<double>::lowest() |
Definition at line 1513 of file test_allegro_import.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), and updateBounds().
| double ALG_OUTLINE_DATA::maxY = std::numeric_limits<double>::lowest() |
Definition at line 1514 of file test_allegro_import.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), and updateBounds().
| double ALG_OUTLINE_DATA::minX = std::numeric_limits<double>::max() |
Definition at line 1511 of file test_allegro_import.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), and updateBounds().
| double ALG_OUTLINE_DATA::minY = std::numeric_limits<double>::max() |
Definition at line 1512 of file test_allegro_import.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), and updateBounds().
| int ALG_OUTLINE_DATA::outlineCount = 0 |
Definition at line 1507 of file test_allegro_import.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), and ParseAlgOutlines().
| std::vector<OUTLINE_SEGMENT> ALG_OUTLINE_DATA::outlineSegments |
Definition at line 1509 of file test_allegro_import.cpp.
Referenced by ParseAlgOutlines().