KiCad PCB EDA Suite
|
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <pcbnew_utils/board_test_utils.h>
#include <board.h>
#include <board_design_settings.h>
#include <pad.h>
#include <pcb_track.h>
#include <footprint.h>
#include <zone.h>
#include <drc/drc_item.h>
#include <settings/settings_manager.h>
Go to the source code of this file.
Classes | |
struct | ZONE_FILL_TEST_FIXTURE |
Functions | |
BOOST_FIXTURE_TEST_CASE (BasicZoneFills, ZONE_FILL_TEST_FIXTURE) | |
BOOST_FIXTURE_TEST_CASE (NotchedZones, ZONE_FILL_TEST_FIXTURE) | |
BOOST_FIXTURE_TEST_CASE (RegressionZoneFillTests, ZONE_FILL_TEST_FIXTURE) | |
BOOST_FIXTURE_TEST_CASE (RegressionSliverZoneFillTests, ZONE_FILL_TEST_FIXTURE) | |
BOOST_FIXTURE_TEST_CASE (RegressionTeardropFill, ZONE_FILL_TEST_FIXTURE) | |
Variables | |
constexpr int | delta = KiROUND( 0.006 * pcbIUScale.IU_PER_MM ) |
BOOST_FIXTURE_TEST_CASE | ( | BasicZoneFills | , |
ZONE_FILL_TEST_FIXTURE | |||
) |
Definition at line 50 of file test_zone_filler.cpp.
References PADSTACK::ALL_LAYERS, delta, DRCE_CLEARANCE, KI_TEST::FillZones(), KI_TEST::LoadBoard(), BOARD_DESIGN_SETTINGS::m_DRCEngine, MILLIMETRES, pad, and PCB_ARC_T.
BOOST_FIXTURE_TEST_CASE | ( | NotchedZones | , |
ZONE_FILL_TEST_FIXTURE | |||
) |
Definition at line 141 of file test_zone_filler.cpp.
References SHAPE_POLY_SET::BooleanAdd(), F_Cu, KI_TEST::FillZones(), KI_TEST::LoadBoard(), SHAPE_POLY_SET::OutlineCount(), and SHAPE_POLY_SET::PM_STRICTLY_SIMPLE.
BOOST_FIXTURE_TEST_CASE | ( | RegressionSliverZoneFillTests | , |
ZONE_FILL_TEST_FIXTURE | |||
) |
Definition at line 229 of file test_zone_filler.cpp.
References DRCE_COPPER_SLIVER, KI_TEST::FillZones(), INCHES, KI_TEST::LoadBoard(), BOARD_DESIGN_SETTINGS::m_DRCEngine, MILLIMETRES, pcbIUScale, and RPT_SEVERITY_ERROR.
BOOST_FIXTURE_TEST_CASE | ( | RegressionTeardropFill | , |
ZONE_FILL_TEST_FIXTURE | |||
) |
Definition at line 277 of file test_zone_filler.cpp.
References KI_TEST::FillZones(), and KI_TEST::LoadBoard().
BOOST_FIXTURE_TEST_CASE | ( | RegressionZoneFillTests | , |
ZONE_FILL_TEST_FIXTURE | |||
) |
Definition at line 168 of file test_zone_filler.cpp.
References DRCE_CLEARANCE, KI_TEST::FillZones(), INCHES, KI_TEST::LoadBoard(), BOARD_DESIGN_SETTINGS::m_DRCEngine, MILLIMETRES, pcbIUScale, and RPT_SEVERITY_ERROR.
|
constexpr |
Definition at line 47 of file test_zone_filler.cpp.
Referenced by SYMBOL_EDITOR_MOVE_TOOL::AlignElements(), SCH_MOVE_TOOL::AlignToGrid(), EC_PERPLINE::Apply(), PNS::ApproximateSegmentAsRect(), PDF_PLOTTER::Arc(), PNS::TOPOLOGY::AssembleTuningPath(), BezierToPolyline(), BOOST_FIXTURE_TEST_CASE(), PNS::DP_GATEWAYS::buildDpContinuation(), PCB_IO_KICAD_SEXPR_PARSER::checkpoint(), CircleToEndSegmentDeltaRadius(), Collide(), SHAPE_POLY_SET::CollideVertex(), SCH_LINE_WIRE_BUS_TOOL::computeBreakPoint(), C_MICROSTRIP::conductor_losses(), MICROSTRIP::conductor_losses(), ConvertArcToPolyline(), GERBER_DRAW_ITEM::ConvertSegmentToPolygon(), AM_PRIMITIVE::ConvertShapeToPolygon(), D_CODE::ConvertShapeToPolygon(), PNS::coupledBypass(), BOARD_ADAPTER::createArcSegments(), EXCELLON_WRITER::createDrillFile(), ALIGN_DISTRIBUTE_TOOL::doDistributeCenters(), ALIGN_DISTRIBUTE_TOOL::doDistributeGaps(), SYMBOL_EDITOR_MOVE_TOOL::doMoveSelection(), SCH_MOVE_TOOL::doMoveSelection(), KIGFX::SCH_PAINTER::draw(), DRAWING_TOOL::DrawDimension(), D_CODE::DrawFlashedShape(), KIGFX::GERBVIEW_PAINTER::drawFlashedShape(), DrawHalfOpenCylinder(), KIGFX::PREVIEW::DRAW_CONTEXT::DrawLineDashed(), ARC_POINT_EDIT_BEHAVIOR::editArcEndpointKeepTangent(), fillArcGBRITEM(), PSLIKE_PLOTTER::FlashPadOval(), PCB_IO_KICAD_SEXPR::format(), RENDER_3D_OPENGL::generate3dGrid(), RENDER_3D_OPENGL::generateRing(), KIBIS_MODEL::generateSquareWave(), PCB_DIM_ALIGNED::GetAngle(), SCH_NO_CONNECT::GetBoundingBox(), GetDeltasForDistributeByGaps(), GetDeltasForDistributeByPoints(), KIGIT_COMMON::GetDifferentFiles(), BOARD::GetPad(), SCH_FIELD::GetRenderCache(), GERBER_DRAW_ITEM::GetTextD_CodePrms(), SCH_NO_CONNECT::HitTest(), PAD::HitTest(), SCH_DRAWING_TOOLS::ImportGraphics(), SYMBOL_EDITOR_DRAWING_TOOLS::ImportGraphics(), SCH_DRAWING_TOOLS::ImportSheet(), CYLINDER::Intersect(), CYLINDER::IntersectP(), BOX2< Vec >::Intersects(), BEZIER_POLY::isFlat(), PNS::IsSegment45Degree(), CADSTAR_SCH_ARCHIVE_LOADER::loadLibPart(), PCB_IO_EAGLE::loadPlain(), EE_SELECTION_TOOL::Main(), PL_EDIT_TOOL::Main(), PCB_SELECTION_TOOL::Main(), DSN::SPECCTRA_DB::makePADSTACK(), TRANSFORM::MapAngles(), MapAnglesV6(), SCH_LABEL_BASE::MirrorHorizontally(), SCH_DIRECTIVE_LABEL::MirrorHorizontally(), SCH_LABEL_BASE::MirrorSpinStyle(), SCH_DIRECTIVE_LABEL::MirrorSpinStyle(), SCH_LABEL_BASE::MirrorVertically(), SCH_DIRECTIVE_LABEL::MirrorVertically(), PNS::HOLE::Move(), mpInfoLayer::Move(), SCH_MOVE_TOOL::moveItem(), SCH_TEXT::NormalizeJustification(), DIALOG_SHIM::OnCharHook(), KIGFX::WX_VIEW_CONTROLS::onMotion(), KIGFX::WX_VIEW_CONTROLS::onScroll(), PCB_POINT_EDITOR::OnSelectionChange(), KIGFX::WX_VIEW_CONTROLS::onWheel(), PCB_IO_EAGLE::packageCircle(), PCB_IO_EAGLE::packagePolygon(), PCB_IO_EASYEDAPRO_PARSER::ParseBoard(), PCB_IO_EASYEDAPRO_PARSER::ParseContour(), GPCB_FPL_CACHE::parseFOOTPRINT(), EASYEDA_PARSER_BASE::ParseLineChains(), PCB_IO_KICAD_SEXPR_PARSER::parsePAD(), PCB_IO_KICAD_SEXPR_PARSER::parsePadstack(), PCB_IO_EASYEDAPRO_PARSER::ParsePoly(), PCB_IO_EASYEDA_PARSER::ParseToBoardItemContainer(), DRAWING_TOOL::PlaceImportedGraphics(), SCH_NO_CONNECT::Plot(), PLOTTER::polyArc(), SCH_SHEET_PIN::Rotate(), CURSOR::SetCoordX(), PNS::SOLID::SetPos(), PCB_GROUP::SetPosition(), FOOTPRINT::SetPosition(), SCH_SHEET::SetPositionIgnoringPins(), KIGFX::VIEW::SetScale(), PCB_TEXTBOX::SetTextAngle(), TestSegmentHit(), BEZIER_POLY::thirdControlPointDeviation(), KIGFX::COLOR4D::ToHSV(), DIALOG_PAD_PROPERTIES::transferDataToPad(), TransformCircleToPolygon(), TransformOvalToPolygon(), PAD::TransformShapeToPolygon(), SETTINGS_MANAGER::TriggerBackupIfNeeded(), DIM_LEADER_POINT_EDIT_BEHAVIOR::UpdateItem(), and BOARD_INSPECTION_TOOL::UpdateLocalRatsnest().