4 #include <sigc++/sigc++.h>
5 #include <msp/gl/renderable.h>
6 #include "libr2c2/geometry.h"
11 class Measure: public Tool, public Msp::GL::Renderable
22 Measure(Designer &, Msp::Input::Keyboard &, Msp::Input::Mouse &);
25 float get_parallel_distance() const { return par_dist; }
26 float get_perpendicular_distance() const { return perp_dist; }
27 const R2C2::Angle &get_angle_difference() const { return adiff; }
31 virtual void key_press(unsigned);
32 virtual void button_press(unsigned);
33 virtual void pointer_motion();
36 virtual void render(Msp::GL::Renderer &, const Msp::GL::Tag &) const;
39 void snap_to_tracks(R2C2::Snap &);