QCAD
Open Source 2D CAD
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RSnapAuto.h
Go to the documentation of this file.
1 
20 #ifndef RSNAPAUTO_H
21 #define RSNAPAUTO_H
22 
23 #include "snap_global.h"
24 
25 #include "RSnap.h"
26 
27 class RMouseEvent;
28 class RGraphicsView;
29 
38 public:
39  virtual ~RSnapAuto() {}
40 
41  virtual RVector snap(
42  const RVector& position,
43  RGraphicsView& view,
44  double range=RNANDOUBLE
45  );
46 
47  static void init(bool force = false);
48 
49 private:
50  static bool initialized;
51 
52  static bool intersections;
53  static bool endPoints;
54  static bool middlePoints;
55  static bool centerPoints;
56  static bool perpendicular;
57  static bool referencePoints;
58  static bool gridPoints;
59  static bool pointsOnEntity;
60  static bool freePositioning;
61 };
62 
64 
65 #endif