QCAD
Open Source 2D CAD
RScaleSelectionOperation.h
Go to the documentation of this file.
1 
20 #ifndef RSCALESELECTIONOPERATION_H
21 #define RSCALESELECTIONOPERATION_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:
41  RScaleSelectionOperation(const RVector& factors, const RVector& referencePoint);
42  RScaleSelectionOperation(double factor, const RVector& referencePoint);
43 
45 
46  virtual RTransaction apply(RDocument& document, bool preview = false);
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:74
#define QCADOPERATIONS_EXPORT
Definition: operations_global.h:10
Copyright (c) 2011-2017 by Andrew Mustun.
Definition: RScaleSelectionOperation.h:39
A graphics document contains and owns entities, layers, user coordinate systems, variables, block definitions, etc.
Definition: RDocument.h:67
Q_DECLARE_METATYPE(RMath *)
RVector referencePoint
Definition: RScaleSelectionOperation.h:49
RVector factors
Definition: RScaleSelectionOperation.h:50
virtual ~RScaleSelectionOperation()
Definition: RScaleSelectionOperation.h:44
virtual RTransaction apply(RDocument &document, bool preview=false)=0
Applies this operation to selection in the given document.