QCAD
Open Source 2D CAD
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RRestrictOrthogonal.h
Go to the documentation of this file.
1 
20 #ifndef RRESTRICTORTHOGONAL_H
21 #define RRESTRICTORTHOGONAL_H
22 
23 #include "snap_global.h"
24 
25 #include "RSnapRestriction.h"
26 
27 class RDocumentInterface;
28 
37 public:
38  enum OrthoMode {
41  Orthogonal
42  };
43 
45  : RSnapRestriction(documentInterface),
46  mode(RRestrictOrthogonal::Orthogonal) {}
47  virtual ~RRestrictOrthogonal() {}
48 
49  virtual RVector restrictSnap(const RVector& position, const RVector& relativeZero);
50 
51 protected:
53 };
54 
57 
58 #endif