2 #include "block/block.hpp" 3 #include "board/board.hpp" 5 #include "pool/pool.hpp" 8 #include "nlohmann/json.hpp" 13 CoreBoard(
const std::string &board_filename,
const std::string &block_filename,
const std::string &via_dir,
15 bool has_object_type(ObjectType ty)
override;
17 class Block *get_block(
bool work =
true)
override;
20 bool set_property(ObjectType type,
const UUID &uu, ObjectProperty::ID property,
22 bool get_property(ObjectType type,
const UUID &uu, ObjectProperty::ID property,
24 bool get_property_meta(ObjectType type,
const UUID &uu, ObjectProperty::ID property,
27 std::string get_display_name(ObjectType type,
const UUID &uu)
override;
29 std::vector<Track *> get_tracks(
bool work =
true);
30 std::vector<Line *> get_lines(
bool work =
true)
override;
32 void rebuild(
bool from_undo =
false)
override;
33 void commit()
override;
34 void revert()
override;
36 void reload_netlist();
38 const Board *get_canvas_data();
39 Board *get_board(
bool work =
true);
41 class Rules *get_rules()
override;
44 return &fab_output_settings;
51 void update_rules()
override;
53 std::pair<Coordi, Coordi> get_bbox()
override;
58 std::map<UUID, Polygon> *get_polygon_map(
bool work =
true)
override;
59 std::map<UUID, Junction> *get_junction_map(
bool work =
true)
override;
60 std::map<UUID, Text> *get_text_map(
bool work =
true)
override;
61 std::map<UUID, Line> *get_line_map(
bool work =
true)
override;
62 std::map<UUID, Dimension> *get_dimension_map()
override;
63 std::map<UUID, Arc> *get_arc_map(
bool work =
true)
override;
64 std::map<UUID, Keepout> *get_keepout_map()
override;
75 std::string m_board_filename;
76 std::string m_block_filename;
77 std::string m_via_dir;
84 std::map<UUID, std::vector<Plane::Fragment>> fragments;
86 void history_push()
override;
87 void history_load(
unsigned int i)
override;
a class to store JSON values
Definition: json.hpp:161
Definition: core_properties.hpp:7
json get_meta() override
Definition: core_board.cpp:601
Definition: fab_output_settings.hpp:10
Definition: board_rules.hpp:20
Definition: via_padstack_provider.hpp:13
void rebuild(bool from_undo=false) override
Expands the non-working document.
Definition: core_board.cpp:507
A block is one level of hierarchy in the netlist.
Definition: block.hpp:26
Where Tools and and documents meet.
Definition: core.hpp:232
Definition: layer_provider.hpp:7
This class encapsulates a UUID and allows it to be uses as a value type.
Definition: uuid.hpp:16
Stores objects (Unit, Entity, Symbol, Part, etc.) from the pool.
Definition: pool.hpp:19
Definition: core_board.hpp:11