KiCad PCB EDA Suite
Loading...
Searching...
No Matches
JUNCTION_HELPERS Namespace Reference

Classes

struct  POINT_INFO
 A selection of information about a point in the schematic that might be eligible for turning into a junction. More...
 

Functions

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, if any.
 
std::vector< SCH_JUNCTION * > PreviewJunctions (const class SCH_SCREEN *aScreen, const std::vector< class SCH_ITEM * > &aItems)
 Determine the points where explicit junctions would be required if the given temporary items were committed to the schematic.
 

Function Documentation

◆ AnalyzePoint()

◆ PreviewJunctions()

std::vector< SCH_JUNCTION * > JUNCTION_HELPERS::PreviewJunctions ( const class SCH_SCREEN * aScreen,
const std::vector< class SCH_ITEM * > & aItems )

Determine the points where explicit junctions would be required if the given temporary items were committed to the schematic.

Parameters
aScreenThe schematic screen containing the existing items.
aItemsTemporary items not yet added to the screen.
Returns
Locations of needed junctions represented as new SCH_JUNCTION items.

Referenced by SCH_LINE_WIRE_BUS_TOOL::doDrawSegments(), and SCH_MOVE_TOOL::doMoveSelection().