Horizon
|
A Schematic is the visual representation of a Block. More...
#include <schematic.hpp>
Classes | |
class | Annotation |
Public Member Functions | |
Schematic (const UUID &uu, Block &block) | |
void | expand (bool careful=false) |
This is where the magic happens. More... | |
Schematic (const Schematic &sch) | |
void | operator= (const Schematic &sch)=delete |
void | update_refs () |
objects owned by the Sheets may hold pointers to other objects of the same sheet or the Block associated with the Schematic. More... | |
void | disconnect_symbol (Sheet *sheet, SchematicSymbol *sym) |
Removes all connections from sym and connects the dangling net lines to junctions. | |
void | autoconnect_symbol (Sheet *sheet, SchematicSymbol *sym) |
Connects unconnected pins of sym to Nets specified by junctions coincident with pins. | |
void | smash_symbol (Sheet *sheet, SchematicSymbol *sym) |
Turns sym's texts to regular text objects. | |
void | unsmash_symbol (Sheet *sheet, SchematicSymbol *sym) |
Undoes what smash_symbol did. | |
bool | delete_net_line (Sheet *sheet, LineNet *line) |
bool | place_bipole_on_line (Sheet *sheet, SchematicSymbol *sym) |
void | annotate () |
json | serialize () const |
Static Public Member Functions | |
static Schematic | new_from_file (const std::string &filename, Block &block, Pool &pool) |
Public Attributes | |
UUID | uuid |
Block * | block |
std::string | name |
std::map< UUID, Sheet > | sheets |
SchematicRules | rules |
std::map< std::string, std::string > | title_block_values |
bool | group_tag_visible = false |
Annotation | annotation |
PDFExportSettings | pdf_export_settings |
A Schematic is the visual representation of a Block.
Contrary to other EDA systems, the Schematic isn't the source of truth to horizon, the Block is. During editing, Block and Schematic are edited in sync. After Editing is done, Schematic::expand() updates the Schematic according to the Block, filling in reference designators and assigning nets to LineNets.
A Schematic is made up of one or many Sheets.
void horizon::Schematic::expand | ( | bool | careful = false | ) |
This is where the magic happens.
carful | when true, superfluous things will get cleaned up. Don't do this when you may hold pointers to these. |
void horizon::Schematic::update_refs | ( | ) |