QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
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
28
37public:
39 : RSnapRestriction(documentInterface),
40 mode(RS::Orthogonal) {}
42
43 virtual RVector restrictSnap(const RVector& position, const RVector& relativeZero);
44
45protected:
47};
48
50
51#endif
Q_DECLARE_METATYPE(RMath *)
Interface for interaction between a graphics document and a user.
Definition RDocumentInterface.h:97
Orthogonal snap restriction implementation.
Definition RRestrictOrthogonal.h:36
RS::OrthoMode mode
Definition RRestrictOrthogonal.h:46
RRestrictOrthogonal(RDocumentInterface *documentInterface)
Definition RRestrictOrthogonal.h:38
virtual ~RRestrictOrthogonal()
Definition RRestrictOrthogonal.h:41
Class namespace for various global enums.
Definition RS.h:149
OrthoMode
Orthogonal mode, used for snap restrictions.
Definition RS.h:303
Abstract base class for all snap restriction implementations.
Definition RSnapRestriction.h:37
virtual RVector restrictSnap(const RVector &position, const RVector &relativeZero)=0
Represents a 3d vector (x/y/z).
Definition RVector.h:47
#define QCADSNAP_EXPORT
Definition snap_global.h:10