Horizon
Loading...
Searching...
No Matches
horizon::CoreSchematic Class Reference
Inheritance diagram for horizon::CoreSchematic:
horizon::Core horizon::IDocumentSchematic horizon::IDocumentBlockSymbol horizon::IInstanceMappingProvider horizon::Document horizon::IDocumentSchematicBlockSymbol horizon::IDocumentSchematicBlockSymbol horizon::IDocument horizon::IDocument horizon::IDocument

Classes

class  Filenames

Public Member Functions

 CoreSchematic (const Filenames &schematic_filenames, IPool &pool, IPool &pool_caching)
bool has_object_type (ObjectType ty) const override
Schematic * get_current_schematic () override
const Schematic * get_current_schematic () const
Schematic * get_top_schematic () override
const Schematic * get_top_schematic () const
Sheet * get_sheet () override
const Sheet * get_sheet () const
BlockSymbol & get_block_symbol () override
Junction * get_junction (const UUID &uu) override
Junction * insert_junction (const UUID &uu) override
void delete_junction (const UUID &uu) override
class Block * get_top_block () override
const Block * get_top_block () const
class Block * get_current_block () override
const Block * get_current_block () const
class LayerProvider & get_layer_provider () override
bool set_property (ObjectType type, const UUID &uu, ObjectProperty::ID property, const class PropertyValue &value) override
bool get_property (ObjectType type, const UUID &uu, ObjectProperty::ID property, class PropertyValue &value) override
bool get_property_meta (ObjectType type, const UUID &uu, ObjectProperty::ID property, class PropertyMeta &meta) override
std::string get_display_name (ObjectType type, const UUID &uu) override
std::string get_display_name (ObjectType type, const UUID &uu, const UUID &sheet) override
class Rules * get_rules () override
BOMExportSettings * get_bom_export_settings ()
PDFExportSettings * get_pdf_export_settings ()
void add_sheet ()
void delete_sheet (const UUID &uu)
const Sheet & get_canvas_data ()
const BlockSymbol & get_canvas_data_block_symbol ()
std::pair< Coordi, Coordi > get_bbox () override
const UUID & get_current_block_uuid () const
const UUID & get_top_block_uuid () const
void set_block_symbol_mode (const UUID &block)
bool get_block_symbol_mode () const override
const BlocksSchematic & get_blocks () const
BlocksSchematic & get_blocks () override
bool current_block_is_top () const override
void set_instance_path (const UUID &sheet, const UUID &block, const UUIDVec &path)
const UUIDVec & get_instance_path () const override
bool in_hierarchy () const override
const BlockInstanceMapping * get_block_instance_mapping () const override
BlockInstanceMapping * get_block_instance_mapping ()
unsigned int get_sheet_index (const class UUID &sheet) const override
unsigned int get_sheet_total () const override
unsigned int get_sheet_index_for_path (const class UUID &sheet, const UUIDVec &path) const
Schematic & get_schematic_for_instance_path (const UUIDVec &path) override
const std::string & get_filename () const override
ObjectType get_object_type () const override
const FileVersion & get_version () const override
void reload_pool () override
Public Member Functions inherited from horizon::Core
class GridSettings * get_grid_settings () override
class IPool & get_pool () override
class IPool & get_pool_caching () override
void rebuild (const std::string &comment)
 Expands the non-working document.
ToolResponse tool_begin (ToolID tool_id, const ToolArgs &args, class ImpInterface *imp, bool transient=false)
ToolResponse tool_update (ToolArgs &args)
std::optional< ToolArgs > get_pending_tool_args ()
std::pair< bool, bool > tool_can_begin (ToolID tool_id, const std::set< SelectableRef > &selection)
void save ()
void autosave ()
void undo ()
void redo ()
bool can_undo () const
bool can_redo () const
const std::string & get_undo_comment () const
const std::string & get_redo_comment () const
void set_history_max (unsigned int m)
void set_history_never_forgets (bool x)
bool tool_is_active ()
void set_property_begin ()
void set_property_commit ()
bool get_property_transaction () const
virtual json get_meta ()
virtual void update_rules ()
std::set< SelectableRef > & get_tool_selection ()
std::set< InToolActionID > get_tool_actions () const
bool get_needs_save () const
void set_needs_save ()
type_signal_tool_changed signal_tool_changed ()
type_signal_rebuilt signal_rebuilt ()
type_signal_rebuilt signal_save ()
 Gets emitted right before saving.
