|
KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>#include <tool/edit_points.h>#include <tool/edit_relations.h>#include <tool/grid_helper.h>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (PointRelationsExposeTypedSemantics) | |
| BOOST_AUTO_TEST_CASE (PerpendicularLinePreservesDirection) | |
| BOOST_AUTO_TEST_CASE (PolygonFixedLengthPreservesEndpoints) | |
| BOOST_AUTO_TEST_CASE (PolygonConvergenceClampsAtAdjacentIntersection) | |
| BOOST_AUTO_TEST_CASE | ( | PerpendicularLinePreservesDirection | ) |
Definition at line 46 of file test_edit_relations.cpp.
References std::abs(), EDIT_LINE::ApplyRelation(), BOOST_CHECK_EQUAL(), end, EDIT_POINT::GetPosition(), EDIT_POINT::GetX(), EDIT_POINT::GetY(), grid, EDIT_RELATION::PerpendicularTranslation(), EDIT_LINE::SetPosition(), and EDIT_LINE::SetRelation().
| BOOST_AUTO_TEST_CASE | ( | PointRelationsExposeTypedSemantics | ) |
Definition at line 30 of file test_edit_relations.cpp.
References EDIT_POINT::ApplyRelation(), BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), EDIT_POINT::GetPosition(), EDIT_POINT::GetRelation(), grid, EDIT_RELATION::Kind(), SAME_X, EDIT_RELATION::SameX(), and EDIT_POINT::SetRelation().
| BOOST_AUTO_TEST_CASE | ( | PolygonConvergenceClampsAtAdjacentIntersection | ) |
Definition at line 90 of file test_edit_relations.cpp.
References EDIT_POINTS::AddLine(), EDIT_POINTS::AddPoint(), EDIT_LINE::ApplyRelation(), BOOST_CHECK_EQUAL(), EDIT_LINE::GetEnd(), EDIT_LINE::GetOrigin(), EDIT_POINT::GetPosition(), grid, EDIT_POINTS::Line(), EDIT_POINTS::Point(), EDIT_LINE::SetDragPolicy(), and EDIT_LINE::SetPosition().
| BOOST_AUTO_TEST_CASE | ( | PolygonFixedLengthPreservesEndpoints | ) |
Definition at line 64 of file test_edit_relations.cpp.
References EDIT_POINTS::AddLine(), EDIT_POINTS::AddPoint(), EDIT_LINE::ApplyRelation(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), FIXED_LENGTH, EDIT_LINE::GetDragPolicy(), EDIT_LINE::GetEnd(), POLYGON_EDGE_DRAG_POLICY::GetMode(), EDIT_LINE::GetOrigin(), EDIT_POINT::GetPosition(), EDIT_POINT::GetY(), grid, EDIT_POINTS::Line(), EDIT_POINTS::Point(), EDIT_LINE::SetDragPolicy(), and EDIT_LINE::SetPosition().