Go to the source code of this file.
◆ getDrilledHoleShape()
Definition at line 79 of file drc_test_provider_hole_to_hole.cpp.
80{
82 {
84 return std::make_shared<SHAPE_CIRCLE>(
via->GetCenter(),
via->GetDrillValue() / 2 );
85 }
87 {
89 return std::make_shared<SHAPE_CIRCLE>(
pad->GetPosition(),
pad->GetDrillSize().x / 2 );
90 }
91
92 return std::make_shared<SHAPE_CIRCLE>(
VECTOR2I( 0, 0 ), 0 );
93}
KICAD_T Type() const
Returns the type of object.
@ PCB_VIA_T
class PCB_VIA, a via (like a track segment on a copper layer)
@ PCB_PAD_T
class PAD, a pad in a footprint
References pad, PCB_PAD_T, PCB_VIA_T, EDA_ITEM::Type(), and via.
Referenced by DRC_TEST_PROVIDER_HOLE_TO_HOLE::Run(), and DRC_TEST_PROVIDER_HOLE_TO_HOLE::testHoleAgainstHole().