|
KiCad PCB EDA Suite
|
#include <qa_utils/wx_utils/unit_test_utils.h>#include <geometry/roundrect.h>#include <geometry/shape_poly_set.h>Go to the source code of this file.
Functions | |
| static void | CheckPolygonFitsRect (int aWidth, int aHeight, int aRadius) |
| BOOST_AUTO_TEST_CASE (CircleFromSquare) | |
| BOOST_AUTO_TEST_CASE (OvalWide) | |
| BOOST_AUTO_TEST_CASE (OvalTall) | |
| BOOST_AUTO_TEST_CASE (NormalRoundrect) | |
| BOOST_AUTO_TEST_CASE (PlainRectangle) | |
| BOOST_AUTO_TEST_CASE | ( | CircleFromSquare | ) |
Definition at line 55 of file test_roundrect.cpp.
References CheckPolygonFitsRect().
| BOOST_AUTO_TEST_CASE | ( | NormalRoundrect | ) |
Definition at line 73 of file test_roundrect.cpp.
References CheckPolygonFitsRect().
| BOOST_AUTO_TEST_CASE | ( | OvalTall | ) |
Definition at line 67 of file test_roundrect.cpp.
References CheckPolygonFitsRect().
| BOOST_AUTO_TEST_CASE | ( | OvalWide | ) |
Definition at line 61 of file test_roundrect.cpp.
References CheckPolygonFitsRect().
| BOOST_AUTO_TEST_CASE | ( | PlainRectangle | ) |
Definition at line 79 of file test_roundrect.cpp.
References CheckPolygonFitsRect().
|
static |
Definition at line 33 of file test_roundrect.cpp.
References std::abs(), SHAPE_POLY_SET::BBox(), CheckPolygonFitsRect(), BOX2< Vec >::GetHeight(), BOX2< Vec >::GetLeft(), BOX2< Vec >::GetTop(), BOX2< Vec >::GetWidth(), SHAPE_POLY_SET::OutlineCount(), ROUNDRECT::TransformToPolygon(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and CheckPolygonFitsRect().