|
KiCad PCB EDA Suite
|
#include "operating_point.h"#include <advanced_config.h>#include <connection_graph.h>#include <connectivity/conn_facade.h>#include <sch_line.h>#include <schematic.h>#include <map>Go to the source code of this file.
Functions | |
| void | UpdateOperatingPointVoltages (SCHEMATIC &aSchematic, const std::function< void(SCH_LINE *)> &aOnChanged) |
| Assign loaded operating-point voltages to the longest wire in each connected net portion. | |
| void UpdateOperatingPointVoltages | ( | SCHEMATIC & | aSchematic, |
| const std::function< void(SCH_LINE *)> & | aOnChanged = {} ) |
Assign loaded operating-point voltages to the longest wire in each connected net portion.
The caller clears stale annotations before calling; aOnChanged invalidates assigned wires.
Definition at line 31 of file operating_point.cpp.
References SCHEMATIC::ConnectionGraph(), SCHEMATIC::Connectivity(), ADVANCED_CFG::GetCfg(), SCHEMATIC::GetCurrentVariant(), SCH_LINE::GetLength(), CONNECTION_GRAPH::GetNetMap(), SCH_CONNECTIVITY::FACADE::GetNetMap(), SCHEMATIC::GetOperatingPoint(), group, SCHEMATIC::Hierarchy(), SCH_CONNECTIVITY::NET_VIEW::Instance(), SCH_CONNECTIVITY::NET_VIEW::IsNet(), SCH_LINE::IsWire(), SCH_CONNECTIVITY::NET_VIEW::Items(), SCHEMATIC_SETTINGS::m_OPO_VPrecision, SCHEMATIC_SETTINGS::m_OPO_VRange, path, SCH_LINE_T, SCH_LINE::SetOperatingPoint(), and SCHEMATIC::Settings().
Referenced by BOOST_AUTO_TEST_CASE(), and SCH_EDIT_FRAME::RefreshOperatingPointDisplay().