QCAD
Open Source 2D CAD
RMoveReferencePointOperation.h
Go to the documentation of this file.
1 
20 #ifndef RMOVEREFERENCEPOINTOPERATION_H
21 #define RMOVEREFERENCEPOINTOPERATION_H
22 
23 #include "operations_global.h"
24 
25 #include "RDocument.h"
26 #include "RExporter.h"
27 #include "ROperation.h"
28 #include "RVector.h"
29 
30 class REntity;
31 
40 public:
42  const RVector& referencePoint, const RVector& targetPoint
43  );
45 
46  virtual RTransaction apply(RDocument& document, bool preview = false) const;
47 
48 private:
51 };
52 
54 
55 #endif
This abstract class is an interface for all operation implementations.
Definition: ROperation.h:44
Represents a 3d vector (x/y/z).
Definition: RVector.h:46
Transaction implementation.
Definition: RTransaction.h:70
virtual RTransaction apply(RDocument &document, bool preview=false) const =0
Applies this operation to selection in the given document.
#define QCADOPERATIONS_EXPORT
Definition: operations_global.h:10
virtual ~RMoveReferencePointOperation()
Definition: RMoveReferencePointOperation.h:44
RVector referencePoint
Definition: RMoveReferencePointOperation.h:49
Base class for all entity classes.
Definition: REntity.h:64
A graphics document contains and owns entities, layers, user coordinate systems, variables, block definitions, etc.
Definition: RDocument.h:63
Q_DECLARE_METATYPE(RMath *)
Implementation of an operation that moves a reference point by a given distance.
Definition: RMoveReferencePointOperation.h:39
RVector targetPoint
Definition: RMoveReferencePointOperation.h:50