KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_constraint_drag.cpp File Reference
#include <algorithm>
#include <cmath>
#include <vector>
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <tool/tool_manager.h>
#include <pcbnew_utils/board_test_utils.h>
#include <board.h>
#include <board_commit.h>
#include <pcb_shape.h>
#include <geometry/shape_arc.h>
#include <constraints/pcb_constraint.h>
#include <constraints/board_constraint_adapter.h>
#include <constraints/constraint_builder.h>

Go to the source code of this file.

Functions

 BOOST_FIXTURE_TEST_CASE (DragReDerivesNeighborRevertRestores, DRAG_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (DragCircleCentreMovesConcentricNeighbor, DRAG_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (UnsolvableClusterLeavesNeighborUntouched, DRAG_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (DeleteShapeLeavesConstraintInErrorState, DRAG_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (MoveReSolvesCluster, DRAG_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (MoveReSolveStagesNeighborsRevertRestores, DRAG_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (MoveEmptyShapesStagesNoNeighbor, DRAG_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (FixedLengthDragPinsFarEnd, DRAG_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (FixedLengthDragOffCircleHoldsFarEnd, DRAG_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (ArcEndpointDragHoldsCircleAndFarEnd, DRAG_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (ArcEndpointDragYieldsToFixedRadius, DRAG_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (RectCornerDragHoldsOppositeCorner, DRAG_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (PolyVertexDragHoldsOtherVertices, DRAG_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (VertexForRectCornerMapsCanonicalIndex, DRAG_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (VertexForPolyMapsOrdinal, DRAG_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (RectCornerDragMapsThenSolves, DRAG_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (ClampedRectCornerDragSolvesToClampedCorner, DRAG_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (RectSideDragEnforcesDrivingWidth, DRAG_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (RectSideDragOffConstrainedAxisResizes, DRAG_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (UnconstrainedRectSideDragResizesExactly, DRAG_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (PolyEdgeDragEnforcesDrivingLength, DRAG_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (UnconstrainedPolyEdgeDragMovesBothVertices, DRAG_FIXTURE)
 
 BOOST_FIXTURE_TEST_CASE (ArcCentreDragHoldsEndpoints, DRAG_FIXTURE)
 

Function Documentation

◆ BOOST_FIXTURE_TEST_CASE() [1/23]

BOOST_FIXTURE_TEST_CASE ( ArcCentreDragHoldsEndpoints ,
DRAG_FIXTURE  )

◆ BOOST_FIXTURE_TEST_CASE() [2/23]

BOOST_FIXTURE_TEST_CASE ( ArcEndpointDragHoldsCircleAndFarEnd ,
DRAG_FIXTURE  )

◆ BOOST_FIXTURE_TEST_CASE() [3/23]

BOOST_FIXTURE_TEST_CASE ( ArcEndpointDragYieldsToFixedRadius ,
DRAG_FIXTURE  )

◆ BOOST_FIXTURE_TEST_CASE() [4/23]

BOOST_FIXTURE_TEST_CASE ( ClampedRectCornerDragSolvesToClampedCorner ,
DRAG_FIXTURE  )

◆ BOOST_FIXTURE_TEST_CASE() [5/23]

BOOST_FIXTURE_TEST_CASE ( DeleteShapeLeavesConstraintInErrorState ,
DRAG_FIXTURE  )

◆ BOOST_FIXTURE_TEST_CASE() [6/23]

BOOST_FIXTURE_TEST_CASE ( DragCircleCentreMovesConcentricNeighbor ,
DRAG_FIXTURE  )

◆ BOOST_FIXTURE_TEST_CASE() [7/23]

BOOST_FIXTURE_TEST_CASE ( DragReDerivesNeighborRevertRestores ,
DRAG_FIXTURE  )

◆ BOOST_FIXTURE_TEST_CASE() [8/23]

BOOST_FIXTURE_TEST_CASE ( FixedLengthDragOffCircleHoldsFarEnd ,
DRAG_FIXTURE  )

◆ BOOST_FIXTURE_TEST_CASE() [9/23]

BOOST_FIXTURE_TEST_CASE ( FixedLengthDragPinsFarEnd ,
DRAG_FIXTURE  )

◆ BOOST_FIXTURE_TEST_CASE() [10/23]

BOOST_FIXTURE_TEST_CASE ( MoveEmptyShapesStagesNoNeighbor ,
DRAG_FIXTURE  )

◆ BOOST_FIXTURE_TEST_CASE() [11/23]

◆ BOOST_FIXTURE_TEST_CASE() [12/23]

BOOST_FIXTURE_TEST_CASE ( MoveReSolveStagesNeighborsRevertRestores ,
DRAG_FIXTURE  )

◆ BOOST_FIXTURE_TEST_CASE() [13/23]

BOOST_FIXTURE_TEST_CASE ( PolyEdgeDragEnforcesDrivingLength ,
DRAG_FIXTURE  )

◆ BOOST_FIXTURE_TEST_CASE() [14/23]

BOOST_FIXTURE_TEST_CASE ( PolyVertexDragHoldsOtherVertices ,
DRAG_FIXTURE  )

◆ BOOST_FIXTURE_TEST_CASE() [15/23]

BOOST_FIXTURE_TEST_CASE ( RectCornerDragHoldsOppositeCorner ,
DRAG_FIXTURE  )

◆ BOOST_FIXTURE_TEST_CASE() [16/23]

BOOST_FIXTURE_TEST_CASE ( RectCornerDragMapsThenSolves ,
DRAG_FIXTURE  )

◆ BOOST_FIXTURE_TEST_CASE() [17/23]

◆ BOOST_FIXTURE_TEST_CASE() [18/23]

BOOST_FIXTURE_TEST_CASE ( RectSideDragOffConstrainedAxisResizes ,
DRAG_FIXTURE  )

◆ BOOST_FIXTURE_TEST_CASE() [19/23]

BOOST_FIXTURE_TEST_CASE ( UnconstrainedPolyEdgeDragMovesBothVertices ,
DRAG_FIXTURE  )

◆ BOOST_FIXTURE_TEST_CASE() [20/23]

BOOST_FIXTURE_TEST_CASE ( UnconstrainedRectSideDragResizesExactly ,
DRAG_FIXTURE  )

◆ BOOST_FIXTURE_TEST_CASE() [21/23]

BOOST_FIXTURE_TEST_CASE ( UnsolvableClusterLeavesNeighborUntouched ,
DRAG_FIXTURE  )

◆ BOOST_FIXTURE_TEST_CASE() [22/23]

◆ BOOST_FIXTURE_TEST_CASE() [23/23]

BOOST_FIXTURE_TEST_CASE ( VertexForRectCornerMapsCanonicalIndex ,
DRAG_FIXTURE  )