QCAD
Open Source 2D CAD
RMoveSelectionOperation.h
Go to the documentation of this file.
1 
20 #ifndef RMOVESELECTIONOPERATION_H
21 #define RMOVESELECTIONOPERATION_H
22 
23 #include "operations_global.h"
24 
25 #include "RDocument.h"
26 #include "REntity.h"
27 #include "RExporter.h"
28 #include "ROperation.h"
29 #include "RVector.h"
30 
31 
40 public:
42  const RVector& referencePoint, const RVector& targetPoint
43  );
44 
46 
47  virtual RTransaction apply(RDocument& document, bool preview = false) const;
48 
49 private:
52 };
53 
55 
56 #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:74
RVector referencePoint
Definition: RMoveSelectionOperation.h:50
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
A graphics document contains and owns entities, layers, user coordinate systems, variables, block definitions, etc.
Definition: RDocument.h:67
Q_DECLARE_METATYPE(RMath *)
Copyright (c) 2011-2016 by Andrew Mustun.
Definition: RMoveSelectionOperation.h:39
RVector targetPoint
Definition: RMoveSelectionOperation.h:51
virtual ~RMoveSelectionOperation()
Definition: RMoveSelectionOperation.h:45