QCAD Application Framework
CAD Application Development and Automation.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RSnapRestriction.h
Go to the documentation of this file.
1 #ifndef RSNAPRESTRICTION_H
2 #define RSNAPRESTRICTION_H
3 
4 #include "RVector.h"
5 
15 public:
17  virtual ~RSnapRestriction() {}
18 
23  virtual RVector restrictSnap(const RVector& position, const RVector& relativeZero) = 0;
24 
25  virtual void showUiOptions() {}
26  virtual void hideUiOptions() {}
27 
28  RVector getLastSnap() const {
29  return lastSnap;
30  }
31 
32  void reset() {
34  }
35 
36 protected:
38 };
39 
41 
42 #endif