QCAD
Open Source 2D CAD
RSnapReference.h
Go to the documentation of this file.
1 
20 #ifndef RSNAPREFERENCE_H
21 #define RSNAPREFERENCE_H
22 
23 #include "snap_global.h"
24 
25 #include "RSnapEntityBase.h"
26 #include "REntity.h"
27 
28 class RMouseEvent;
29 
38 public:
40  virtual ~RSnapReference() {}
41 
42 protected:
43  virtual QList<RVector> snapEntity(
44  QSharedPointer<REntity> entity,
45  const RVector& point,
46  const RBox& queryBox,
47  RGraphicsView& view);
48 };
49 
51 
52 #endif
Represents a box e.g.
Definition: RBox.h:43
Abstract base class for all grid and object snap implementations.
Definition: RSnap.h:44
Represents a 3d vector (x/y/z).
Definition: RVector.h:46
Base class for entity based snap classes.
Definition: RSnapEntityBase.h:37
Reference snapper implementation.
Definition: RSnapReference.h:37
virtual QList< RVector > snapEntity(QSharedPointer< REntity > entity, const RVector &point, const RBox &queryBox, RGraphicsView &view)=0
Q_DECLARE_METATYPE(RMath *)
A mouse event for a graphics scene.
Definition: RMouseEvent.h:42
virtual ~RSnapReference()
Definition: RSnapReference.h:40
RSnapReference()
Definition: RSnapReference.h:39
#define QCADSNAP_EXPORT
Definition: snap_global.h:10
Graphics view.
Definition: RGraphicsView.h:58