7 #include "libr2c2/object.h"
8 #include "libr2c2/trackiter.h"
11 class ExtendTool: public Tool
14 std::map<float, const R2C2::TrackType *> types_by_length;
15 unsigned max_preference;
16 std::vector<R2C2::TrackIter> unlinked_endpoints;
17 std::vector<R2C2::Track *> extend_tracks;
20 ExtendTool(Designer &, Msp::Input::Keyboard &, Msp::Input::Mouse &, const std::set<R2C2::Object *> &);
21 virtual ~ExtendTool();
26 virtual void pointer_motion();
27 virtual void finish();
29 std::vector<R2C2::Track *> create_straight(const R2C2::Vector &, const R2C2::Angle &, float, float);
32 virtual void update_selection(Selection &) const;