QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
RSnapIntersection.h
Go to the documentation of this file.
1
20#ifndef RSNAPINTERSECTION_H
21#define RSNAPINTERSECTION_H
22
23#include "snap_global.h"
24
25#include "RSnap.h"
26
27class RGraphicsView;
28
37public:
38 RSnapIntersection() : RSnap(RSnap::Intersection) {}
39 virtual ~RSnapIntersection() {}
40
41 virtual RVector snap(
42 const RVector& position,
43 RGraphicsView& view,
44 double range = RNANDOUBLE);
45
46 virtual RVector snap(
47 const RVector& position,
48 RGraphicsView& view,
49 const QMap<RObject::Id, QSet<int> >& candidates,
50 const RBox& queryBox);
51};
52
54
55#endif
#define RNANDOUBLE
Definition RMath.h:74
Q_DECLARE_METATYPE(RMath *)
Definition RDebug.h:38
Represents a box e.g.
Definition RBox.h:46
Graphics view.
Definition RGraphicsView.h:67
int Id
Definition RObject.h:69
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
Intersection snapper implementation.
Definition RSnapIntersection.h:36
RSnapIntersection()
Definition RSnapIntersection.h:38
virtual ~RSnapIntersection()
Definition RSnapIntersection.h:39
Represents a 3d vector (x/y/z).
Definition RVector.h:47
#define QCADSNAP_EXPORT
Definition snap_global.h:10