Horizon
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
horizon::Symbol Class Reference
Inheritance diagram for horizon::Symbol:
horizon::ObjectProvider horizon::LayerProvider

Public Types

enum class  PinDisplayMode { PRIMARY , ALT , BOTH }
 fills in information from the referenced unit
 

Public Member Functions

 Symbol (const UUID &uu, const json &j, class IPool &pool)
 
 Symbol (const UUID &uu)
 
std::pair< Coordi, Coordiget_bbox (bool all=false) const
 
virtual Junctionget_junction (const UUID &uu) override
 
json serialize () const
 
void expand (PinDisplayMode mode=PinDisplayMode::PRIMARY)
 
 Symbol (const Symbol &sym)
 
void operator= (Symbol const &sym)
 
void apply_expand (const Symbol &ref, unsigned int ex)
 
void apply_placement (const Placement &p)
 
unsigned int get_required_version () const
 
void update_junction_connections ()
 
- Public Member Functions inherited from horizon::ObjectProvider
virtual class Polygonget_polygon (const UUID &uu)
 
- Public Member Functions inherited from horizon::LayerProvider
virtual const std::map< int, Layer > & get_layers () const
 
std::string get_layer_name (const class LayerRange &layer) const
 
std::set< int > get_layers_for_range (const class LayerRange &layer) const
 

Static Public Member Functions

static Symbol new_from_file (const std::string &filename, IPool &pool)
 
static unsigned int get_app_version ()
 

Public Attributes

UUID uuid
 
std::shared_ptr< const Unitunit
 
std::string name
 
std::map< UUID, SymbolPinpins
 
std::map< UUID, Junctionjunctions
 
std::map< UUID, Linelines
 
std::map< UUID, Arcarcs
 
std::map< UUID, Texttexts
 
std::map< UUID, Polygonpolygons
 
bool can_expand = false
 
std::map< std::tuple< int, bool, UUID >, Placementtext_placements
 
SymbolRules rules
 
FileVersion version
 

Member Function Documentation

◆ get_junction()

Junction * horizon::Symbol::get_junction ( const UUID uu)
overridevirtual

Reimplemented from horizon::ObjectProvider.


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