]> git.tdb.fi Git - r2c2.git/blobdiff - source/designer/movetool.h
Improve algorithms in several editing tools
[r2c2.git] / source / designer / movetool.h
index 5eb1c8599ef1ec9952a89468eb9ba0922da7077d..2f243fefdd5228b3b2a630a610c0f7a751565a54 100644 (file)
@@ -6,6 +6,18 @@
 class MoveTool: public Manipulator
 {
 private:
+       struct Boundary
+       {
+               MObject *object;
+               unsigned index;
+
+               Boundary(MObject *, unsigned);
+
+               R2C2::Object *operator->() const { return object->object; }
+       };
+
+       std::list<Boundary> boundaries;
+       std::set<R2C2::Object *> snap_targets;
        R2C2::Vector origin;
 
 public: