Horizon
|
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 |
![]() | |
virtual ToolSettings * | get_settings () |
Static Protected Member Functions | |
static bool | type_is_supported (ObjectType type) |
Protected Attributes | |
std::map< SelectableRef, PlacementInfo > | placements |
std::map< UUID, double > | decal_scales |
std::map< UUID, uint64_t > | picture_px_sizes |
![]() | |
Documents | doc |
class ImpInterface * | imp = nullptr |
const ToolID | tool_id |
bool | is_transient = false |
Additional Inherited Members | |
![]() | |
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. More... | |
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 () |
![]() | |
std::set< SelectableRef > | selection |