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
snap_global.h
QCADSNAP_EXPORT
#define QCADSNAP_EXPORT
Definition: snap_global.h:10
RVector
Represents a 3d vector (x/y/z).
Definition: RVector.h:46
RSnapRestriction.h
RRestrictOff
Default snap restriction implementation (no restriction).
Definition: RRestrictOff.h:36
RSnapRestriction::restrictSnap
virtual RVector restrictSnap(const RVector &position, const RVector &relativeZero)=0
RSnapRestriction
Abstract base class for all snap restriction implementations.
Definition: RSnapRestriction.h:37
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(RMath *)
RRestrictOff::RRestrictOff
RRestrictOff(RDocumentInterface *documentInterface=NULL)
Definition: RRestrictOff.h:38
RRestrictOff::~RRestrictOff
virtual ~RRestrictOff()
Definition: RRestrictOff.h:40
RDocumentInterface
Interface for interaction between a graphics document and a user.
Definition: RDocumentInterface.h:85