75 items.insert(
make_wire( { 0, 0 }, { 0, 100 } ) );
90 items.insert(
make_wire( { 0, 0 }, { 100, 0 } ) );
91 items.insert(
make_wire( { 0, 0 }, { 0, 100 } ) );
105 items.insert(
make_wire( { 0, 0 }, { 100, 0 } ) );
106 items.insert(
make_wire( { 0, 0 }, { -100, 0 } ) );
107 items.insert(
make_wire( { 0, 0 }, { 0, 100 } ) );
133 items.insert( busEntry );
156 items.insert( busEntry );
313 items.insert( sheet );
347 items.insert( sheet );
356BOOST_AUTO_TEST_SUITE_END()
Implements an R-tree for fast spatial and type indexing of schematic items.
VECTOR2I GetPosition() const override
Class for a wire to bus entry.
bool IsConnected(const VECTOR2I &aPoint) const
Test the item to see if it is connected to aPoint.
Segment description base class to describe items which have 2 end points (track, wire,...
void SetEndPoint(const VECTOR2I &aPosition)
Define a sheet pin (label) used in sheets to create hierarchical schematics.
Sheet symbol placed in a schematic, and is the entry point for a sub schematic.
void AddPin(SCH_SHEET_PIN *aSheetPin)
Add aSheetPin to the sheet.
POINT_INFO AnalyzePoint(const EE_RTREE &aItem, const VECTOR2I &aPosition, bool aBreakCrossings)
Check a tree of items for a confluence at a given point and work out what kind of junction it is,...
A selection of information about a point in the schematic that might be eligible for turning into a j...
bool hasBusEntryToMultipleWires
bool isJunction
< True if the point has 3+ wires and/or 3+ buses meeting there
bool hasBusEntry
True if there is a bus entry at the point and it connects to more than one wire.
BOOST_CHECK(box.ClosestPointTo(VECTOR2D(0, 0))==VECTOR2D(1, 2))
Test suite for KiCad math code.
static SCH_LINE * make_wire(const VECTOR2I &aStart, const VECTOR2I &aEnd)
BOOST_AUTO_TEST_CASE(Empty)
Check that we can get the basic properties out as expected.
static constexpr int BE_SIZE
static SCH_LINE * make_bus(const VECTOR2I &aStart, const VECTOR2I &aEnd)