QCAD
Open Source 2D CAD
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 #include "REntity.h"
27 
28 class RGraphicsView;
29 class RMouseEvent;
30 
39 public:
41  virtual ~RSnapIntersection() {}
42 
43  virtual RVector snap(
44  const RVector& position,
45  RGraphicsView& view,
46  double range = RNANDOUBLE);
47 
48  virtual RVector snap(
49  const RVector& position,
50  RGraphicsView& view,
51  const QMap<REntity::Id, QSet<int> >& candidates,
52  const RBox& queryBox);
53 };
54 
56 
57 #endif