Horizon
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
horizon::ToolMove Class Reference
Inheritance diagram for horizon::ToolMove:
horizon::ToolHelperMove horizon::ToolHelperMerge horizon::ToolHelperCollectNets horizon::ToolBase horizon::ToolHelperRestrict horizon::ToolBase horizon::ToolBase

Public Member Functions

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

Friends

Axis & operator|= (Axis &a, const Axis &b)
 
Axis operator| (Axis a, Axis b)
 
Axis operator& (Axis a, Axis b)
 

Additional Inherited Members

- Static Public Member Functions inherited from horizon::ToolHelperMove
static Orientation transform_orientation (Orientation orientation, bool rotate, bool reverse=false)
 
- Public Attributes inherited from horizon::ToolBase
std::set< SelectableRefselection
 
- Protected Types inherited from horizon::ToolHelperRestrict
enum class  RestrictMode { X , Y , ARB , DEG45 }
 
- Protected Member Functions inherited from horizon::ToolHelperMove
void move_init (const Coordi &c)
 
void move_do (const Coordi &delta)
 
Coordi move_do_cursor (const Coordi &c)
 
void move_mirror_or_rotate (const Coordi &center, bool rotate)
 
Coordi get_delta () const
 
- Protected Member Functions inherited from horizon::ToolBase
virtual ToolSettingsget_settings ()
 
- Protected Member Functions inherited from horizon::ToolHelperRestrict
void cycle_restrict_mode ()
 
void cycle_restrict_mode_xy ()
 
void toogle_45_degrees_mode ()
 
std::string restrict_mode_to_string () const
 
Coordi get_coord_restrict (const Coordi &old, const Coordi &cur) const
 
- Protected Member Functions inherited from horizon::ToolHelperMerge
bool merge_bus_net (class Net *net, class Bus *bus, class Net *net_other, class Bus *bus_other)
 
int merge_nets (Net *net, Net *into)
 
void merge_and_connect (const std::set< UUID > &extra_junctions)
 
- Protected Member Functions inherited from horizon::ToolHelperCollectNets
std::set< UUIDnets_from_selection (const std::set< SelectableRef > &sel)
 
- Protected Attributes inherited from horizon::ToolBase
Documents doc
 
class ImpInterfaceimp = nullptr
 
const ToolID tool_id
 
bool is_transient = false
 
- Protected Attributes inherited from horizon::ToolHelperRestrict
RestrictMode restrict_mode = RestrictMode::ARB
 

Member Function Documentation

◆ begin()

ToolResponse horizon::ToolMove::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()

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

Reimplemented from horizon::ToolBase.

◆ get_actions()

std::set< InToolActionID > horizon::ToolMove::get_actions ( ) const
inlineoverridevirtual

Reimplemented from horizon::ToolBase.

◆ is_specific()

bool horizon::ToolMove::is_specific ( )
inlineoverridevirtual
Returns
true if this Tool is specific to the selection

Reimplemented from horizon::ToolBase.

◆ update()

ToolResponse horizon::ToolMove::update ( const ToolArgs args)
overridevirtual

Gets called whenever the user generated some sort of input.

Implements horizon::ToolBase.


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