54 #include <QPainterPath>
56 #include <QSharedPointer>
60 #include "../ifc/ifcdef.h"
61 #include "../vgeometry/vabstractcurve.h"
62 #include "../vgeometry/varc.h"
63 #include "../vgeometry/vpointf.h"
64 #include "../vpatterndb/vcontainer.h"
65 #include "../visualization.h"
70 :
VisPath(data, parent), arcCenter(nullptr), radius(0), f1(0), length(0)
83 if (not qFuzzyIsNull(
radius) &&
f1 >= 0 && not qFuzzyIsNull(
length))
virtual QVector< DirectionArrow > DirectionArrows() const
virtual QPainterPath GetPath() const
VArc class for anticlockwise arc.
The VContainer class container of all variables.
const QSharedPointer< T > GeometricObject(const quint32 &id) const
The VPointF class keep data of point.
void DrawPoint(QGraphicsEllipseItem *point, const QPointF &pos, const QColor &color, Qt::PenStyle style=Qt::SolidLine)
static qreal FindLength(const QString &expression, const QHash< QString, QSharedPointer< VInternalVariable > > *vars)
void DrawPath(VCurvePathItem *pathItem, const QPainterPath &path, const QColor &color, Qt::PenStyle style=Qt::SolidLine, const qreal &weight=0.35, Qt::PenCapStyle cap=Qt::SquareCap)
VScaledEllipse * InitPoint(const QColor &color, QGraphicsItem *parent, qreal z=0) const
static qreal FindVal(const QString &expression, const QHash< QString, QSharedPointer< VInternalVariable > > *vars)