|
KiCad PCB EDA Suite
|
#include <qa_utils/wx_utils/unit_test_utils.h>#include <board.h>#include <board_design_settings.h>#include <connectivity/connectivity_data.h>#include <connectivity/connectivity_algo.h>#include <drc/drc_engine.h>#include <drc/drc_item.h>#include <footprint.h>#include <pad.h>#include <pcb_barcode.h>#include <pcb_dimension.h>#include <pcb_marker.h>#include <pcb_point.h>#include <pcb_shape.h>#include <pcb_table.h>#include <pcb_tablecell.h>#include <pcb_text.h>#include <pcb_textbox.h>#include <pcbnew_utils/board_file_utils.h>#include <pcbnew_utils/board_test_utils.h>#include <settings/settings_manager.h>#include <widgets/report_severity.h>#include <zone.h>#include <filesystem>Go to the source code of this file.
Classes | |
| struct | BOARD_FIXTURE |
Functions | |
| static void | CHECK_TRANSFORM_MATCHES_LEGACY (const FOOTPRINT &aFp) |
| BOOST_AUTO_TEST_CASE (DefaultIsIdentity) | |
| BOOST_AUTO_TEST_CASE (SetPositionUpdatesTransform) | |
| BOOST_AUTO_TEST_CASE (SetOrientationUpdatesTransform) | |
| BOOST_AUTO_TEST_CASE (MoveUpdatesTransform) | |
| BOOST_AUTO_TEST_CASE (PadEffectiveShapeFollowsFootprintScale) | |
| BOOST_AUTO_TEST_CASE (PadBBoxFollowsFootprintMove) | |
| BOOST_AUTO_TEST_CASE (PadBBoxFollowsFootprintRotation) | |
| BOOST_AUTO_TEST_CASE (RotateUpdatesTransform) | |
| BOOST_AUTO_TEST_CASE (SetLayerUpdatesFlipped) | |
| BOOST_AUTO_TEST_CASE (CopyPreservesTransform) | |
| static void | CHECK_TRANSFORM_PAD_INVARIANT (const FOOTPRINT &aFp) |
| static void | CHECK_PAD_LIBPOS_MIRROR (const FOOTPRINT &aFp) |
| BOOST_FIXTURE_TEST_CASE (PadTransformInvariantOnLoadedBoard, BOARD_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (PadTransformInvariantAfterMutation, BOARD_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (PadLibPosMirrorOnLoad, BOARD_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (PadLibPosMirrorAfterMutation, BOARD_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (UndoRedoRestoresFootprintAndPadState, BOARD_FIXTURE) | |
| static void | CHECK_SHAPE_LIBPOS_MIRROR (const FOOTPRINT &aFp) |
| BOOST_FIXTURE_TEST_CASE (ShapeLibPosMirrorOnLoad, BOARD_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (ShapeLibPosMirrorAfterMutation, BOARD_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (SetTransformScaleDoublesPadOffsets, BOARD_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (SetTransformScaleRebakeShapes, BOARD_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (ScalePersistsAcrossSaveLoad, BOARD_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (ScaleSurvivesUndoRedo, BOARD_FIXTURE) | |
| BOOST_AUTO_TEST_CASE (SetTransformScaleScalesZoneOutline) | |
| BOOST_FIXTURE_TEST_CASE (SetTransformScaleScalesPadAndDrillSize, BOARD_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (SetTransformScaleScalesTextSize, BOARD_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (SetTransformScaleInvalidatesTextBBoxCache, BOARD_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (SetTransformScaleScalesShapeLineWidth, BOARD_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (DRCFlagsScaledFootprintWithPads, BOARD_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (DRCSilentForUnscaledFootprintWithPads, BOARD_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (RescaleAroundPointKeepsCenterFixed, BOARD_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (RescaleAroundPointMovesAnchorByExpectedDelta, BOARD_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (RescaleAroundPointComposesScale, BOARD_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (RatsnestFollowsScaledPads, BOARD_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (SetTransformScaleInvalidatesBoundingBoxCache, BOARD_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (SetTransformScaleInvalidatesCourtyardCache, BOARD_FIXTURE) | |
| BOOST_AUTO_TEST_CASE (SetTransformScaleInvalidatesZoneFill) | |
| BOOST_AUTO_TEST_CASE (MultiFootprintScaleSelectionCenterIsBBoxCenter) | |
| BOOST_AUTO_TEST_CASE (MultiFootprintScaleAroundSelectionCenter) | |
| BOOST_FIXTURE_TEST_CASE (ScaleXSetterPreservesOtherAxis, BOARD_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (ScaleYSetterPreservesOtherAxis, BOARD_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (PromotedArcSerializesAsLibArc, BOARD_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (PromotedCircleSerializesAsLibCircle, BOARD_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (NativeEllipseRoundTripsThroughRotatedFootprint, BOARD_FIXTURE) | |
| BOOST_AUTO_TEST_CASE (NativeEllipseRebakesUnderUniformScale) | |
| BOOST_FIXTURE_TEST_CASE (SizesAreStableAcrossSaveLoad, BOARD_FIXTURE) | |
| BOOST_AUTO_TEST_CASE (PolyShapeLibMirrorDoesNotDriftOnTranslate) | |
| BOOST_AUTO_TEST_CASE (PolyShapeScalesWithFootprint) | |
| BOOST_AUTO_TEST_CASE (BezierShapeScalesWithFootprint) | |
| BOOST_AUTO_TEST_CASE (RectangleSurvivesScaleRotateRoundTrip) | |
| BOOST_AUTO_TEST_CASE (RectangleSwapsDimsAt90) | |
| BOOST_AUTO_TEST_CASE (RectangleMorphsToPolyUnderNonCardinalRotation) | |
| BOOST_AUTO_TEST_CASE (RectangleSurvivesIncrementalRotateAroundExternalCenter) | |
| BOOST_FIXTURE_TEST_CASE (NativeEllipseFlipSurvivesNonUniformScale, BOARD_FIXTURE) | |
| BOOST_AUTO_TEST_CASE (NativeEllipseRebakesUnderNonUniformScaleAxisAligned) | |
| BOOST_AUTO_TEST_CASE (NativeEllipseSignUnderNonUniformScaleAndParentRotation) | |
| BOOST_AUTO_TEST_CASE (NativeEllipseContinuousAtUniformLimit) | |
| BOOST_AUTO_TEST_CASE (NativeEllipseTessellatesUnderNonUniformScaleRotated) | |
| BOOST_AUTO_TEST_CASE (PadPrimitiveScalesRuntimeKeepsLibPadLocal) | |
| BOOST_AUTO_TEST_CASE (PadPrimitiveCircleBecomesEllipseUnderNonUniformScale) | |
| BOOST_AUTO_TEST_CASE (PadPrimitiveFlipStaysPadLocal) | |
| BOOST_AUTO_TEST_CASE (CirclePadStaysCircularUnderNonUniformScale) | |
| BOOST_FIXTURE_TEST_CASE (CirclePadRoundTripsAcrossSaveLoad, BOARD_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (PadPrimitiveRoundTripsAcrossSaveLoad, BOARD_FIXTURE) | |
| BOOST_AUTO_TEST_CASE (PadPrimitiveSyncKeepsLibUnscaled) | |
| BOOST_FIXTURE_TEST_CASE (PadPolyPrimitiveRoundTripsAcrossSaveLoad, BOARD_FIXTURE) | |
| BOOST_AUTO_TEST_CASE (NonUniformScalePromotesCircleToEllipse) | |
| BOOST_AUTO_TEST_CASE (CircleToEllipseRotatesWithParent) | |
| BOOST_AUTO_TEST_CASE (NonUniformScaleSwapsAxesWhenMinorWouldExceedMajor) | |
| BOOST_AUTO_TEST_CASE (NonUniformScalePromotesArcToEllipseArc) | |
| BOOST_AUTO_TEST_CASE (UniformRescaleRestoresArc) | |
| BOOST_AUTO_TEST_CASE (UniformRescaleRestoresCircle) | |
| static void | seedSquareLibOutline (ZONE *aZone, int aHalfSide=1000000) |
| BOOST_AUTO_TEST_CASE (ZoneOutlineFollowsFootprintTransform) | |
| BOOST_AUTO_TEST_CASE (ZoneOutlineSurvivesFootprintFlip) | |
| BOOST_AUTO_TEST_CASE (ZoneHitTestRespectsFootprintTransform) | |
| BOOST_AUTO_TEST_CASE (ZoneMoveTranslatesInBoardFrame) | |
| BOOST_AUTO_TEST_CASE (ZoneRotateAboutBoardCenter) | |
| BOOST_AUTO_TEST_CASE (ZoneBoundingBoxIsBoardFrameForFPChild) | |
| BOOST_AUTO_TEST_CASE (ZoneSmoothedPolyForFPRuleAreaIsBoardFrame) | |
| BOOST_AUTO_TEST_CASE (ZoneEffectiveShapeForFPRuleAreaIsBoardFrame) | |
| BOOST_AUTO_TEST_CASE (FootprintFlipPreservesChildRectUnderRotation) | |
| BOOST_AUTO_TEST_CASE (FootprintFlipPreservesChildSegmentUnderRotation) | |
| BOOST_AUTO_TEST_CASE (FootprintFlipPreservesChildCircleUnderRotation) | |
| BOOST_AUTO_TEST_CASE (FootprintFlipPreservesChildArcUnderRotation) | |
| BOOST_AUTO_TEST_CASE (FootprintFlipPreservesPCBTextUnderRotation) | |
| BOOST_FIXTURE_TEST_CASE (TableInRotatedFootprintSurvivesSaveLoad, BOARD_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (TableRotatedInFootprintThenFootprintRotatedRoundTrips, BOARD_FIXTURE) | |
| BOOST_AUTO_TEST_CASE (TableInRotatedFootprintCellsAreVisuallyRotated) | |
| BOOST_AUTO_TEST_CASE (TableRotates90Cleanly) | |
| BOOST_AUTO_TEST_CASE (TextBoxInFootprintKeepsRectangleShape) | |
| BOOST_FIXTURE_TEST_CASE (PCBTextInRotatedFootprintSurvivesSaveLoad, BOARD_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (PCBFieldInRotatedFootprintSurvivesSaveLoad, BOARD_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (DimensionAndBarcodeInScaledFootprintSurviveSaveLoad, BOARD_FIXTURE) | |
| BOOST_AUTO_TEST_CASE (PCBTextSizeFollowsFootprintScale) | |
| BOOST_AUTO_TEST_CASE (FootprintRotateRoundTripPreservesChildRect) | |
| BOOST_AUTO_TEST_CASE (FootprintSetOrientationRoundTripPreservesChildRect) | |
| BOOST_AUTO_TEST_CASE (FootprintSetOrientationNoOpPreservesChildRect) | |
| BOOST_AUTO_TEST_CASE (FootprintFlipPreservesChildPolyUnderRotation) | |
| BOOST_AUTO_TEST_CASE (FootprintFlipPreservesChildBezierUnderRotation) | |
| BOOST_AUTO_TEST_CASE (FootprintFlipPreservesChildPointUnderRotation) | |
| BOOST_AUTO_TEST_CASE (FlipRoundTripUnderNonUniformScaleDivergedRect) | |
| BOOST_AUTO_TEST_CASE (BezierControlPointsFollowFootprintMove) | |
| BOOST_AUTO_TEST_CASE (BezierControlPointsFollowFootprintRotate) | |
| BOOST_AUTO_TEST_CASE (BezierBoardCoordsCorrectAfterRotation) | |
| BOOST_AUTO_TEST_CASE (BezierFromParserHasCorrectBoardCoords) | |
| BOOST_AUTO_TEST_CASE (PolyFromParserHasCorrectBoardCoords) | |
| BOOST_AUTO_TEST_CASE (PolyFollowsFootprintRotate) | |
| BOOST_AUTO_TEST_CASE (PolyFollowsFootprintMove) | |
| BOOST_AUTO_TEST_CASE (PadOrientationLibFrameFollowsFootprintRotate) | |
| BOOST_AUTO_TEST_CASE (PCBTextAngleLibFrameFollowsFootprintRotate) | |
| BOOST_AUTO_TEST_CASE (PCBTextBoxAngleLibFrameFollowsFootprintRotate) | |
| BOOST_AUTO_TEST_CASE (PCBTextBoxAngleLibFrameSurvivesFlipRoundTrip) | |
| BOOST_AUTO_TEST_CASE (DimensionFollowsFootprintScale) | |
| BOOST_AUTO_TEST_CASE (DimensionAngleLibFrameFollowsFootprintRotate) | |
| BOOST_AUTO_TEST_CASE (DimensionLibCoordsSurviveFootprintRotate) | |
| BOOST_AUTO_TEST_CASE (BarcodeFollowsFootprintRotate) | |
| BOOST_AUTO_TEST_CASE (BarcodeFollowsFootprintMove) | |
| BOOST_AUTO_TEST_CASE (BarcodeFlipPreservesBoardAngleDelta) | |
| BOOST_AUTO_TEST_CASE (BarcodeSurvivesFootprintFlipRoundTrip) | |
| BOOST_AUTO_TEST_CASE (DimensionLibCoordsSurviveFootprintFlipRoundTrip) | |
| BOOST_FIXTURE_TEST_CASE (StandaloneRectangleNonCardinalRotationSurvivesSaveLoad, BOARD_FIXTURE) | |
| A standalone rectangle rotated by a non-cardinal angle should keep that orientation when saved and reloaded. | |
| BOOST_AUTO_TEST_CASE (MoveAnchorMovesPointsLikeOtherChildren) | |
| BOOST_AUTO_TEST_CASE (FlipNonCardinalKeepsPadAndShapeCoincident) | |
| BOOST_AUTO_TEST_CASE (FlipBarcodeAngleMatchesTextOnRotatedFootprint) | |
| static FOOTPRINT * | buildCoincidentFootprint (BOARD &aBoard, const EDA_ANGLE &aOrient, double aScaleX, double aScaleY, const VECTOR2I &aCoincident, PAD *&aPad, PCB_SHAPE *&aSeg, PCB_TEXT *&aTxt, PCB_POINT *&aPt) |
| static void | CHECK_ALL_COINCIDENT (PAD *aPad, PCB_SHAPE *aSeg, PCB_TEXT *aTxt, PCB_POINT *aPt, const std::string &aWhen) |
| BOOST_AUTO_TEST_CASE (RoundTripPreservesChildGeometryScaledRotated) | |
| BOOST_AUTO_TEST_CASE (RotateAndMoveKeepChildrenCoincident) | |
| BOOST_AUTO_TEST_CASE (FlipLeftRightKeepsChildrenCoincident) | |
| BOOST_AUTO_TEST_CASE (CloneKeepsChildGeometryScaledRotated) | |
| BOOST_AUTO_TEST_CASE (DoubleFlipIsIdentityScaledRotated) | |
| BOOST_AUTO_TEST_CASE (ScalarAttributesStableAcrossSaveLoadUnderScale) | |
| BOOST_AUTO_TEST_CASE (EllipseRadiusEditSurvivesRebakeUnderNonUniformScale) | |
| BOOST_AUTO_TEST_CASE (ScaledTextGlyphShapeFollowsScale) | |
| BOOST_AUTO_TEST_CASE (TextBoxScalarAttributesStableAcrossSaveLoadUnderScale) | |
| static PCB_TABLE * | buildLibTable (FOOTPRINT *aFp) |
| static void | checkTableSane (PCB_TABLE *aTable, const VECTOR2I &aNearPos) |
| BOOST_AUTO_TEST_CASE (PolyTextBoxRebakeDoesNotOverflowOnStaleStartEnd) | |
| BOOST_AUTO_TEST_CASE (RotatedTableSurvivesNonUniformScale) | |
| BOOST_AUTO_TEST_CASE (TableInRotatedFootprintStaysSane) | |
| BOOST_FIXTURE_TEST_CASE (TableInNonCardinalRotatedFootprintSurvivesSaveLoad, BOARD_FIXTURE) | |
| BOOST_FIXTURE_TEST_CASE (LegacyEmbeddedTableInRotatedFootprintLoads, BOARD_FIXTURE) | |
| BOOST_AUTO_TEST_CASE (TableScalesWithFootprint) | |
| BOOST_AUTO_TEST_CASE (CustomPadShapeScalesWithFootprint) | |
| BOOST_AUTO_TEST_CASE | ( | BarcodeFlipPreservesBoardAngleDelta | ) |
Definition at line 3865 of file test_footprint_transform_sync.cpp.
References actual, BOARD::Add(), FOOTPRINT::Add(), APPEND, DEGREES_T, expected, FOOTPRINT::Flip(), FOOTPRINT, PCB_BARCODE::GetAngle(), FOOTPRINT::GetPosition(), LEFT_RIGHT, EDA_ANGLE::Normalize(), FOOTPRINT::SetOrientation(), PCB_BARCODE::SetOrientation(), FOOTPRINT::SetPosition(), PCB_BARCODE::SetPosition(), and TOP_BOTTOM.
| BOOST_AUTO_TEST_CASE | ( | BarcodeFollowsFootprintMove | ) |
Definition at line 3843 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), APPEND, BOOST_CHECK_EQUAL(), FOOTPRINT, PCB_BARCODE::GetLibraryPos(), PCB_BARCODE::GetPosition(), FOOTPRINT::SetPosition(), PCB_BARCODE::SetPosition(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | BarcodeFollowsFootprintRotate | ) |
Definition at line 3814 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), APPEND, EDA_ANGLE::AsDegrees(), BOOST_CHECK_EQUAL(), DEGREES_T, FOOTPRINT, PCB_BARCODE::GetAngle(), PCB_BARCODE::GetLibraryAngle(), PCB_BARCODE::GetLibraryPos(), FOOTPRINT::SetOrientation(), PCB_BARCODE::SetOrientation(), FOOTPRINT::SetPosition(), PCB_BARCODE::SetPosition(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | BarcodeSurvivesFootprintFlipRoundTrip | ) |
Definition at line 3901 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), APPEND, EDA_ANGLE::AsDegrees(), BOOST_CHECK_EQUAL(), BOOST_CHECK_MESSAGE(), DEGREES_T, FOOTPRINT::Flip(), FOOTPRINT, PCB_BARCODE::GetAngle(), PCB_BARCODE::GetLibraryAngle(), PCB_BARCODE::GetLibraryPos(), FOOTPRINT::GetPosition(), PCB_BARCODE::GetPosition(), FOOTPRINT::SetOrientation(), PCB_BARCODE::SetOrientation(), FOOTPRINT::SetPosition(), PCB_BARCODE::SetPosition(), TOP_BOTTOM, VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | BezierBoardCoordsCorrectAfterRotation | ) |
Definition at line 3407 of file test_footprint_transform_sync.cpp.
References std::abs(), BOARD::Add(), FOOTPRINT::Add(), APPEND, TRANSFORM_TRS::Apply(), BEZIER, BOOST_CHECK_MESSAGE(), DEGREES_T, FOOTPRINT, EDA_SHAPE::GetBezierC1(), EDA_SHAPE::GetBezierC2(), PCB_SHAPE::GetLibraryBezierC1(), PCB_SHAPE::GetLibraryBezierC2(), FOOTPRINT::GetTransform(), PCB_SHAPE::SetBezierC1(), PCB_SHAPE::SetBezierC2(), PCB_SHAPE::SetEnd(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), PCB_SHAPE::SetStart(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | BezierControlPointsFollowFootprintMove | ) |
Definition at line 3355 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), APPEND, BEZIER, BOOST_CHECK_EQUAL(), FOOTPRINT, EDA_SHAPE::GetBezierC1(), EDA_SHAPE::GetBezierC2(), PCB_SHAPE::SetBezierC1(), PCB_SHAPE::SetBezierC2(), PCB_SHAPE::SetEnd(), FOOTPRINT::SetPosition(), PCB_SHAPE::SetStart(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | BezierControlPointsFollowFootprintRotate | ) |
Definition at line 3382 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), APPEND, BEZIER, BOOST_CHECK_MESSAGE(), DEGREES_T, FOOTPRINT, EDA_SHAPE::GetBezierC1(), EDA_SHAPE::GetBezierC2(), PCB_SHAPE::SetBezierC1(), PCB_SHAPE::SetBezierC2(), PCB_SHAPE::SetEnd(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), and PCB_SHAPE::SetStart().
| BOOST_AUTO_TEST_CASE | ( | BezierFromParserHasCorrectBoardCoords | ) |
Definition at line 3442 of file test_footprint_transform_sync.cpp.
References std::abs(), BOARD::Add(), FOOTPRINT::Add(), APPEND, TRANSFORM_TRS::Apply(), BEZIER, BOOST_CHECK_MESSAGE(), DEGREES_T, expected, FOOTPRINT, EDA_SHAPE::GetBezierC1(), EDA_SHAPE::GetBezierC2(), EDA_SHAPE::GetEnd(), EDA_SHAPE::GetStart(), FOOTPRINT::GetTransform(), name, PCB_SHAPE::OverrideLibBezier(), PCB_SHAPE::OverrideLibCoords(), PCB_SHAPE::RebakeFromLib(), PCB_SHAPE::SetBezierC1(), PCB_SHAPE::SetBezierC2(), PCB_SHAPE::SetEnd(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), and PCB_SHAPE::SetStart().
| BOOST_AUTO_TEST_CASE | ( | BezierShapeScalesWithFootprint | ) |
Definition at line 1417 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), APPEND, BEZIER, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), EDA_SHAPE::GetBezierC1(), EDA_SHAPE::GetBezierC2(), EDA_SHAPE::GetBezierPoints(), EDA_SHAPE::GetEnd(), EDA_SHAPE::GetStart(), EDA_SHAPE::RebuildBezierToSegmentsPointsList(), PCB_SHAPE::SetBezierC1(), PCB_SHAPE::SetBezierC2(), PCB_SHAPE::SetEnd(), FOOTPRINT::SetPosition(), PCB_SHAPE::SetStart(), FOOTPRINT::SetTransformScale(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | CirclePadStaysCircularUnderNonUniformScale | ) |
Definition at line 1801 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), PADSTACK::ALL_LAYERS, APPEND, BOOST_CHECK_EQUAL(), CIRCLE, PAD, pad, FOOTPRINT::SetPosition(), FOOTPRINT::SetTransformScale(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | CircleToEllipseRotatesWithParent | ) |
Definition at line 2069 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), APPEND, CIRCLE, circle(), DEGREES_T, FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), and FOOTPRINT::SetTransformScale().
| BOOST_AUTO_TEST_CASE | ( | CloneKeepsChildGeometryScaledRotated | ) |
Definition at line 4283 of file test_footprint_transform_sync.cpp.
References BOOST_REQUIRE(), buildCoincidentFootprint(), FOOTPRINT::Clone(), DEGREES_T, EDA_SHAPE::GetStart(), PCB_TEXT::GetTextPos(), pad, PCB_SHAPE_T, and PCB_TEXT_T.
| BOOST_AUTO_TEST_CASE | ( | CopyPreservesTransform | ) |
Definition at line 192 of file test_footprint_transform_sync.cpp.
References B_Cu, CHECK_TRANSFORM_MATCHES_LEGACY(), copy, DEGREES_T, FOOTPRINT::SetLayer(), FOOTPRINT::SetOrientation(), and FOOTPRINT::SetPosition().
| BOOST_AUTO_TEST_CASE | ( | CustomPadShapeScalesWithFootprint | ) |
Definition at line 4743 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), PADSTACK::ALL_LAYERS, APPEND, BOOST_CHECK_MESSAGE(), CIRCLE, CUSTOM, FOOTPRINT, BOX2< Vec >::GetHeight(), BOX2< Vec >::GetWidth(), PAD, pad, FOOTPRINT::SetPosition(), FOOTPRINT::SetTransformScale(), and PAD::SMDMask().
| BOOST_AUTO_TEST_CASE | ( | DefaultIsIdentity | ) |
Definition at line 61 of file test_footprint_transform_sync.cpp.
References CHECK_TRANSFORM_MATCHES_LEGACY(), FOOTPRINT::GetTransform(), and TRANSFORM_TRS::IsIdentity().
| BOOST_AUTO_TEST_CASE | ( | DimensionAngleLibFrameFollowsFootprintRotate | ) |
Definition at line 3761 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), APPEND, EDA_ANGLE::AsDegrees(), DEGREES_T, FOOTPRINT, PCB_TEXT::GetTextAngle(), PCB_DIM_ALIGNED_T, PCB_DIMENSION_BASE::SetEnd(), PCB_DIMENSION_BASE::SetKeepTextAligned(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), PCB_DIMENSION_BASE::SetStart(), and PCB_TEXT::SetTextAngle().
| BOOST_AUTO_TEST_CASE | ( | DimensionFollowsFootprintScale | ) |
Definition at line 3740 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), APPEND, BOOST_CHECK_EQUAL(), FOOTPRINT, PCB_DIMENSION_BASE::GetEnd(), PCB_DIMENSION_BASE::GetStart(), PCB_DIM_ALIGNED_T, PCB_DIMENSION_BASE::SetEnd(), FOOTPRINT::SetPosition(), PCB_DIMENSION_BASE::SetStart(), FOOTPRINT::SetTransformScale(), and VECTOR2< T >::x.
| BOOST_AUTO_TEST_CASE | ( | DimensionLibCoordsSurviveFootprintFlipRoundTrip | ) |
Definition at line 3934 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), APPEND, EDA_ANGLE::AsDegrees(), BOOST_CHECK_EQUAL(), BOOST_CHECK_MESSAGE(), DEGREES_T, FOOTPRINT::Flip(), FOOTPRINT, PCB_DIMENSION_BASE::GetEnd(), PCB_DIMENSION_BASE::GetLibraryEnd(), PCB_DIMENSION_BASE::GetLibraryStart(), FOOTPRINT::GetPosition(), PCB_DIMENSION_BASE::GetStart(), PCB_TEXT::GetTextAngle(), PCB_DIM_ALIGNED_T, PCB_DIMENSION_BASE::SetEnd(), PCB_DIMENSION_BASE::SetKeepTextAligned(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), PCB_DIMENSION_BASE::SetStart(), PCB_TEXT::SetTextAngle(), TOP_BOTTOM, VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | DimensionLibCoordsSurviveFootprintRotate | ) |
Definition at line 3787 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), APPEND, BOOST_CHECK_EQUAL(), DEGREES_T, FOOTPRINT, PCB_DIMENSION_BASE::GetLibraryEnd(), PCB_DIMENSION_BASE::GetLibraryStart(), PCB_DIM_ALIGNED_T, PCB_DIMENSION_BASE::SetEnd(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), PCB_DIMENSION_BASE::SetStart(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | DoubleFlipIsIdentityScaledRotated | ) |
Definition at line 4319 of file test_footprint_transform_sync.cpp.
References buildCoincidentFootprint(), DEGREES_T, FOOTPRINT::Flip(), FOOTPRINT::GetPosition(), PCB_POINT::GetPosition(), EDA_SHAPE::GetStart(), PCB_TEXT::GetTextPos(), LEFT_RIGHT, pad, and TOP_BOTTOM.
| BOOST_AUTO_TEST_CASE | ( | EllipseRadiusEditSurvivesRebakeUnderNonUniformScale | ) |
Definition at line 4393 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), BOOST_CHECK_EQUAL(), ELLIPSE, F_SilkS, FOOTPRINT, EDA_SHAPE::GetEllipseMajorRadius(), EDA_SHAPE::GetEllipseMinorRadius(), FOOTPRINT::GetPosition(), PCB_SHAPE::SetEllipseCenter(), PCB_SHAPE::SetEllipseMajorRadius(), PCB_SHAPE::SetEllipseMinorRadius(), PCB_SHAPE::SetLayer(), FOOTPRINT::SetPosition(), and FOOTPRINT::SetTransformScale().
| BOOST_AUTO_TEST_CASE | ( | FlipBarcodeAngleMatchesTextOnRotatedFootprint | ) |
Definition at line 4116 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), EDA_ANGLE::AsDegrees(), PCB_BARCODE::AssembleBarcode(), DEGREES_T, F_SilkS, FOOTPRINT::Flip(), FOOTPRINT, PCB_BARCODE::GetOrientation(), FOOTPRINT::GetPosition(), PCB_TEXT::GetTextAngle(), EDA_ANGLE::Normalize(), PCB_BARCODE::SetHeight(), BOARD_ITEM::SetLayer(), PCB_BARCODE::SetLayer(), FOOTPRINT::SetOrientation(), PCB_BARCODE::SetOrientation(), FOOTPRINT::SetPosition(), EDA_TEXT::SetText(), PCB_BARCODE::SetText(), PCB_TEXT::SetTextAngle(), PCB_BARCODE::SetTextSize(), PCB_BARCODE::SetWidth(), and TOP_BOTTOM.
| BOOST_AUTO_TEST_CASE | ( | FlipLeftRightKeepsChildrenCoincident | ) |
Definition at line 4267 of file test_footprint_transform_sync.cpp.
References buildCoincidentFootprint(), CHECK_ALL_COINCIDENT(), DEGREES_T, FOOTPRINT::Flip(), FOOTPRINT::GetPosition(), LEFT_RIGHT, and pad.
| BOOST_AUTO_TEST_CASE | ( | FlipNonCardinalKeepsPadAndShapeCoincident | ) |
Definition at line 4063 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), PADSTACK::ALL_LAYERS, BOOST_CHECK_EQUAL(), DEGREES_T, F_Cu, F_SilkS, FOOTPRINT::Flip(), FOOTPRINT, FOOTPRINT::GetPosition(), PCB_POINT::GetPosition(), EDA_SHAPE::GetStart(), PCB_TEXT::GetTextPos(), PAD, pad, SEGMENT, PCB_SHAPE::SetEnd(), BOARD_ITEM::SetLayer(), PCB_SHAPE::SetLayer(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), PCB_POINT::SetPosition(), PCB_SHAPE::SetStart(), EDA_TEXT::SetText(), EDA_TEXT::SetTextPos(), SMD, PAD::SMDMask(), TOP_BOTTOM, VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | FlipRoundTripUnderNonUniformScaleDivergedRect | ) |
Definition at line 3319 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), APPEND, BOOST_CHECK_EQUAL(), BOOST_CHECK_MESSAGE(), FOOTPRINT::Flip(), FOOTPRINT, PCB_SHAPE::GetLibraryEnd(), PCB_SHAPE::GetLibraryShape(), PCB_SHAPE::GetLibraryStart(), FOOTPRINT::GetPosition(), RECTANGLE, PCB_SHAPE::SetEnd(), FOOTPRINT::SetPosition(), PCB_SHAPE::SetStart(), FOOTPRINT::SetTransformScale(), TOP_BOTTOM, VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | FootprintFlipPreservesChildArcUnderRotation | ) |
Definition at line 2500 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), APPEND, ARC, BOOST_CHECK_EQUAL(), BOOST_CHECK_MESSAGE(), DEGREES_T, FOOTPRINT::Flip(), FOOTPRINT, PCB_SHAPE::GetLibraryArcMid(), PCB_SHAPE::GetLibraryEnd(), PCB_SHAPE::GetLibraryStart(), FOOTPRINT::GetPosition(), PCB_SHAPE::SetArcGeometry(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), TOP_BOTTOM, VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | FootprintFlipPreservesChildBezierUnderRotation | ) |
Definition at line 3250 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), APPEND, BEZIER, BOOST_CHECK_EQUAL(), BOOST_CHECK_MESSAGE(), DEGREES_T, FOOTPRINT::Flip(), FOOTPRINT, PCB_SHAPE::GetLibraryBezierC1(), PCB_SHAPE::GetLibraryBezierC2(), PCB_SHAPE::GetLibraryEnd(), PCB_SHAPE::GetLibraryStart(), FOOTPRINT::GetPosition(), PCB_SHAPE::SetBezierC1(), PCB_SHAPE::SetBezierC2(), PCB_SHAPE::SetEnd(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), PCB_SHAPE::SetStart(), TOP_BOTTOM, VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | FootprintFlipPreservesChildCircleUnderRotation | ) |
Definition at line 2468 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), APPEND, BOOST_CHECK_EQUAL(), BOOST_CHECK_MESSAGE(), CIRCLE, circle(), DEGREES_T, FOOTPRINT::Flip(), FOOTPRINT, FOOTPRINT::GetPosition(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), TOP_BOTTOM, VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | FootprintFlipPreservesChildPointUnderRotation | ) |
Definition at line 3292 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), APPEND, BOOST_CHECK_EQUAL(), BOOST_CHECK_MESSAGE(), DEGREES_T, FOOTPRINT::Flip(), FOOTPRINT, FOOTPRINT::GetPosition(), PCB_POINT::GetPosition(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), PCB_POINT::SetPosition(), TOP_BOTTOM, VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | FootprintFlipPreservesChildPolyUnderRotation | ) |
Definition at line 3196 of file test_footprint_transform_sync.cpp.
References std::abs(), BOARD::Add(), FOOTPRINT::Add(), APPEND, SHAPE_POLY_SET::Append(), BOOST_CHECK_MESSAGE(), SHAPE_POLY_SET::CVertex(), DEGREES_T, FOOTPRINT::Flip(), FOOTPRINT, EDA_SHAPE::GetPolyShape(), FOOTPRINT::GetPosition(), SHAPE_POLY_SET::NewOutline(), POLY, FOOTPRINT::SetOrientation(), PCB_SHAPE::SetPolyShape(), FOOTPRINT::SetPosition(), TOP_BOTTOM, SHAPE_POLY_SET::TotalVertices(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | FootprintFlipPreservesChildRectUnderRotation | ) |
Definition at line 2404 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), APPEND, BOOST_CHECK_EQUAL(), BOOST_CHECK_MESSAGE(), DEGREES_T, FOOTPRINT::Flip(), FOOTPRINT, PCB_SHAPE::GetLibraryEnd(), PCB_SHAPE::GetLibraryStart(), FOOTPRINT::GetPosition(), RECTANGLE, PCB_SHAPE::SetEnd(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), PCB_SHAPE::SetStart(), TOP_BOTTOM, VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | FootprintFlipPreservesChildSegmentUnderRotation | ) |
Definition at line 2436 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), APPEND, BOOST_CHECK_EQUAL(), BOOST_CHECK_MESSAGE(), DEGREES_T, FOOTPRINT::Flip(), FOOTPRINT, PCB_SHAPE::GetLibraryEnd(), PCB_SHAPE::GetLibraryStart(), FOOTPRINT::GetPosition(), SEGMENT, PCB_SHAPE::SetEnd(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), PCB_SHAPE::SetStart(), TOP_BOTTOM, VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | FootprintFlipPreservesPCBTextUnderRotation | ) |
Definition at line 2535 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), APPEND, BOOST_CHECK_EQUAL(), BOOST_CHECK_MESSAGE(), DEGREES_T, FOOTPRINT::Flip(), FOOTPRINT, FOOTPRINT::GetPosition(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), text, TOP_BOTTOM, VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | FootprintRotateRoundTripPreservesChildRect | ) |
Definition at line 3116 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), APPEND, BOOST_CHECK_EQUAL(), DEGREES_T, FOOTPRINT, PCB_SHAPE::GetLibraryEnd(), PCB_SHAPE::GetLibraryStart(), FOOTPRINT::GetPosition(), RECTANGLE, FOOTPRINT::Rotate(), PCB_SHAPE::SetEnd(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), PCB_SHAPE::SetStart(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | FootprintSetOrientationNoOpPreservesChildRect | ) |
Definition at line 3170 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), APPEND, BOOST_CHECK_EQUAL(), DEGREES_T, FOOTPRINT, PCB_SHAPE::GetLibraryEnd(), PCB_SHAPE::GetLibraryStart(), RECTANGLE, PCB_SHAPE::SetEnd(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), PCB_SHAPE::SetStart(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | FootprintSetOrientationRoundTripPreservesChildRect | ) |
Definition at line 3143 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), APPEND, BOOST_CHECK_EQUAL(), DEGREES_T, FOOTPRINT, PCB_SHAPE::GetLibraryEnd(), PCB_SHAPE::GetLibraryStart(), RECTANGLE, PCB_SHAPE::SetEnd(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), PCB_SHAPE::SetStart(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | MoveAnchorMovesPointsLikeOtherChildren | ) |
Definition at line 4034 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), PADSTACK::ALL_LAYERS, BOOST_CHECK_EQUAL(), F_Cu, FOOTPRINT, PCB_POINT::GetPosition(), FOOTPRINT::MoveAnchorPosition(), PAD, pad, BOARD_ITEM::SetLayer(), PCB_POINT::SetPosition(), SMD, PAD::SMDMask(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | MoveUpdatesTransform | ) |
Definition at line 85 of file test_footprint_transform_sync.cpp.
References BOOST_CHECK_EQUAL(), CHECK_TRANSFORM_MATCHES_LEGACY(), FOOTPRINT::GetTransform(), TRANSFORM_TRS::GetTranslate(), FOOTPRINT::Move(), FOOTPRINT::SetPosition(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | MultiFootprintScaleAroundSelectionCenter | ) |
Definition at line 1049 of file test_footprint_transform_sync.cpp.
References BOOST_CHECK_EQUAL(), center, FOOTPRINT::GetPosition(), FOOTPRINT::GetScaleX(), FOOTPRINT::GetScaleY(), FOOTPRINT::RescaleAroundPoint(), FOOTPRINT::SetPosition(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | MultiFootprintScaleSelectionCenterIsBBoxCenter | ) |
Definition at line 1010 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), APPEND, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), F_SilkS, FOOTPRINT::GetBoundingBox(), BOX2< Vec >::GetCenter(), FOOTPRINT::GetPosition(), BOX2< Vec >::Merge(), RECTANGLE, FOOTPRINT::RescaleAroundPoint(), PCB_SHAPE::SetEnd(), PCB_SHAPE::SetLayer(), FOOTPRINT::SetPosition(), PCB_SHAPE::SetStart(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | NativeEllipseContinuousAtUniformLimit | ) |
Definition at line 1648 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), ANGLE_0, APPEND, EDA_ANGLE::AsDegrees(), DEGREES_T, ELLIPSE, EDA_SHAPE::GetEllipseMajorRadius(), EDA_SHAPE::GetEllipseMinorRadius(), EDA_SHAPE::GetEllipseRotation(), PCB_SHAPE::SetEllipseCenter(), PCB_SHAPE::SetEllipseMajorRadius(), PCB_SHAPE::SetEllipseMinorRadius(), PCB_SHAPE::SetEllipseRotation(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), and FOOTPRINT::SetTransformScale().
| BOOST_AUTO_TEST_CASE | ( | NativeEllipseRebakesUnderNonUniformScaleAxisAligned | ) |
Definition at line 1599 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), ANGLE_0, APPEND, EDA_ANGLE::AsDegrees(), BOOST_CHECK_EQUAL(), ELLIPSE, EDA_SHAPE::GetEllipseMajorRadius(), EDA_SHAPE::GetEllipseMinorRadius(), EDA_SHAPE::GetEllipseRotation(), PCB_SHAPE::SetEllipseCenter(), PCB_SHAPE::SetEllipseMajorRadius(), PCB_SHAPE::SetEllipseMinorRadius(), PCB_SHAPE::SetEllipseRotation(), FOOTPRINT::SetPosition(), and FOOTPRINT::SetTransformScale().
| BOOST_AUTO_TEST_CASE | ( | NativeEllipseRebakesUnderUniformScale | ) |
Definition at line 1294 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), ANGLE_0, APPEND, BOOST_CHECK_EQUAL(), ELLIPSE, EDA_SHAPE::GetEllipseCenter(), EDA_SHAPE::GetEllipseMajorRadius(), EDA_SHAPE::GetEllipseMinorRadius(), PCB_SHAPE::GetLibraryEllipseCenter(), PCB_SHAPE::GetLibraryEllipseMajorRadius(), PCB_SHAPE::GetLibraryEllipseMinorRadius(), EDA_SHAPE::GetShape(), PCB_SHAPE::SetEllipseCenter(), PCB_SHAPE::SetEllipseMajorRadius(), PCB_SHAPE::SetEllipseMinorRadius(), PCB_SHAPE::SetEllipseRotation(), FOOTPRINT::SetPosition(), FOOTPRINT::SetTransformScale(), and VECTOR2< T >::x.
| BOOST_AUTO_TEST_CASE | ( | NativeEllipseSignUnderNonUniformScaleAndParentRotation | ) |
Definition at line 1620 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), ANGLE_0, APPEND, EDA_ANGLE::AsDegrees(), DEGREES_T, ELLIPSE, EDA_SHAPE::GetEllipseMajorRadius(), EDA_SHAPE::GetEllipseMinorRadius(), EDA_SHAPE::GetEllipseRotation(), PCB_SHAPE::SetEllipseCenter(), PCB_SHAPE::SetEllipseMajorRadius(), PCB_SHAPE::SetEllipseMinorRadius(), PCB_SHAPE::SetEllipseRotation(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), and FOOTPRINT::SetTransformScale().
| BOOST_AUTO_TEST_CASE | ( | NativeEllipseTessellatesUnderNonUniformScaleRotated | ) |
Definition at line 1683 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), APPEND, SHAPE_POLY_SET::BBox(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), DEGREES_T, ELLIPSE, EDA_SHAPE::GetEllipseMajorRadius(), EDA_SHAPE::GetEllipseMinorRadius(), BOX2< Vec >::GetHeight(), PCB_SHAPE::GetLibraryShape(), EDA_SHAPE::GetPolyShape(), EDA_SHAPE::GetShape(), BOX2< Vec >::GetWidth(), EDA_SHAPE::IsPolyShapeValid(), SHAPE_POLY_SET::Outline(), SHAPE_POLY_SET::OutlineCount(), SHAPE_LINE_CHAIN::PointCount(), POLY, PCB_SHAPE::SetEllipseCenter(), PCB_SHAPE::SetEllipseMajorRadius(), PCB_SHAPE::SetEllipseMinorRadius(), PCB_SHAPE::SetEllipseRotation(), FOOTPRINT::SetPosition(), and FOOTPRINT::SetTransformScale().
| BOOST_AUTO_TEST_CASE | ( | NonUniformScalePromotesArcToEllipseArc | ) |
Definition at line 2107 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), APPEND, ARC, EDA_ANGLE::AsDegrees(), BOOST_CHECK_EQUAL(), ELLIPSE_ARC, EDA_SHAPE::GetEllipseCenter(), EDA_SHAPE::GetEllipseEndAngle(), EDA_SHAPE::GetEllipseMajorRadius(), EDA_SHAPE::GetEllipseMinorRadius(), EDA_SHAPE::GetEllipseRotation(), EDA_SHAPE::GetEllipseStartAngle(), EDA_SHAPE::GetShape(), PCB_SHAPE::SetArcGeometry(), FOOTPRINT::SetTransformScale(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | NonUniformScalePromotesCircleToEllipse | ) |
Definition at line 2047 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), APPEND, BOOST_CHECK_EQUAL(), CIRCLE, circle(), ELLIPSE, FOOTPRINT::SetPosition(), and FOOTPRINT::SetTransformScale().
| BOOST_AUTO_TEST_CASE | ( | NonUniformScaleSwapsAxesWhenMinorWouldExceedMajor | ) |
Definition at line 2088 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), APPEND, BOOST_CHECK_EQUAL(), CIRCLE, circle(), ELLIPSE, and FOOTPRINT::SetTransformScale().
| BOOST_AUTO_TEST_CASE | ( | PadBBoxFollowsFootprintMove | ) |
Definition at line 128 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), PADSTACK::ALL_LAYERS, APPEND, BOOST_CHECK_EQUAL(), BOX2< Vec >::GetCenter(), PAD, pad, FOOTPRINT::SetPosition(), and VECTOR2< T >::x.
| BOOST_AUTO_TEST_CASE | ( | PadBBoxFollowsFootprintRotation | ) |
Definition at line 148 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), PADSTACK::ALL_LAYERS, APPEND, BOOST_CHECK_EQUAL(), DEGREES_T, BOX2< Vec >::GetCenter(), PAD, pad, FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | PadEffectiveShapeFollowsFootprintScale | ) |
Definition at line 96 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), PADSTACK::ALL_LAYERS, ALWAYS_FLASHED, APPEND, BOOST_CHECK_EQUAL(), CIRCLE, F_Cu, BOX2< Vec >::GetCenter(), BOX2< Vec >::GetSize(), PAD, pad, FOOTPRINT::SetPosition(), FOOTPRINT::SetTransformScale(), PAD::SMDMask(), and VECTOR2< T >::x.
| BOOST_AUTO_TEST_CASE | ( | PadOrientationLibFrameFollowsFootprintRotate | ) |
Definition at line 3624 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), PADSTACK::ALL_LAYERS, APPEND, CIRCLE, DEGREES_T, FOOTPRINT, PAD, pad, FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), and PAD::SMDMask().
| BOOST_AUTO_TEST_CASE | ( | PadPrimitiveCircleBecomesEllipseUnderNonUniformScale | ) |
Definition at line 1747 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), PADSTACK::ALL_LAYERS, APPEND, BOOST_CHECK_EQUAL(), CIRCLE, ELLIPSE, PCB_SHAPE::GetLibraryShape(), EDA_SHAPE::GetShape(), PAD, pad, PCB_SHAPE::SetEnd(), FOOTPRINT::SetPosition(), PCB_SHAPE::SetStart(), and FOOTPRINT::SetTransformScale().
| BOOST_AUTO_TEST_CASE | ( | PadPrimitiveFlipStaysPadLocal | ) |
Definition at line 1770 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), PADSTACK::ALL_LAYERS, APPEND, BOOST_CHECK_EQUAL(), CUSTOM, FOOTPRINT::Flip(), FOOTPRINT, EDA_SHAPE::GetEnd(), PCB_SHAPE::GetLibraryEnd(), FOOTPRINT::GetPosition(), EDA_SHAPE::GetStart(), PAD, pad, SEGMENT, PCB_SHAPE::SetEnd(), FOOTPRINT::SetPosition(), PCB_SHAPE::SetStart(), TOP_BOTTOM, VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | PadPrimitiveScalesRuntimeKeepsLibPadLocal | ) |
Definition at line 1723 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), PADSTACK::ALL_LAYERS, APPEND, BOOST_CHECK_EQUAL(), CIRCLE, EDA_SHAPE::GetEnd(), PCB_SHAPE::GetLibraryEnd(), PAD, pad, PCB_SHAPE::SetEnd(), FOOTPRINT::SetPosition(), PCB_SHAPE::SetStart(), FOOTPRINT::SetTransformScale(), and VECTOR2< T >::x.
| BOOST_AUTO_TEST_CASE | ( | PadPrimitiveSyncKeepsLibUnscaled | ) |
Definition at line 1953 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), PADSTACK::ALL_LAYERS, APPEND, BOOST_CHECK_EQUAL(), CIRCLE, CUSTOM, FOOTPRINT, BOX2< Vec >::GetHeight(), BOX2< Vec >::GetWidth(), PAD, pad, FOOTPRINT::SetPosition(), FOOTPRINT::SetTransformScale(), and PAD::SMDMask().
| BOOST_AUTO_TEST_CASE | ( | PCBTextAngleLibFrameFollowsFootprintRotate | ) |
Definition at line 3657 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), APPEND, DEGREES_T, FOOTPRINT, FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), and text.
| BOOST_AUTO_TEST_CASE | ( | PCBTextBoxAngleLibFrameFollowsFootprintRotate | ) |
Definition at line 3683 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), APPEND, EDA_ANGLE::AsDegrees(), DEGREES_T, FOOTPRINT, PCB_TEXTBOX::GetTextAngle(), PCB_SHAPE::SetEnd(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), PCB_SHAPE::SetStart(), EDA_TEXT::SetText(), and PCB_TEXTBOX::SetTextAngle().
| BOOST_AUTO_TEST_CASE | ( | PCBTextBoxAngleLibFrameSurvivesFlipRoundTrip | ) |
Definition at line 3710 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), APPEND, EDA_ANGLE::AsDegrees(), BOOST_CHECK_MESSAGE(), DEGREES_T, FOOTPRINT::Flip(), FOOTPRINT, FOOTPRINT::GetPosition(), PCB_TEXTBOX::GetTextAngle(), PCB_SHAPE::SetEnd(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), PCB_SHAPE::SetStart(), EDA_TEXT::SetText(), PCB_TEXTBOX::SetTextAngle(), and TOP_BOTTOM.
| BOOST_AUTO_TEST_CASE | ( | PCBTextSizeFollowsFootprintScale | ) |
Definition at line 3095 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), APPEND, BOOST_CHECK_EQUAL(), FOOTPRINT::SetPosition(), FOOTPRINT::SetTransformScale(), and text.
| BOOST_AUTO_TEST_CASE | ( | PolyFollowsFootprintMove | ) |
Definition at line 3587 of file test_footprint_transform_sync.cpp.
References std::abs(), actual, BOARD::Add(), FOOTPRINT::Add(), APPEND, SHAPE_POLY_SET::Append(), BOOST_CHECK_MESSAGE(), SHAPE_POLY_SET::CVertex(), delta, expected, FOOTPRINT, EDA_SHAPE::GetPolyShape(), FOOTPRINT::GetPosition(), SHAPE_POLY_SET::NewOutline(), POLY, PCB_SHAPE::SetPolyShape(), FOOTPRINT::SetPosition(), and SHAPE_POLY_SET::TotalVertices().
| BOOST_AUTO_TEST_CASE | ( | PolyFollowsFootprintRotate | ) |
Definition at line 3536 of file test_footprint_transform_sync.cpp.
References std::abs(), BOARD::Add(), FOOTPRINT::Add(), APPEND, SHAPE_POLY_SET::Append(), BOOST_CHECK_MESSAGE(), SHAPE_POLY_SET::CVertex(), DEGREES_T, FOOTPRINT, EDA_SHAPE::GetPolyShape(), SHAPE_POLY_SET::NewOutline(), POLY, FOOTPRINT::SetOrientation(), PCB_SHAPE::SetPolyShape(), FOOTPRINT::SetPosition(), SHAPE_POLY_SET::TotalVertices(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | PolyFromParserHasCorrectBoardCoords | ) |
Definition at line 3489 of file test_footprint_transform_sync.cpp.
References std::abs(), actual, BOARD::Add(), FOOTPRINT::Add(), APPEND, SHAPE_POLY_SET::Append(), TRANSFORM_TRS::Apply(), BOOST_CHECK_MESSAGE(), DEGREES_T, expected, FOOTPRINT, EDA_SHAPE::GetPolyShape(), FOOTPRINT::GetTransform(), SHAPE_POLY_SET::IterateWithHoles(), SHAPE_POLY_SET::NewOutline(), POLY, result, FOOTPRINT::SetOrientation(), PCB_SHAPE::SetPolyShape(), FOOTPRINT::SetPosition(), and SHAPE_POLY_SET::SetVertex().
| BOOST_AUTO_TEST_CASE | ( | PolyShapeLibMirrorDoesNotDriftOnTranslate | ) |
Definition at line 1363 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), APPEND, SHAPE_POLY_SET::Append(), BOOST_CHECK_EQUAL(), PCB_SHAPE::GetLibraryEnd(), PCB_SHAPE::GetLibraryStart(), SHAPE_POLY_SET::NewOutline(), POLY, PCB_SHAPE::SetPolyShape(), FOOTPRINT::SetPosition(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | PolyShapeScalesWithFootprint | ) |
Definition at line 1392 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), APPEND, SHAPE_POLY_SET::Append(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SHAPE_LINE_CHAIN::CPoint(), EDA_SHAPE::GetPolyShape(), SHAPE_POLY_SET::NewOutline(), SHAPE_POLY_SET::Outline(), SHAPE_POLY_SET::OutlineCount(), POLY, PCB_SHAPE::SetPolyShape(), FOOTPRINT::SetPosition(), FOOTPRINT::SetTransformScale(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | PolyTextBoxRebakeDoesNotOverflowOnStaleStartEnd | ) |
Definition at line 4561 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), APPEND, SHAPE_POLY_SET::Append(), SHAPE_POLY_SET::BBox(), DEGREES_T, BOX2< Vec >::GetHeight(), EDA_SHAPE::GetPolyShape(), BOX2< Vec >::GetWidth(), SHAPE_POLY_SET::NewOutline(), PCB_SHAPE::OverrideLibCoords(), PCB_SHAPE::OverrideLibPoly(), POLY, FOOTPRINT::SetOrientation(), PCB_SHAPE::SetPolyShape(), FOOTPRINT::SetPosition(), and PCB_TEXTBOX::SetShape().
| BOOST_AUTO_TEST_CASE | ( | RectangleMorphsToPolyUnderNonCardinalRotation | ) |
Definition at line 1502 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), APPEND, BOOST_CHECK_EQUAL(), DEGREES_T, PCB_SHAPE::GetLibraryEnd(), PCB_SHAPE::GetLibraryShape(), PCB_SHAPE::GetLibraryStart(), EDA_SHAPE::GetPolyShape(), EDA_SHAPE::GetShape(), SHAPE_POLY_SET::Outline(), SHAPE_LINE_CHAIN::PointCount(), POLY, RECTANGLE, PCB_SHAPE::SetEnd(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), PCB_SHAPE::SetStart(), and VECTOR2< T >::x.
| BOOST_AUTO_TEST_CASE | ( | RectangleSurvivesIncrementalRotateAroundExternalCenter | ) |
Definition at line 1522 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), APPEND, BOOST_CHECK_EQUAL(), DEGREES_T, PCB_SHAPE::GetLibraryEnd(), PCB_SHAPE::GetLibraryStart(), FOOTPRINT::GetPosition(), RECTANGLE, FOOTPRINT::Rotate(), PCB_SHAPE::SetEnd(), FOOTPRINT::SetPosition(), PCB_SHAPE::SetStart(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | RectangleSurvivesScaleRotateRoundTrip | ) |
Definition at line 1450 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), APPEND, BOOST_CHECK_EQUAL(), DEGREES_T, EDA_SHAPE::GetEnd(), PCB_SHAPE::GetLibraryEnd(), PCB_SHAPE::GetLibraryShape(), PCB_SHAPE::GetLibraryStart(), EDA_SHAPE::GetShape(), EDA_SHAPE::GetStart(), RECTANGLE, PCB_SHAPE::SetEnd(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), PCB_SHAPE::SetStart(), FOOTPRINT::SetTransformScale(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | RectangleSwapsDimsAt90 | ) |
Definition at line 1482 of file test_footprint_transform_sync.cpp.
References std::abs(), FOOTPRINT::Add(), APPEND, BOOST_CHECK_EQUAL(), DEGREES_T, EDA_SHAPE::GetEnd(), EDA_SHAPE::GetShape(), EDA_SHAPE::GetStart(), RECTANGLE, PCB_SHAPE::SetEnd(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), PCB_SHAPE::SetStart(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | RotateAndMoveKeepChildrenCoincident | ) |
Definition at line 4247 of file test_footprint_transform_sync.cpp.
References buildCoincidentFootprint(), CHECK_ALL_COINCIDENT(), DEGREES_T, FOOTPRINT::GetOrientation(), FOOTPRINT::GetPosition(), pad, FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), and FOOTPRINT::SetTransformScale().
| BOOST_AUTO_TEST_CASE | ( | RotatedTableSurvivesNonUniformScale | ) |
Definition at line 4593 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), APPEND, BOOST_TEST_CONTEXT(), buildLibTable(), checkTableSane(), DEGREES_T, FOOTPRINT, FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), FOOTPRINT::SetTransformScale(), and table.
| BOOST_AUTO_TEST_CASE | ( | RotateUpdatesTransform | ) |
Definition at line 170 of file test_footprint_transform_sync.cpp.
References CHECK_TRANSFORM_MATCHES_LEGACY(), DEGREES_T, FOOTPRINT::Rotate(), and FOOTPRINT::SetPosition().
| BOOST_AUTO_TEST_CASE | ( | RoundTripPreservesChildGeometryScaledRotated | ) |
Definition at line 4202 of file test_footprint_transform_sync.cpp.
References BOOST_REQUIRE(), buildCoincidentFootprint(), DEGREES_T, KI_TEST::DumpBoardToFile(), PCB_POINT::GetPosition(), EDA_SHAPE::GetStart(), PCB_TEXT::GetTextPos(), FOOTPRINT::GraphicalItems(), pad, FOOTPRINT::Pads(), PCB_SHAPE_T, PCB_TEXT_T, FOOTPRINT::Points(), and KI_TEST::ReadBoardFromFileOrStream().
| BOOST_AUTO_TEST_CASE | ( | ScalarAttributesStableAcrossSaveLoadUnderScale | ) |
Definition at line 4348 of file test_footprint_transform_sync.cpp.
References ANGLE_0, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), buildCoincidentFootprint(), KI_TEST::DumpBoardToFile(), PCB_SHAPE::GetStroke(), PCB_TEXT::GetTextSize(), STROKE_PARAMS::GetWidth(), FOOTPRINT::GraphicalItems(), pad, PCB_SHAPE_T, PCB_TEXT_T, KI_TEST::ReadBoardFromFileOrStream(), PCB_TEXT::SetTextSize(), PCB_SHAPE::SetWidth(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | ScaledTextGlyphShapeFollowsScale | ) |
Definition at line 4427 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), SHAPE_POLY_SET::BBox(), ERROR_INSIDE, F_SilkS, FOOTPRINT, BOX2< Vec >::GetHeight(), pcbIUScale, BOARD_ITEM::SetLayer(), FOOTPRINT::SetPosition(), EDA_TEXT::SetText(), EDA_TEXT::SetTextPos(), PCB_TEXT::SetTextSize(), FOOTPRINT::SetTransformScale(), and PCB_TEXT::TransformTextToPolySet().
| BOOST_AUTO_TEST_CASE | ( | SetLayerUpdatesFlipped | ) |
Definition at line 179 of file test_footprint_transform_sync.cpp.
References B_Cu, F_Cu, FOOTPRINT::IsFlipped(), and FOOTPRINT::SetLayer().
| BOOST_AUTO_TEST_CASE | ( | SetOrientationUpdatesTransform | ) |
Definition at line 77 of file test_footprint_transform_sync.cpp.
References CHECK_TRANSFORM_MATCHES_LEGACY(), DEGREES_T, and FOOTPRINT::SetOrientation().
| BOOST_AUTO_TEST_CASE | ( | SetPositionUpdatesTransform | ) |
Definition at line 69 of file test_footprint_transform_sync.cpp.
References CHECK_TRANSFORM_MATCHES_LEGACY(), and FOOTPRINT::SetPosition().
| BOOST_AUTO_TEST_CASE | ( | SetTransformScaleInvalidatesZoneFill | ) |
Definition at line 980 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), APPEND, SHAPE_POLY_SET::Append(), ZONE::IsFilled(), ZONE::NeedRefill(), SHAPE_POLY_SET::NewOutline(), ZONE::Outline(), ZONE::SetIsFilled(), ZONE::SetNeedRefill(), FOOTPRINT::SetPosition(), and FOOTPRINT::SetTransformScale().
| BOOST_AUTO_TEST_CASE | ( | SetTransformScaleScalesZoneOutline | ) |
Definition at line 555 of file test_footprint_transform_sync.cpp.
References std::abs(), FOOTPRINT::Add(), anchor, APPEND, SHAPE_POLY_SET::Append(), BOOST_CHECK_MESSAGE(), SHAPE_POLY_SET::CVertex(), ZONE::GetBoardOutline(), FOOTPRINT::GetPosition(), SHAPE_POLY_SET::NewOutline(), ZONE::Outline(), FOOTPRINT::SetPosition(), FOOTPRINT::SetTransformScale(), SHAPE_POLY_SET::TotalVertices(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | TableInRotatedFootprintCellsAreVisuallyRotated | ) |
Definition at line 2756 of file test_footprint_transform_sync.cpp.
References std::abs(), BOARD::Add(), FOOTPRINT::Add(), APPEND, BOOST_CHECK_MESSAGE(), DEGREES_T, FOOTPRINT, BOX2< Vec >::GetHeight(), BOX2< Vec >::GetWidth(), BOX2< Vec >::Merge(), pcbIUScale, PCB_SHAPE::SetEnd(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), PCB_SHAPE::SetStart(), and table.
| BOOST_AUTO_TEST_CASE | ( | TableInRotatedFootprintStaysSane | ) |
Definition at line 4615 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), APPEND, BOOST_TEST_CONTEXT(), buildLibTable(), checkTableSane(), DEGREES_T, FOOTPRINT, FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), and table.
| BOOST_AUTO_TEST_CASE | ( | TableRotates90Cleanly | ) |
Definition at line 2803 of file test_footprint_transform_sync.cpp.
References std::abs(), BOARD::Add(), BOOST_CHECK_MESSAGE(), DEGREES_T, BOX2< Vec >::GetCenter(), BOX2< Vec >::GetHeight(), BOX2< Vec >::GetWidth(), BOX2< Vec >::Merge(), pcbIUScale, PCB_SHAPE::SetEnd(), PCB_SHAPE::SetStart(), table, VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | TableScalesWithFootprint | ) |
Definition at line 4718 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), APPEND, BOOST_CHECK_MESSAGE(), buildLibTable(), FOOTPRINT, BOX2< Vec >::GetHeight(), BOX2< Vec >::GetWidth(), FOOTPRINT::SetPosition(), FOOTPRINT::SetTransformScale(), and table.
| BOOST_AUTO_TEST_CASE | ( | TextBoxInFootprintKeepsRectangleShape | ) |
Definition at line 2858 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), APPEND, BOOST_CHECK_MESSAGE(), DEGREES_T, FOOTPRINT, EDA_SHAPE::GetEnd(), PCB_SHAPE::GetLibraryShape(), EDA_SHAPE::GetShape(), EDA_SHAPE::GetStart(), RECTANGLE, PCB_SHAPE::SetEnd(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), PCB_SHAPE::SetStart(), EDA_TEXT::SetText(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | TextBoxScalarAttributesStableAcrossSaveLoadUnderScale | ) |
Definition at line 4458 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), KI_TEST::DumpBoardToFile(), F_SilkS, FOOTPRINT, PCB_SHAPE::GetStroke(), PCB_TEXTBOX::GetTextSize(), PCB_TEXTBOX::GetTextThickness(), STROKE_PARAMS::GetWidth(), FOOTPRINT::GraphicalItems(), PCB_TEXTBOX_T, KI_TEST::ReadBoardFromFileOrStream(), RECTANGLE, PCB_TEXTBOX::SetBorderEnabled(), PCB_SHAPE::SetEnd(), PCB_SHAPE::SetLayer(), FOOTPRINT::SetPosition(), PCB_TEXTBOX::SetShape(), PCB_SHAPE::SetStart(), EDA_TEXT::SetText(), PCB_TEXTBOX::SetTextSize(), PCB_TEXTBOX::SetTextThickness(), FOOTPRINT::SetTransformScale(), PCB_SHAPE::SetWidth(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | UniformRescaleRestoresArc | ) |
Definition at line 2131 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), APPEND, ARC, BOOST_CHECK_EQUAL(), ELLIPSE_ARC, EDA_SHAPE::GetShape(), PCB_SHAPE::SetArcGeometry(), and FOOTPRINT::SetTransformScale().
| BOOST_AUTO_TEST_CASE | ( | UniformRescaleRestoresCircle | ) |
Definition at line 2148 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), APPEND, BOOST_CHECK_EQUAL(), CIRCLE, circle(), ELLIPSE, and FOOTPRINT::SetTransformScale().
| BOOST_AUTO_TEST_CASE | ( | ZoneBoundingBoxIsBoardFrameForFPChild | ) |
Definition at line 2341 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), APPEND, BOOST_CHECK_MESSAGE(), ZONE::GetBoundingBox(), BOX2< Vec >::GetCenter(), seedSquareLibOutline(), FOOTPRINT::SetPosition(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | ZoneEffectiveShapeForFPRuleAreaIsBoardFrame | ) |
Definition at line 2382 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), APPEND, BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), F_Cu, BOX2< Vec >::GetCenter(), ZONE::GetEffectiveShape(), seedSquareLibOutline(), ZONE::SetIsRuleArea(), FOOTPRINT::SetPosition(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | ZoneHitTestRespectsFootprintTransform | ) |
Definition at line 2246 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), APPEND, TRANSFORM_TRS::Apply(), DEGREES_T, F_Cu, FOOTPRINT::GetTransform(), ZONE::HitTestFilledArea(), ZONE::HitTestForCorner(), pcbIUScale, seedSquareLibOutline(), ZONE::SetIsRuleArea(), FOOTPRINT::SetOrientation(), and FOOTPRINT::SetPosition().
| BOOST_AUTO_TEST_CASE | ( | ZoneMoveTranslatesInBoardFrame | ) |
Definition at line 2270 of file test_footprint_transform_sync.cpp.
References std::abs(), actual, FOOTPRINT::Add(), APPEND, BOOST_CHECK_MESSAGE(), SHAPE_POLY_SET::CVertex(), DEGREES_T, expected, ZONE::GetBoardOutline(), ZONE::Move(), seedSquareLibOutline(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), and SHAPE_POLY_SET::TotalVertices().
| BOOST_AUTO_TEST_CASE | ( | ZoneOutlineFollowsFootprintTransform | ) |
Definition at line 2180 of file test_footprint_transform_sync.cpp.
References std::abs(), actual, FOOTPRINT::Add(), APPEND, TRANSFORM_TRS::Apply(), BOOST_CHECK_MESSAGE(), SHAPE_POLY_SET::CVertex(), DEGREES_T, expected, ZONE::GetBoardOutline(), ZONE::GetLibraryOutline(), FOOTPRINT::GetTransform(), seedSquareLibOutline(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), FOOTPRINT::SetTransformScale(), and SHAPE_POLY_SET::TotalVertices().
| BOOST_AUTO_TEST_CASE | ( | ZoneOutlineSurvivesFootprintFlip | ) |
Definition at line 2210 of file test_footprint_transform_sync.cpp.
References std::abs(), actual, BOARD::Add(), FOOTPRINT::Add(), APPEND, BOOST_CHECK_MESSAGE(), SHAPE_POLY_SET::CVertex(), expected, FOOTPRINT::Flip(), FOOTPRINT, ZONE::GetBoardOutline(), FOOTPRINT::GetPosition(), seedSquareLibOutline(), FOOTPRINT::SetPosition(), TOP_BOTTOM, SHAPE_POLY_SET::TotalVertices(), and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | ZoneRotateAboutBoardCenter | ) |
Definition at line 2305 of file test_footprint_transform_sync.cpp.
References std::abs(), actual, FOOTPRINT::Add(), APPEND, BOOST_CHECK_MESSAGE(), SHAPE_POLY_SET::CVertex(), DEGREES_T, expected, ZONE::GetBoardOutline(), ZONE::Rotate(), RotatePoint(), seedSquareLibOutline(), FOOTPRINT::SetPosition(), and SHAPE_POLY_SET::TotalVertices().
| BOOST_AUTO_TEST_CASE | ( | ZoneSmoothedPolyForFPRuleAreaIsBoardFrame | ) |
Definition at line 2360 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), APPEND, ARC_HIGH_DEF, SHAPE_POLY_SET::BBox(), BOOST_CHECK_MESSAGE(), ERROR_OUTSIDE, BOX2< Vec >::GetCenter(), seedSquareLibOutline(), ZONE::SetIsRuleArea(), FOOTPRINT::SetPosition(), ZONE::TransformSmoothedOutlineToPolygon(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_FIXTURE_TEST_CASE | ( | CirclePadRoundTripsAcrossSaveLoad | , |
| BOARD_FIXTURE | ) |
Definition at line 1825 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), PADSTACK::ALL_LAYERS, ANGLE_0, APPEND, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), CIRCLE, KI_TEST::DumpBoardToFile(), PAD::GetDrillSize(), FOOTPRINT::GetPosition(), PAD::GetSize(), KI_TEST::LoadBoard(), PAD, pad, FOOTPRINT::Pads(), PAD::PTHMask(), KI_TEST::ReadBoardFromFileOrStream(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetTransformScale(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_FIXTURE_TEST_CASE | ( | DimensionAndBarcodeInScaledFootprintSurviveSaveLoad | , |
| BOARD_FIXTURE | ) |
Definition at line 2989 of file test_footprint_transform_sync.cpp.
References std::abs(), FOOTPRINT::Add(), APPEND, BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), DEGREES_T, KI_TEST::DumpBoardToFile(), F_SilkS, EDA_SHAPE::GetEnd(), PCB_DIMENSION_BASE::GetEnd(), FOOTPRINT::GetPosition(), PCB_BARCODE::GetPosition(), EDA_SHAPE::GetStart(), PCB_DIMENSION_BASE::GetStart(), PCB_TEXT::GetTextPos(), FOOTPRINT::GraphicalItems(), KI_TEST::LoadBoard(), PCB_DIM_ALIGNED_T, KI_TEST::ReadBoardFromFileOrStream(), PCB_DIMENSION_BASE::SetEnd(), PCB_SHAPE::SetEnd(), PCB_SHAPE::SetLayer(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), PCB_BARCODE::SetPosition(), PCB_DIMENSION_BASE::SetStart(), PCB_SHAPE::SetStart(), EDA_TEXT::SetText(), FOOTPRINT::SetTransformScale(), text, VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_FIXTURE_TEST_CASE | ( | DRCFlagsScaledFootprintWithPads | , |
| BOARD_FIXTURE | ) |
Definition at line 707 of file test_footprint_transform_sync.cpp.
References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), DRCE_FIRST, DRCE_FOOTPRINT_SCALED_WITH_PADS, DRCE_LAST, KI_TEST::LoadBoard(), BOARD_DESIGN_SETTINGS::m_DRCEngine, BOARD_DESIGN_SETTINGS::m_DRCSeverities, MM, FOOTPRINT::Pads(), RPT_SEVERITY_IGNORE, RPT_SEVERITY_WARNING, DRC_ENGINE::RunTests(), FOOTPRINT::SetTransformScale(), and DRC_ENGINE::SetViolationHandler().
| BOOST_FIXTURE_TEST_CASE | ( | DRCSilentForUnscaledFootprintWithPads | , |
| BOARD_FIXTURE | ) |
Definition at line 755 of file test_footprint_transform_sync.cpp.
References BOOST_CHECK_EQUAL(), DRCE_FIRST, DRCE_FOOTPRINT_SCALED_WITH_PADS, DRCE_LAST, KI_TEST::LoadBoard(), BOARD_DESIGN_SETTINGS::m_DRCEngine, BOARD_DESIGN_SETTINGS::m_DRCSeverities, MM, RPT_SEVERITY_IGNORE, RPT_SEVERITY_WARNING, DRC_ENGINE::RunTests(), and DRC_ENGINE::SetViolationHandler().
| BOOST_FIXTURE_TEST_CASE | ( | LegacyEmbeddedTableInRotatedFootprintLoads | , |
| BOARD_FIXTURE | ) |
Definition at line 4694 of file test_footprint_transform_sync.cpp.
References BOOST_CHECK_EQUAL(), BOOST_TEST_CONTEXT(), checkTableSane(), PCB_TABLE::GetPosition(), KI_TEST::LoadBoard(), and PCB_TABLE_T.
| BOOST_FIXTURE_TEST_CASE | ( | NativeEllipseFlipSurvivesNonUniformScale | , |
| BOARD_FIXTURE | ) |
Definition at line 1546 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), ANGLE_0, ANGLE_180, APPEND, EDA_ANGLE::AsDegrees(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), DEGREES_T, ELLIPSE_ARC, F_SilkS, PCB_SHAPE::Flip(), PCB_SHAPE::GetLibraryEllipseCenter(), PCB_SHAPE::GetLibraryEllipseEndAngle(), PCB_SHAPE::GetLibraryEllipseMajorRadius(), PCB_SHAPE::GetLibraryEllipseMinorRadius(), PCB_SHAPE::GetLibraryEllipseRotation(), PCB_SHAPE::GetLibraryEllipseStartAngle(), FOOTPRINT::GetPosition(), LEFT_RIGHT, KI_TEST::LoadBoard(), PCB_SHAPE::SetEllipseCenter(), PCB_SHAPE::SetEllipseEndAngle(), PCB_SHAPE::SetEllipseMajorRadius(), PCB_SHAPE::SetEllipseMinorRadius(), PCB_SHAPE::SetEllipseRotation(), PCB_SHAPE::SetEllipseStartAngle(), PCB_SHAPE::SetLayer(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetTransformScale(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_FIXTURE_TEST_CASE | ( | NativeEllipseRoundTripsThroughRotatedFootprint | , |
| BOARD_FIXTURE | ) |
Definition at line 1218 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), ANGLE_0, APPEND, EDA_ANGLE::AsDegrees(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), DEGREES_T, KI_TEST::DumpBoardToFile(), ELLIPSE, F_SilkS, PCB_SHAPE::GetLibraryEllipseCenter(), PCB_SHAPE::GetLibraryEllipseMajorRadius(), PCB_SHAPE::GetLibraryEllipseMinorRadius(), PCB_SHAPE::GetLibraryEllipseRotation(), PCB_SHAPE::GetLibraryShape(), FOOTPRINT::GetPosition(), FOOTPRINT::GraphicalItems(), KI_TEST::LoadBoard(), PCB_SHAPE_T, KI_TEST::ReadBoardFromFileOrStream(), PCB_SHAPE::SetEllipseCenter(), PCB_SHAPE::SetEllipseMajorRadius(), PCB_SHAPE::SetEllipseMinorRadius(), PCB_SHAPE::SetEllipseRotation(), PCB_SHAPE::SetLayer(), FOOTPRINT::SetOrientation(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_FIXTURE_TEST_CASE | ( | PadLibPosMirrorAfterMutation | , |
| BOARD_FIXTURE | ) |
Definition at line 279 of file test_footprint_transform_sync.cpp.
References CHECK_PAD_LIBPOS_MIRROR(), DEGREES_T, LEFT_RIGHT, and KI_TEST::LoadBoard().
| BOOST_FIXTURE_TEST_CASE | ( | PadLibPosMirrorOnLoad | , |
| BOARD_FIXTURE | ) |
Definition at line 270 of file test_footprint_transform_sync.cpp.
References CHECK_PAD_LIBPOS_MIRROR(), and KI_TEST::LoadBoard().
| BOOST_FIXTURE_TEST_CASE | ( | PadPolyPrimitiveRoundTripsAcrossSaveLoad | , |
| BOARD_FIXTURE | ) |
Definition at line 1989 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), PADSTACK::ALL_LAYERS, ANGLE_0, APPEND, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), CIRCLE, CUSTOM, KI_TEST::DumpBoardToFile(), PAD::GetBoundingBox(), BOX2< Vec >::GetHeight(), FOOTPRINT::GetPosition(), BOX2< Vec >::GetWidth(), KI_TEST::LoadBoard(), PAD, pad, FOOTPRINT::Pads(), KI_TEST::ReadBoardFromFileOrStream(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetTransformScale(), and PAD::SMDMask().
| BOOST_FIXTURE_TEST_CASE | ( | PadPrimitiveRoundTripsAcrossSaveLoad | , |
| BOARD_FIXTURE | ) |
Definition at line 1883 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), PADSTACK::ALL_LAYERS, ANGLE_0, APPEND, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), CIRCLE, CUSTOM, KI_TEST::DumpBoardToFile(), ELLIPSE, VECTOR2< T >::EuclideanNorm(), PCB_SHAPE::GetLibraryShape(), FOOTPRINT::GetPosition(), PAD::GetPrimitives(), EDA_SHAPE::GetShape(), KI_TEST::LoadBoard(), PAD, pad, FOOTPRINT::Pads(), KI_TEST::ReadBoardFromFileOrStream(), PCB_SHAPE::SetEnd(), EDA_SHAPE::SetFilled(), FOOTPRINT::SetOrientation(), PCB_SHAPE::SetStart(), FOOTPRINT::SetTransformScale(), PCB_SHAPE::SetWidth(), and PAD::SMDMask().
| BOOST_FIXTURE_TEST_CASE | ( | PadTransformInvariantAfterMutation | , |
| BOARD_FIXTURE | ) |
Definition at line 252 of file test_footprint_transform_sync.cpp.
References CHECK_TRANSFORM_PAD_INVARIANT(), DEGREES_T, LEFT_RIGHT, and KI_TEST::LoadBoard().
| BOOST_FIXTURE_TEST_CASE | ( | PadTransformInvariantOnLoadedBoard | , |
| BOARD_FIXTURE | ) |
Definition at line 243 of file test_footprint_transform_sync.cpp.
References CHECK_TRANSFORM_PAD_INVARIANT(), and KI_TEST::LoadBoard().
| BOOST_FIXTURE_TEST_CASE | ( | PCBFieldInRotatedFootprintSurvivesSaveLoad | , |
| BOARD_FIXTURE | ) |
Definition at line 2952 of file test_footprint_transform_sync.cpp.
References std::abs(), EDA_ANGLE::AsDegrees(), BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), DEGREES_T, KI_TEST::DumpBoardToFile(), FOOTPRINT::GetPosition(), PCB_TEXT::GetTextAngle(), PCB_TEXT::GetTextPos(), KI_TEST::LoadBoard(), KI_TEST::ReadBoardFromFileOrStream(), FOOTPRINT::Reference(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), PCB_TEXT::SetTextAngle(), EDA_TEXT::SetTextPos(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_FIXTURE_TEST_CASE | ( | PCBTextInRotatedFootprintSurvivesSaveLoad | , |
| BOARD_FIXTURE | ) |
Definition at line 2889 of file test_footprint_transform_sync.cpp.
References std::abs(), FOOTPRINT::Add(), APPEND, EDA_ANGLE::AsDegrees(), BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), DEGREES_T, KI_TEST::DumpBoardToFile(), F_SilkS, FOOTPRINT::GetPosition(), PCB_TEXT::GetTextAngle(), PCB_TEXT::GetTextPos(), FOOTPRINT::GraphicalItems(), KI_TEST::LoadBoard(), path, KI_TEST::ReadBoardFromFileOrStream(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), text, VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_FIXTURE_TEST_CASE | ( | PromotedArcSerializesAsLibArc | , |
| BOARD_FIXTURE | ) |
Definition at line 1120 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), anchor, APPEND, ARC, BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), KI_TEST::DumpBoardToFile(), ELLIPSE_ARC, F_SilkS, PCB_SHAPE::GetLibraryShape(), FOOTPRINT::GetPosition(), EDA_SHAPE::GetShape(), FOOTPRINT::GraphicalItems(), KI_TEST::LoadBoard(), PCB_SHAPE_T, KI_TEST::ReadBoardFromFileOrStream(), PCB_SHAPE::SetArcGeometry(), PCB_SHAPE::SetLayer(), and FOOTPRINT::SetTransformScale().
| BOOST_FIXTURE_TEST_CASE | ( | PromotedCircleSerializesAsLibCircle | , |
| BOARD_FIXTURE | ) |
Definition at line 1169 of file test_footprint_transform_sync.cpp.
References FOOTPRINT::Add(), APPEND, BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), CIRCLE, circle(), KI_TEST::DumpBoardToFile(), ELLIPSE, F_SilkS, PCB_SHAPE::GetLibraryShape(), FOOTPRINT::GetPosition(), FOOTPRINT::GraphicalItems(), KI_TEST::LoadBoard(), PCB_SHAPE_T, KI_TEST::ReadBoardFromFileOrStream(), and FOOTPRINT::SetTransformScale().
| BOOST_FIXTURE_TEST_CASE | ( | RatsnestFollowsScaledPads | , |
| BOARD_FIXTURE | ) |
Definition at line 857 of file test_footprint_transform_sync.cpp.
References BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), BOOST_TEST_MESSAGE(), PAD::GetPosition(), KI_TEST::LoadBoard(), pad, FOOTPRINT::SetTransformScale(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_FIXTURE_TEST_CASE | ( | RescaleAroundPointComposesScale | , |
| BOARD_FIXTURE | ) |
Definition at line 832 of file test_footprint_transform_sync.cpp.
References std::abs(), BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), center, FOOTPRINT::GetPosition(), TRANSFORM_TRS::GetScaleX(), TRANSFORM_TRS::GetScaleY(), FOOTPRINT::GetTransform(), KI_TEST::LoadBoard(), FOOTPRINT::RescaleAroundPoint(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_FIXTURE_TEST_CASE | ( | RescaleAroundPointKeepsCenterFixed | , |
| BOARD_FIXTURE | ) |
Definition at line 785 of file test_footprint_transform_sync.cpp.
References BOOST_REQUIRE(), center, CHECK_PAD_LIBPOS_MIRROR(), CHECK_TRANSFORM_PAD_INVARIANT(), FOOTPRINT::GetPosition(), TRANSFORM_TRS::GetScaleX(), TRANSFORM_TRS::GetScaleY(), FOOTPRINT::GetTransform(), TRANSFORM_TRS::GetTranslate(), KI_TEST::LoadBoard(), FOOTPRINT::RescaleAroundPoint(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_FIXTURE_TEST_CASE | ( | RescaleAroundPointMovesAnchorByExpectedDelta | , |
| BOARD_FIXTURE | ) |
Definition at line 809 of file test_footprint_transform_sync.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), center, expected, FOOTPRINT::GetPosition(), KiROUND(), KI_TEST::LoadBoard(), FOOTPRINT::RescaleAroundPoint(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_FIXTURE_TEST_CASE | ( | ScalePersistsAcrossSaveLoad | , |
| BOARD_FIXTURE | ) |
Definition at line 480 of file test_footprint_transform_sync.cpp.
References std::abs(), BOOST_CHECK_EQUAL(), BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), KI_TEST::DumpBoardToFile(), FOOTPRINT::GetPosition(), TRANSFORM_TRS::GetScaleX(), TRANSFORM_TRS::GetScaleY(), FOOTPRINT::GetTransform(), KI_TEST::LoadBoard(), pad, FOOTPRINT::Pads(), KI_TEST::ReadBoardFromFileOrStream(), FOOTPRINT::SetTransformScale(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_FIXTURE_TEST_CASE | ( | ScaleSurvivesUndoRedo | , |
| BOARD_FIXTURE | ) |
Definition at line 521 of file test_footprint_transform_sync.cpp.
References std::abs(), BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), FOOTPRINT::Clone(), TRANSFORM_TRS::GetScaleX(), TRANSFORM_TRS::GetScaleY(), FOOTPRINT::GetTransform(), KI_TEST::LoadBoard(), pad, FOOTPRINT::Pads(), FOOTPRINT::SetTransformScale(), BOARD_ITEM::SwapItemData(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_FIXTURE_TEST_CASE | ( | ScaleXSetterPreservesOtherAxis | , |
| BOARD_FIXTURE | ) |
Definition at line 1086 of file test_footprint_transform_sync.cpp.
References BOOST_REQUIRE(), CHECK_TRANSFORM_PAD_INVARIANT(), FOOTPRINT::GetScaleX(), FOOTPRINT::GetScaleY(), KI_TEST::LoadBoard(), FOOTPRINT::SetScaleX(), and FOOTPRINT::SetTransformScale().
| BOOST_FIXTURE_TEST_CASE | ( | ScaleYSetterPreservesOtherAxis | , |
| BOARD_FIXTURE | ) |
Definition at line 1103 of file test_footprint_transform_sync.cpp.
References BOOST_REQUIRE(), CHECK_TRANSFORM_PAD_INVARIANT(), FOOTPRINT::GetScaleX(), FOOTPRINT::GetScaleY(), KI_TEST::LoadBoard(), FOOTPRINT::SetScaleY(), and FOOTPRINT::SetTransformScale().
| BOOST_FIXTURE_TEST_CASE | ( | SetTransformScaleDoublesPadOffsets | , |
| BOARD_FIXTURE | ) |
Definition at line 396 of file test_footprint_transform_sync.cpp.
References std::abs(), anchor, BOOST_CHECK_EQUAL(), BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), FOOTPRINT::GetPosition(), TRANSFORM_TRS::GetScaleX(), TRANSFORM_TRS::GetScaleY(), FOOTPRINT::GetTransform(), KI_TEST::LoadBoard(), pad, FOOTPRINT::Pads(), FOOTPRINT::SetTransformScale(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_FIXTURE_TEST_CASE | ( | SetTransformScaleInvalidatesBoundingBoxCache | , |
| BOARD_FIXTURE | ) |
Definition at line 918 of file test_footprint_transform_sync.cpp.
References anchor, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), FOOTPRINT::GetBoundingBox(), BOX2< Vec >::GetHeight(), FOOTPRINT::GetPosition(), BOX2< Vec >::GetWidth(), KI_TEST::LoadBoard(), FOOTPRINT::SetTransformScale(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_FIXTURE_TEST_CASE | ( | SetTransformScaleInvalidatesCourtyardCache | , |
| BOARD_FIXTURE | ) |
Definition at line 948 of file test_footprint_transform_sync.cpp.
References SHAPE_POLY_SET::Area(), BOOST_REQUIRE(), F_CrtYd, FOOTPRINT::GetCourtyard(), KI_TEST::LoadBoard(), and FOOTPRINT::SetTransformScale().
| BOOST_FIXTURE_TEST_CASE | ( | SetTransformScaleInvalidatesTextBBoxCache | , |
| BOARD_FIXTURE | ) |
Definition at line 650 of file test_footprint_transform_sync.cpp.
References BOOST_REQUIRE(), FOOTPRINT::GetFields(), BOX2< Vec >::GetHeight(), EDA_TEXT::GetTextBox(), BOX2< Vec >::GetWidth(), KI_TEST::LoadBoard(), and FOOTPRINT::SetTransformScale().
| BOOST_FIXTURE_TEST_CASE | ( | SetTransformScaleRebakeShapes | , |
| BOARD_FIXTURE | ) |
Definition at line 432 of file test_footprint_transform_sync.cpp.
References std::abs(), anchor, BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), FOOTPRINT::GetPosition(), EDA_SHAPE::GetShape(), EDA_SHAPE::GetStart(), FOOTPRINT::GraphicalItems(), KI_TEST::LoadBoard(), PCB_SHAPE_T, SEGMENT, FOOTPRINT::SetTransformScale(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_FIXTURE_TEST_CASE | ( | SetTransformScaleScalesPadAndDrillSize | , |
| BOARD_FIXTURE | ) |
Definition at line 597 of file test_footprint_transform_sync.cpp.
References PADSTACK::ALL_LAYERS, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), KI_TEST::LoadBoard(), pad, FOOTPRINT::Pads(), FOOTPRINT::SetTransformScale(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_FIXTURE_TEST_CASE | ( | SetTransformScaleScalesShapeLineWidth | , |
| BOARD_FIXTURE | ) |
Definition at line 679 of file test_footprint_transform_sync.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), PCB_SHAPE::GetStroke(), STROKE_PARAMS::GetWidth(), FOOTPRINT::GraphicalItems(), KI_TEST::LoadBoard(), PCB_SHAPE_T, and FOOTPRINT::SetTransformScale().
| BOOST_FIXTURE_TEST_CASE | ( | SetTransformScaleScalesTextSize | , |
| BOARD_FIXTURE | ) |
Definition at line 629 of file test_footprint_transform_sync.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), FOOTPRINT::GetFields(), PCB_TEXT::GetTextSize(), PCB_TEXT::GetTextThickness(), KI_TEST::LoadBoard(), FOOTPRINT::SetTransformScale(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_FIXTURE_TEST_CASE | ( | ShapeLibPosMirrorAfterMutation | , |
| BOARD_FIXTURE | ) |
Definition at line 378 of file test_footprint_transform_sync.cpp.
References CHECK_SHAPE_LIBPOS_MIRROR(), DEGREES_T, LEFT_RIGHT, and KI_TEST::LoadBoard().
| BOOST_FIXTURE_TEST_CASE | ( | ShapeLibPosMirrorOnLoad | , |
| BOARD_FIXTURE | ) |
Definition at line 369 of file test_footprint_transform_sync.cpp.
References CHECK_SHAPE_LIBPOS_MIRROR(), and KI_TEST::LoadBoard().
| BOOST_FIXTURE_TEST_CASE | ( | SizesAreStableAcrossSaveLoad | , |
| BOARD_FIXTURE | ) |
Definition at line 1321 of file test_footprint_transform_sync.cpp.
References PADSTACK::ALL_LAYERS, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), KI_TEST::DumpBoardToFile(), PAD::GetSize(), KI_TEST::LoadBoard(), pad, FOOTPRINT::Pads(), KI_TEST::ReadBoardFromFileOrStream(), FOOTPRINT::SetTransformScale(), VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_FIXTURE_TEST_CASE | ( | StandaloneRectangleNonCardinalRotationSurvivesSaveLoad | , |
| BOARD_FIXTURE | ) |
A standalone rectangle rotated by a non-cardinal angle should keep that orientation when saved and reloaded.
The rectangle converts to a polygon on rotation, which is the on-disk form that preserves the tilt.
Definition at line 3979 of file test_footprint_transform_sync.cpp.
References APPEND, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), SHAPE_LINE_CHAIN::CPoints(), DEGREES_T, KI_TEST::DumpBoardToFile(), F_SilkS, EDA_SHAPE::GetPolyShape(), EDA_SHAPE::GetShape(), KI_TEST::LoadBoard(), SHAPE_POLY_SET::Outline(), SHAPE_POLY_SET::OutlineCount(), POLY, KI_TEST::ReadBoardFromFileOrStream(), RECTANGLE, PCB_SHAPE::Rotate(), PCB_SHAPE::SetEnd(), PCB_SHAPE::SetLayer(), and PCB_SHAPE::SetStart().
| BOOST_FIXTURE_TEST_CASE | ( | TableInNonCardinalRotatedFootprintSurvivesSaveLoad | , |
| BOARD_FIXTURE | ) |
Definition at line 4637 of file test_footprint_transform_sync.cpp.
References std::abs(), FOOTPRINT::Add(), ANGLE_0, APPEND, BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), buildLibTable(), DEGREES_T, KI_TEST::DumpBoardToFile(), PCB_TABLE::GetBoundingBox(), BOX2< Vec >::GetHeight(), BOX2< Vec >::GetOrigin(), BOX2< Vec >::GetWidth(), FOOTPRINT::GraphicalItems(), KI_TEST::LoadBoard(), PCB_TABLE_T, KI_TEST::ReadBoardFromFileOrStream(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), table, VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_FIXTURE_TEST_CASE | ( | TableInRotatedFootprintSurvivesSaveLoad | , |
| BOARD_FIXTURE | ) |
Definition at line 2562 of file test_footprint_transform_sync.cpp.
References std::abs(), FOOTPRINT::Add(), APPEND, BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), BOOST_TEST_CONTEXT(), DEGREES_T, KI_TEST::DumpBoardToFile(), PCB_TABLE::GetCells(), EDA_SHAPE::GetEnd(), EDA_SHAPE::GetStart(), FOOTPRINT::GraphicalItems(), KI_TEST::LoadBoard(), pcbIUScale, KI_TEST::ReadBoardFromFileOrStream(), PCB_SHAPE::SetEnd(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), PCB_SHAPE::SetStart(), EDA_TEXT::SetText(), table, VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_FIXTURE_TEST_CASE | ( | TableRotatedInFootprintThenFootprintRotatedRoundTrips | , |
| BOARD_FIXTURE | ) |
Definition at line 2649 of file test_footprint_transform_sync.cpp.
References std::abs(), FOOTPRINT::Add(), ANGLE_0, APPEND, EDA_ANGLE::AsDegrees(), BOOST_CHECK_MESSAGE(), BOOST_REQUIRE(), BOOST_TEST_CONTEXT(), DEGREES_T, KI_TEST::DumpBoardToFile(), PCB_TABLE::GetCells(), EDA_SHAPE::GetEnd(), EDA_SHAPE::GetStart(), PCB_TEXTBOX::GetTextAngle(), FOOTPRINT::GraphicalItems(), KI_TEST::LoadBoard(), pcbIUScale, KI_TEST::ReadBoardFromFileOrStream(), PCB_SHAPE::SetEnd(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), PCB_SHAPE::SetStart(), EDA_TEXT::SetText(), table, VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_FIXTURE_TEST_CASE | ( | UndoRedoRestoresFootprintAndPadState | , |
| BOARD_FIXTURE | ) |
Definition at line 297 of file test_footprint_transform_sync.cpp.
References std::abs(), EDA_ANGLE::AsDegrees(), BOOST_CHECK_EQUAL(), BOOST_CHECK_MESSAGE(), CHECK_PAD_LIBPOS_MIRROR(), CHECK_TRANSFORM_PAD_INVARIANT(), FOOTPRINT::Clone(), DEGREES_T, FOOTPRINT::Flip(), FOOTPRINT::GetLayer(), FOOTPRINT::GetOrientation(), FOOTPRINT::GetPosition(), LEFT_RIGHT, KI_TEST::LoadBoard(), FOOTPRINT::Move(), pad, FOOTPRINT::Pads(), FOOTPRINT::SetOrientation(), BOARD_ITEM::SwapItemData(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
static |
Definition at line 4156 of file test_footprint_transform_sync.cpp.
References BOARD::Add(), FOOTPRINT::Add(), PADSTACK::ALL_LAYERS, F_Cu, F_SilkS, FOOTPRINT, PAD, SEGMENT, PAD::SetAttribute(), PCB_SHAPE::SetEnd(), BOARD_ITEM::SetLayer(), PCB_SHAPE::SetLayer(), PAD::SetLayerSet(), FOOTPRINT::SetOrientation(), FOOTPRINT::SetPosition(), PAD::SetPosition(), PCB_POINT::SetPosition(), PAD::SetSize(), PCB_SHAPE::SetStart(), EDA_TEXT::SetText(), EDA_TEXT::SetTextPos(), FOOTPRINT::SetTransformScale(), SMD, and PAD::SMDMask().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
Definition at line 4509 of file test_footprint_transform_sync.cpp.
References PCB_TABLECELL::SetColSpan(), PCB_SHAPE::SetEnd(), PCB_TABLECELL::SetRowSpan(), PCB_SHAPE::SetStart(), EDA_TEXT::SetText(), and table.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_FIXTURE_TEST_CASE().
|
static |
Definition at line 4194 of file test_footprint_transform_sync.cpp.
References BOOST_CHECK_MESSAGE(), PAD::GetPosition(), PCB_POINT::GetPosition(), EDA_SHAPE::GetStart(), and PCB_TEXT::GetTextPos().
Referenced by BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
|
static |
Definition at line 222 of file test_footprint_transform_sync.cpp.
References std::abs(), BOOST_CHECK_MESSAGE(), pad, FOOTPRINT::Pads(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), and BOOST_FIXTURE_TEST_CASE().
|
static |
Definition at line 342 of file test_footprint_transform_sync.cpp.
References std::abs(), BOOST_CHECK_MESSAGE(), CIRCLE, BOARD_ITEM::GetFPRelativePosition(), PCB_SHAPE::GetLibraryStart(), EDA_SHAPE::GetShape(), FOOTPRINT::GraphicalItems(), PCB_SHAPE_T, RECTANGLE, SEGMENT, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by BOOST_FIXTURE_TEST_CASE(), and BOOST_FIXTURE_TEST_CASE().
|
static |
Definition at line 51 of file test_footprint_transform_sync.cpp.
References BOOST_CHECK_EQUAL(), and CHECK_TRANSFORM_MATCHES_LEGACY().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and CHECK_TRANSFORM_MATCHES_LEGACY().
|
static |
Definition at line 206 of file test_footprint_transform_sync.cpp.
References std::abs(), actual, TRANSFORM_TRS::Apply(), BOOST_CHECK_MESSAGE(), expected, FOOTPRINT::GetTransform(), pad, and FOOTPRINT::Pads().
Referenced by BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), and BOOST_FIXTURE_TEST_CASE().
Definition at line 4541 of file test_footprint_transform_sync.cpp.
References std::abs(), BOOST_CHECK_MESSAGE(), center, PCB_TABLE::GetBoundingBox(), PCB_TABLE::GetCells(), BOX2< Vec >::GetCenter(), BOX2< Vec >::GetHeight(), BOX2< Vec >::GetWidth(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_FIXTURE_TEST_CASE().
|
static |
Definition at line 2168 of file test_footprint_transform_sync.cpp.
References SHAPE_POLY_SET::Append(), SHAPE_POLY_SET::NewOutline(), and ZONE::Outline().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().