type_signal_rebuilt signal_modified ()
type_signal_rebuilt signal_can_undo_redo ()
type_signal_needs_save signal_needs_save ()
type_signal_load_tool_settings signal_load_tool_settings ()
type_signal_save_tool_settings signal_save_tool_settings ()
Public Member Functions inherited from horizon::Document
class Junction * insert_junction (const class UUID &uu) override
class Junction * get_junction (const UUID &uu) override
void delete_junction (const UUID &uu) override
class Line * insert_line (const UUID &uu) override
class Line * get_line (const UUID &uu) override
void delete_line (const UUID &uu) override
class Arc * insert_arc (const UUID &uu) override
class Arc * get_arc (const UUID &uu) override
void delete_arc (const UUID &uu) override
class Text * insert_text (const UUID &uu) override
class Text * get_text (const UUID &uu) override
void delete_text (const UUID &uu) override
class Polygon * insert_polygon (const UUID &uu) override
class Polygon * get_polygon (const UUID &uu) override
void delete_polygon (const UUID &uu) override
class Hole * insert_hole (const UUID &uu) override
class Hole * get_hole (const UUID &uu) override
void delete_hole (const UUID &uu) override
class Dimension * insert_dimension (const UUID &uu) override
class Dimension * get_dimension (const UUID &uu) override
void delete_dimension (const UUID &uu) override
class Keepout * insert_keepout (const UUID &uu) override
class Keepout * get_keepout (const UUID &uu) override
void delete_keepout (const UUID &uu) override
class Picture * insert_picture (const UUID &uu) override
class Picture * get_picture (const UUID &uu) override
void delete_picture (const UUID &uu) override
std::vector< Line * > get_lines () override
std::vector< Arc * > get_arcs () override
std::vector< Keepout * > get_keepouts () override
std::string get_display_name (ObjectType type, const UUID &uu) override
std::string get_display_name (ObjectType type, const UUID &uu, const UUID &sheet) override

Additional Inherited Members

Public Types inherited from horizon::Core
typedef sigc::signal< void, ToolID > type_signal_tool_changed
typedef sigc::signal< void > type_signal_rebuilt
typedef sigc::signal< void, bool > type_signal_needs_save
typedef sigc::signal< json, ToolID > type_signal_load_tool_settings
typedef sigc::signal< void, ToolID, json > type_signal_save_tool_settings
Protected Member Functions inherited from horizon::Core
 Core (class IPool &pool, IPool *m_pool_caching)
void set_needs_save (bool v)
void rebuild_finish (bool from_undo, const std::string &comment)
void layers_to_meta (class PropertyMeta &meta)
void get_placement (const Placement &placement, class PropertyValue &value, ObjectProperty::ID property)
void set_placement (Placement &placement, const class PropertyValue &value, ObjectProperty::ID property)
json get_meta_from_file (const std::string &filename)
Protected Member Functions inherited from horizon::Document
virtual std::map< UUID, Junction > * get_junction_map ()
virtual std::map< UUID, Polygon > * get_polygon_map ()
virtual std::map< UUID, Hole > * get_hole_map ()
virtual std::map< UUID, Dimension > * get_dimension_map ()
virtual std::map< UUID, Keepout > * get_keepout_map ()
Protected Attributes inherited from horizon::Core
class IPool & m_pool
class IPool & m_pool_caching
type_signal_tool_changed s_signal_tool_changed
type_signal_rebuilt s_signal_rebuilt
type_signal_rebuilt s_signal_save
type_signal_rebuilt s_signal_modified
type_signal_rebuilt s_signal_can_undo_redo
type_signal_needs_save s_signal_needs_save
type_signal_load_tool_settings s_signal_load_tool_settings
type_signal_save_tool_settings s_signal_save_tool_settings
bool needs_save = false
HistoryManager history_manager
bool property_transaction = false
Static Protected Attributes inherited from horizon::Core
static const std::string autosave_suffix = ".autosave"

Member Function Documentation

◆ current_block_is_top()

bool horizon::CoreSchematic::current_block_is_top ( ) const
overridevirtual

◆ delete_junction()

void horizon::CoreSchematic::delete_junction ( const UUID & uu)
overridevirtual

