54 #include <QGraphicsEllipseItem>
57 #include <QSharedPointer>
61 #include "../../tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofcontact.h"
62 #include "../ifc/ifcdef.h"
63 #include "../vgeometry/vpointf.h"
64 #include "../vpatterndb/vcontainer.h"
65 #include "../visualization.h"
70 :
VisLine(data, parent), lineP2Id(
NULL_ID), radiusId(
NULL_ID), point(nullptr), lineP1(nullptr), lineP2(nullptr),
71 arc_point(nullptr), circle(nullptr), radius(0)
97 DrawLine(
this, QLineF(
static_cast<QPointF
>(*first),
static_cast<QPointF
>(*second)),
109 if (not qFuzzyIsNull(
radius))
112 static_cast<QPointF
>(*first),
113 static_cast<QPointF
>(*second));
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)
virtual void DrawLine(VScaledLine *lineItem, const QLineF &line, const QColor &color, const qreal &lineWeight, Qt::PenStyle style=Qt::SolidLine)
VScaledEllipse * InitPoint(const QColor &color, QGraphicsItem *parent, qreal z=0) const
QRectF PointRect(qreal radius)