Horizon
Public Member Functions | Public Attributes | List of all members
horizon::Junction Class Reference

A Junction is a point in 2D-Space. More...

#include <junction.hpp>

Inheritance diagram for horizon::Junction:
horizon::UUIDProvider

Public Member Functions

 Junction (const UUID &uu, const json &j)
 
 Junction (const UUID &uu)
 
virtual UUID get_uuid () const
 
json serialize () const
 

Public Attributes

UUID uuid
 
Coord< int64_t > position
 
uuid_ptr< Netnet = nullptr
 
uuid_ptr< Busbus = nullptr
 
UUID net_segment = UUID()
 
bool temp = false
 
bool warning = false
 
int layer = 10000
 
bool needs_via = false
 
bool has_via = false
 
unsigned int connection_count = 0
 

Detailed Description

A Junction is a point in 2D-Space.

A Junction is referenced by Line, Arc, LineNet, etc. for storing coordinates. This allows for actually storing Line connections instead of relying on coincident coordinates. When used on a Board or a Sheet, a Junction may get assigned a Net or a Bus and a net segment.


The documentation for this class was generated from the following files: