43 Intersections = 0x0001,
45 MiddlePoints = 0x0004,
46 CenterPoints = 0x0008,
47 PerpendicularPoints = 0x0010,
48 TangentialPoints = 0x0020,
49 ReferencePoints = 0x0040,
51 PointsOnEntity = 0x0100,
52 FreePositioning = 0x0200
54 Q_DECLARE_FLAGS(Modes, Mode)
66 static void init(
bool force =
false);
84 return (modes & mode) == mode;
88 setMode(Intersections, on);
91 return getMode(Intersections);
95 setMode(EndPoints, on);
98 return getMode(EndPoints);
102 setMode(MiddlePoints, on);
105 return getMode(MiddlePoints);
109 setMode(CenterPoints, on);
112 return getMode(CenterPoints);
116 setMode(PerpendicularPoints, on);
119 return getMode(PerpendicularPoints);
123 setMode(TangentialPoints, on);
126 return getMode(TangentialPoints);
130 setMode(ReferencePoints, on);
133 return getMode(ReferencePoints);
137 setMode(GridPoints, on);
140 return getMode(GridPoints);
144 setMode(PointsOnEntity, on);
147 return getMode(PointsOnEntity);
151 setMode(FreePositioning, on);
154 return getMode(FreePositioning);
194Q_DECLARE_OPERATORS_FOR_FLAGS(RSnapAuto::Modes)
void init(void basePath)
Definition AddBlockInit.js:2
#define RNANDOUBLE
Definition RMath.h:74
Q_DECLARE_METATYPE(RMath *)
Graphics view.
Definition RGraphicsView.h:67
A mouse event for a graphics scene.
Definition RMouseEvent.h:42
Auto snapper implementation.
Definition RSnapAuto.h:39
static bool getPerpendicular()
Definition RSnapAuto.h:118
static void setReferencePoints(bool on)
Definition RSnapAuto.h:129
static void setIntersections(bool on)
Definition RSnapAuto.h:87
virtual ~RSnapAuto()
Definition RSnapAuto.h:58
Mode
Definition RSnapAuto.h:41
static void setCenterPoints(bool on)
Definition RSnapAuto.h:108
static void setFreePositioning(bool on)
Definition RSnapAuto.h:150
static bool getFreePositioning()
Definition RSnapAuto.h:153
static void setGridPoints(bool on)
Definition RSnapAuto.h:136
static void setMiddlePoints(bool on)
Definition RSnapAuto.h:101
static Modes modes
Definition RSnapAuto.h:180
static bool getIntersections()
Definition RSnapAuto.h:90
static bool getPointsOnEntity()
Definition RSnapAuto.h:146
static void setMode(RSnapAuto::Mode mode, bool on)
Definition RSnapAuto.h:75
static bool getEndPoints()
Definition RSnapAuto.h:97
static void setTangential(bool on)
Definition RSnapAuto.h:122
static RSnapAuto::Modes getModes()
Definition RSnapAuto.h:68
static void setPerpendicular(bool on)
Definition RSnapAuto.h:115
virtual void reset()
Definition RSnapAuto.h:173
static void setEndPoints(bool on)
Definition RSnapAuto.h:94
static void setModes(RSnapAuto::Modes m)
Definition RSnapAuto.h:71
static void setPointsOnEntity(bool on)
Definition RSnapAuto.h:143
static bool getMode(RSnapAuto::Mode mode)
Definition RSnapAuto.h:83
static bool getMiddlePoints()
Definition RSnapAuto.h:104
static bool getReferencePoints()
Definition RSnapAuto.h:132
RSnapAuto()
Definition RSnapAuto.h:57
static bool getGridPoints()
Definition RSnapAuto.h:139
static bool getTangential()
Definition RSnapAuto.h:125
static bool getCenterPoints()
Definition RSnapAuto.h:111
static bool initialized
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RSnapAuto.h:178
Abstract base class for all grid and object snap implementations.
Definition RSnap.h:43
virtual RVector snap(const RVector &position, RGraphicsView &view, double range=RNANDOUBLE)
Definition RSnap.h:75
@ Unknown
Definition RSnap.h:50
Represents a 3d vector (x/y/z).
Definition RVector.h:47
#define QCADSNAP_EXPORT
Definition snap_global.h:10