QCAD
Open Source 2D CAD
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
REntityPickEvent.h
Go to the documentation of this file.
1 
20 #ifndef RENTITYPICKEVENT_H
21 #define RENTITYPICKEVENT_H
22 
23 #include "core_global.h"
24 
25 #include "RInputEvent.h"
26 #include "REntity.h"
27 #include "RVector.h"
28 
29 class RGraphicsView;
30 class RGraphicsScene;
31 
39 public:
44  REntityPickEvent(REntity::Id entityId, const RVector& position,
46 
51  return entityId;
52  }
53 
57  bool isValid() const {
58  return entityId!=REntity::INVALID_ID;
59  }
60 
61 private:
63 };
64 
67 
68 #endif