QCAD
Open Source 2D CAD
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RSnapDistance.h
Go to the documentation of this file.
1 
20 #ifndef RSNAPDISTANCE_H
21 #define RSNAPDISTANCE_H
22 
23 #include "snap_global.h"
24 
25 #include "REntity.h"
26 #include "RSnapEntityBase.h"
27 
28 class RGraphicsView;
29 class RMouseEvent;
30 
40 public:
41  RSnapDistance();
42  virtual ~RSnapDistance() {}
43 
44  virtual void showUiOptions();
45  virtual void hideUiOptions();
46  virtual void setDistance(double d);
47 
48 protected:
49  virtual QList<RVector> snapEntity(
50  QSharedPointer<REntity> entity,
51  const RVector& point,
52  const RBox& queryBox,
53  RGraphicsView& view);
54 
55 private:
56  double distance;
57 };
58 
60 
61 #endif