QCAD
Open Source 2D CAD
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:
39  : RSnapRestriction(documentInterface),
40  mode(RS::Orthogonal) {}
41  virtual ~RRestrictOrthogonal() {}
42 
43  virtual RVector restrictSnap(const RVector& position, const RVector& relativeZero);
44 
45 protected:
47 };
48 
50 
51 #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
RS::OrthoMode
OrthoMode
Orthogonal mode, used for snap restrictions.
Definition: RS.h:195
RSnapRestriction.h
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 *)
RS
Class namespace for various global enums.
Definition: RS.h:107
RRestrictOrthogonal::~RRestrictOrthogonal
virtual ~RRestrictOrthogonal()
Definition: RRestrictOrthogonal.h:41
RRestrictOrthogonal::mode
RS::OrthoMode mode
Definition: RRestrictOrthogonal.h:46
RRestrictOrthogonal::RRestrictOrthogonal
RRestrictOrthogonal(RDocumentInterface *documentInterface)
Definition: RRestrictOrthogonal.h:38
RDocumentInterface
Interface for interaction between a graphics document and a user.
Definition: RDocumentInterface.h:85
RRestrictOrthogonal
Orthogonal snap restriction implementation.
Definition: RRestrictOrthogonal.h:36