QCAD
Open Source 2D CAD
RPatternLine.h
Go to the documentation of this file.
1 
20 #ifndef RPATTERNLINE_H
21 #define RPATTERNLINE_H
22 
23 #include "core_global.h"
24 
25 #include "RLine.h"
26 #include "RPainterPath.h"
27 #include "RVector.h"
28 
29 
38 public:
39  double angle;
42  QList<double> dashes;
43 
44  RPainterPath getPainterPath() const;
45  QList<RLine> getLines() const;
46  double getLength() const;
47  void scale(double f);
48  void rotate(double a);
49 };
50 
51 QCADCORE_EXPORT QDebug operator<<(QDebug dbg, const RPatternLine& p);
52 
55 
56 #endif
QCADCORE_EXPORT QDebug operator<<(QDebug dbg, const RPatternLine &p)
Stream operator for QDebug.
Definition: RPatternLine.cpp:104
Represents a 3d vector (x/y/z).
Definition: RVector.h:46
#define QCADCORE_EXPORT
Definition: core_global.h:10
void rotate(void e, void angle, void p1, void p2)
Rotates the given entity or shape by the given angle around the given center.
Definition: simple_modify.js:41
RVector basePoint
Definition: RPatternLine.h:41
QList< double > dashes
Definition: RPatternLine.h:42
Q_DECLARE_METATYPE(RMath *)
Extended painter path with a z-level and a pen.
Definition: RPainterPath.h:46
void scale(void e, void factor, void p1, void p2)
Scales the given entity or shape by the given factor with the given focus point.
Definition: simple_modify.js:54
Copyright (c) 2011-2016 by Andrew Mustun.
Definition: RPatternLine.h:37
RVector offset
Definition: RPatternLine.h:40
double angle
Definition: RPatternLine.h:39