Implements horizon::IDocument.

◆ get_bbox()

std::pair< Coordi, Coordi > horizon::CoreSchematic::get_bbox ( )
overridevirtual

Implements horizon::Core.

◆ get_block_instance_mapping()

const BlockInstanceMapping * horizon::CoreSchematic::get_block_instance_mapping ( ) const
overridevirtual

◆ get_block_symbol()

BlockSymbol & horizon::CoreSchematic::get_block_symbol ( )
overridevirtual

◆ get_block_symbol_mode()

bool horizon::CoreSchematic::get_block_symbol_mode ( ) const
overridevirtual

◆ get_blocks()

BlocksSchematic & horizon::CoreSchematic::get_blocks ( )
overridevirtual

◆ get_current_block()

Block * horizon::CoreSchematic::get_current_block ( )
overridevirtual

◆ get_current_schematic()

Schematic * horizon::CoreSchematic::get_current_schematic ( )
overridevirtual

◆ get_display_name() [1/2]

std::string horizon::CoreSchematic::get_display_name ( ObjectType type,
const UUID & uu )
overridevirtual

Implements horizon::IDocument.

◆ get_display_name() [2/2]

std::string horizon::CoreSchematic::get_display_name ( ObjectType type,
const UUID & uu,
const UUID & sheet )
overridevirtual

Implements horizon::IDocument.

◆ get_filename()

const std::string & horizon::CoreSchematic::get_filename ( ) const
overridevirtual

Implements horizon::Core.

◆ get_instance_path()

const UUIDVec & horizon::CoreSchematic::get_instance_path ( ) const
overridevirtual

◆ get_junction()

Junction * horizon::CoreSchematic::get_junction ( const UUID & uu)
overridevirtual

Implements horizon::IDocument.

◆ get_layer_provider()

LayerProvider & horizon::CoreSchematic::get_layer_provider ( )
overridevirtual

Implements horizon::IDocument.

◆ get_object_type()

ObjectType horizon::CoreSchematic::get_object_type ( ) const
inlineoverridevirtual

Implements horizon::Core.

◆ get_property()

bool horizon::CoreSchematic::get_property ( ObjectType type,
const UUID & uu,
ObjectProperty::ID property,
class PropertyValue & value )
overridevirtual

Reimplemented from horizon::Core.

◆ get_property_meta()

bool horizon::CoreSchematic::get_property_meta ( ObjectType type,
const UUID & uu,
ObjectProperty::ID property,
class PropertyMeta & meta )
overridevirtual

Reimplemented from horizon::Core.

◆ get_rules()

Rules * horizon::CoreSchematic::get_rules ( )
overridevirtual

Reimplemented from horizon::Core.

◆ get_schematic_for_instance_path()

Schematic & horizon::CoreSchematic::get_schematic_for_instance_path ( const UUIDVec & path)
overridevirtual

◆ get_sheet()

Sheet * horizon::CoreSchematic::get_sheet ( )
overridevirtual

◆ get_sheet_index()

unsigned int horizon::CoreSchematic::get_sheet_index ( const class UUID & sheet) const
overridevirtual

◆ get_sheet_total()

unsigned int horizon::CoreSchematic::get_sheet_total ( ) const
overridevirtual

◆ get_top_block()

Block * horizon::CoreSchematic::get_top_block ( )
overridevirtual

Reimplemented from horizon::Core.

◆ get_top_schematic()

Schematic * horizon::CoreSchematic::get_top_schematic ( )
overridevirtual

◆ get_version()

const FileVersion & horizon::CoreSchematic::get_version ( ) const
inlineoverridevirtual

Implements horizon::IDocument.

◆ has_object_type()

bool horizon::CoreSchematic::has_object_type ( ObjectType ty) const
overridevirtual

Implements horizon::IDocument.

◆ in_hierarchy()

bool horizon::CoreSchematic::in_hierarchy ( ) const
overridevirtual

◆ reload_pool()

void horizon::CoreSchematic::reload_pool ( )
overridevirtual

Reimplemented from horizon::Core.

◆ set_property()

bool horizon::CoreSchematic::set_property ( ObjectType type,
const UUID & uu,
ObjectProperty::ID property,
const class PropertyValue & value )
overridevirtual

Reimplemented from horizon::Core.


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