103 SCH_LABEL* label = FindLabel( wxT(
"local_label01" ) );
118 BOOST_CHECK( labelSubgraph == wireSubgraph );
133 SCH_LABEL* label = FindLabel( wxT(
"local_label02" ) );
150 BOOST_CHECK_MESSAGE( labelSubgraph == wireSubgraph,
151 "Label sharing a point with a netclass directive must still connect to "
152 "the wire under it (issue #19951)" );
153 BOOST_CHECK_MESSAGE( directiveSubgraph == wireSubgraph,
154 "Netclass directive sharing a point with a label must still connect to "
155 "the wire under it (issue #19951)" );
167 std::shared_ptr<NET_SETTINGS>& netSettings =
168 m_schematic->Project().GetProjectFile().m_NetSettings;
172 std::shared_ptr<NETCLASS> netclass = netSettings->GetEffectiveNetClass( wireNet );
Calculate the connectivity of a schematic and generates netlists.
CONNECTION_SUBGRAPH * GetSubgraphForItem(SCH_ITEM *aItem) const
A subgraph is a set of items that are electrically connected on a single sheet.
const SCH_SHEET_PATH & GetSheet() const
virtual const wxString & GetText() const
Return the string associated with the text object.
wxString Name(bool aIgnoreSheet=false) const
Base class for any item which can be embedded within the SCHEMATIC container class,...
SCH_CONNECTION * Connection(const SCH_SHEET_PATH *aSheet=nullptr) const
Retrieve the connection associated with this object in the given sheet.
Segment description base class to describe items which have 2 end points (track, wire,...
bool HitTest(const VECTOR2I &aPosition, int aAccuracy=0) const override
Test if aPosition is inside or on the boundary of this item.
bool IsWire() const
Return true if the line is a wire.
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
VECTOR2I GetPosition() const override
void LoadSchematic(SETTINGS_MANAGER &aSettingsManager, const wxString &aRelPath, std::unique_ptr< SCHEMATIC > &aSchematic)
Definition of the SCH_SHEET_PATH and SCH_SHEET_LIST classes for Eeschema.
Test for issue #19951: netclass directive not applied when it shares a connection point with a local ...
SCH_DIRECTIVE_LABEL * FindDirectiveAt(const VECTOR2I &aPos) const
SCH_LINE * FindWireUnder(const VECTOR2I &aPos) const
std::unique_ptr< SCHEMATIC > m_schematic
SETTINGS_MANAGER m_settingsManager
SCH_LABEL * FindLabel(const wxString &aText) const
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_REQUIRE(intersection.has_value()==c.ExpectedIntersection.has_value())
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(DirectiveOnSeparatePointDrivesWire)
BOOST_CHECK_EQUAL(result, "25.4")
VECTOR2< int32_t > VECTOR2I