71 items.insert(
make_wire( { 0, 0 }, { 0, 100 } ) );
86 items.insert(
make_wire( { 0, 0 }, { 100, 0 } ) );
87 items.insert(
make_wire( { 0, 0 }, { 0, 100 } ) );
101 items.insert(
make_wire( { 0, 0 }, { 100, 0 } ) );
102 items.insert(
make_wire( { 0, 0 }, { -100, 0 } ) );
103 items.insert(
make_wire( { 0, 0 }, { 0, 100 } ) );
124 items.insert(
make_wire( { 0, 0 }, { 100, 0 } ) );
125 items.insert(
make_wire( { 0, 0 }, { -100, 0 } ) );
126 items.insert(
make_wire( { 0, 0 }, { 0, 100 } ) );
127 items.insert(
make_wire( { 0, 0 }, { 0, -100 } ) );
146 items.insert(
make_wire( { -100, 0 }, { 100, 0 } ) );
147 items.insert(
make_wire( { 0, -100 }, { 0, 100 } ) );
171 items.insert( busEntry );
194 items.insert( busEntry );
351 items.insert( sheet );
385 items.insert( sheet );
Implement 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
True if there is a bus entry at the point and it connects to more than one wire.
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 (either end)
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_CHECK(res.column_datatype(0)==SQL_NUMERIC||res.column_datatype(0)==SQL_DECIMAL)
BOOST_REQUIRE_EQUAL(rows.size(), 1)
BOOST_REQUIRE(res.columns()==1)
BOOST_AUTO_TEST_SUITE_END()
static constexpr int BE_SIZE
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 SCH_LINE * make_bus(const VECTOR2I &aStart, const VECTOR2I &aEnd)
VECTOR2< int32_t > VECTOR2I