QCAD
Open Source 2D CAD
RRestrictOff.h
Go to the documentation of this file.
1 
20 #ifndef RRESTRICTOFF_H
21 #define RRESTRICTOFF_H
22 
23 #include "snap_global.h"
24 
25 #include "RSnapRestriction.h"
26 
27 class RDocumentInterface;
28 
37 public:
38  RRestrictOff(RDocumentInterface* documentInterface = NULL)
39  : RSnapRestriction(documentInterface) {}
40  virtual ~RRestrictOff() {}
41 
42  virtual RVector restrictSnap(const RVector& position, const RVector& relativeZero);
43 };
44 
46 
47 #endif
virtual ~RRestrictOff()
Definition: RRestrictOff.h:40
Represents a 3d vector (x/y/z).
Definition: RVector.h:46
Abstract base class for all snap restriction implementations.
Definition: RSnapRestriction.h:37
virtual RVector restrictSnap(const RVector &position, const RVector &relativeZero)=0
Default snap restriction implementation (no restriction).
Definition: RRestrictOff.h:36
Q_DECLARE_METATYPE(RMath *)
Interface for interaction between a graphics document and a user.
Definition: RDocumentInterface.h:82
RRestrictOff(RDocumentInterface *documentInterface=NULL)
Definition: RRestrictOff.h:38
#define QCADSNAP_EXPORT
Definition: snap_global.h:10