Horizon
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
horizon::ToolPlaceJunction Class Reference
Inheritance diagram for horizon::ToolPlaceJunction:
horizon::ToolBase horizon::ToolPlaceBusLabel horizon::ToolPlaceBusRipper horizon::ToolPlaceNetLabel horizon::ToolPlacePowerSymbol horizon::ToolPlaceVia

Public Member Functions

 ToolPlaceJunction (IDocument *c, ToolID tid)
 
ToolResponse begin (const ToolArgs &args) override
 Gets called right after the constructor has finished. More...
 
ToolResponse update (const ToolArgs &args) override
 Gets called whenever the user generated some sort of input.
 
bool can_begin () override
 
std::set< InToolActionID > get_actions () const override
 
 ToolPlaceJunction (IDocument *c, ToolID tid)
 
ToolResponse begin (const ToolArgs &args) override
 Gets called right after the constructor has finished. More...
 
ToolResponse update (const ToolArgs &args) override
 Gets called whenever the user generated some sort of input.
 
bool can_begin () override
 
std::set< InToolActionID > get_actions () const override
 
- Public Member Functions inherited from horizon::ToolBase
 ToolBase (class IDocument *c, ToolID tid)
 
void set_imp_interface (class ImpInterface *i)
 
void set_transient ()
 
virtual ToolID get_tool_id_for_settings () const
 
virtual const ToolSettingsget_settings_const () const
 
ToolSettingsProxy get_settings_proxy ()
 
virtual void apply_settings ()
 
virtual bool is_specific ()
 
 ToolBase (class IDocument *c, ToolID tid)
 
void set_imp_interface (class ImpInterface *i)
 
void set_transient ()
 
virtual ToolID get_tool_id_for_settings () const
 
virtual const ToolSettingsget_settings_const () const
 
ToolSettingsProxy get_settings_proxy ()
 
virtual void apply_settings ()
 
virtual bool is_specific ()
 

Protected Member Functions

void create_junction (const Coordi &c)
 
virtual void create_attached ()
 
virtual void delete_attached ()
 
virtual bool update_attached (const ToolArgs &args)
 
virtual bool check_line (class LineNet *li)
 
virtual bool begin_attached ()
 
void create_junction (const Coordi &c)
 
virtual void create_attached ()
 
virtual void delete_attached ()
 
virtual bool update_attached (const ToolArgs &args)
 
virtual bool check_line (class LineNet *li)
 
virtual bool begin_attached ()
 
- Protected Member Functions inherited from horizon::ToolBase
virtual ToolSettingsget_settings ()
 
virtual ToolSettingsget_settings ()
 

Protected Attributes

class Junctiontemp = 0
 
std::forward_list< Junction * > junctions_placed
 
- Protected Attributes inherited from horizon::ToolBase
Documents doc
 
class ImpInterfaceimp = nullptr
 
ToolID tool_id
 
bool is_transient = false
 

Additional Inherited Members

- Public Attributes inherited from horizon::ToolBase
std::set< SelectableRefselection
 

Member Function Documentation

◆ begin() [1/2]

ToolResponse horizon::ToolPlaceJunction::begin ( const ToolArgs args)
overridevirtual

Gets called right after the constructor has finished.

Used to get the initial placement right and set things up. For non-interactive Tools (e.g. DELETE), this one may return ToolResponse::end()

Implements horizon::ToolBase.

◆ begin() [2/2]

ToolResponse horizon::ToolPlaceJunction::begin ( const ToolArgs args)
overridevirtual

Gets called right after the constructor has finished.

Used to get the initial placement right and set things up. For non-interactive Tools (e.g. DELETE), this one may return ToolResponse::end()

Implements horizon::ToolBase.

◆ can_begin() [1/2]

bool horizon::ToolPlaceJunction::can_begin ( )
overridevirtual

◆ can_begin() [2/2]

bool horizon::ToolPlaceJunction::can_begin ( )
overridevirtual
Returns
true if this Tool can begin in sensible way

Reimplemented from horizon::ToolBase.

Reimplemented in horizon::ToolPlaceVia, horizon::ToolPlacePowerSymbol, and horizon::ToolPlaceNetLabel.


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