QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
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
39public:
40 double angle;
43 QList<double> dashes;
44
45 RPainterPath getPainterPath() const;
46 bool hasDots() const;
47 QList<RLine> getLines(bool includeDashes = false) const;
48 double getLength() const;
49 double getAngle() const {
50 return angle;
51 }
53 return offset;
54 }
56 return basePoint;
57 }
58 QList<double> getDashes() const {
59 return dashes;
60 }
61 void scale(double f);
62 void rotate(double a);
63};
64
65QCADCORE_EXPORT QDebug operator<<(QDebug dbg, const RPatternLine& p);
66
69
70#endif
Q_DECLARE_METATYPE(RMath *)
QCADCORE_EXPORT QDebug operator<<(QDebug dbg, const RPatternLine &p)
Stream operator for QDebug.
Definition RPatternLine.cpp:128
Extended painter path with a z-level and a pen.
Definition RPainterPath.h:48
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RPatternLine.h:38
double getAngle() const
Definition RPatternLine.h:49
QList< double > getDashes() const
Definition RPatternLine.h:58
QList< double > dashes
Definition RPatternLine.h:43
RVector getOffset() const
Definition RPatternLine.h:52
RVector basePoint
Definition RPatternLine.h:42
double angle
Definition RPatternLine.h:40
RVector offset
Definition RPatternLine.h:41
RVector getBasePoint() const
Definition RPatternLine.h:55
Represents a 3d vector (x/y/z).
Definition RVector.h:47
#define QCADCORE_EXPORT
Definition core_global.h:10
void rotate(void e, void angle, void center)
Rotates the given entity or shape by the given angle around the given center.
Definition simple_modify.js:109
void scale(void e, void factor, void focusPoint)
Scales the given entity or shape by the given factor with the given focus point.
Definition simple_modify.js:15