Horizon
Loading...
Searching...
No Matches
Classes | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
horizon::ToolHelperSavePlacements Class Reference
Inheritance diagram for horizon::ToolHelperSavePlacements:
horizon::ToolBase horizon::ToolAlignAndDistribute horizon::ToolRotateArbitrary

Classes

struct  PlacementInfo
 

Protected Types

using PlacementPair = decltype(placements)::value_type
 
using Callback = std::function< Placement(const SelectableRef &sel, const PlacementInfo &curr)>
 
using IndexCallback = std::function< int64_t(const SelectableRef &sel, const PlacementInfo &curr)>
 

Protected Member Functions

void save_placements ()
 
void apply_placements (Callback fn)
 
void update_indices (IndexCallback fn)
 
const PlacementPair & get_placement_info_for_index (size_t index) const
 
void reset_placements ()
 
size_t count_types_supported () const
 
- Protected Member Functions inherited from horizon::ToolBase
virtual ToolSettingsget_settings ()
 

Static Protected Member Functions

static bool type_is_supported (ObjectType type)
 

Protected Attributes

std::map< SelectableRef, PlacementInfoplacements
 
std::map< UUID, double > decal_scales
 
std::map< UUID, uint64_t > picture_px_sizes
 
- Protected Attributes inherited from horizon::ToolBase
Documents doc
 
class ImpInterfaceimp = nullptr
 
const ToolID tool_id
 
bool is_transient = false
 

Additional Inherited Members

- 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 ()
 
virtual std::set< InToolActionID > get_actions () const
 
virtual ToolResponse begin (const ToolArgs &args)=0
 Gets called right after the constructor has finished.
 
virtual ToolResponse update (const ToolArgs &args)=0
 Gets called whenever the user generated some sort of input.
 
virtual bool can_begin ()
 
virtual bool is_specific ()
 
- Public Attributes inherited from horizon::ToolBase
std::set< SelectableRefselection
 

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