54 #include <QGraphicsLineItem>
57 #include <QSharedPointer>
60 #include "../../tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolbisector.h"
61 #include "../ifc/ifcdef.h"
62 #include "../vgeometry/vgobject.h"
63 #include "../vgeometry/vpointf.h"
64 #include "../vpatterndb/vcontainer.h"
65 #include "../visualization.h"
70 :
VisLine(data, parent), object2Id(
NULL_ID), object3Id(
NULL_ID), point(nullptr), line1P1(nullptr), line1P2(nullptr),
71 line1(nullptr), line2P2(nullptr), line2(nullptr), length(0)
131 if (not qFuzzyIsNull(
length))
134 static_cast<QPointF
>(*second),
135 static_cast<QPointF
>(*third));
144 static_cast<QPointF
>(*second),
145 static_cast<QPointF
>(*third));
146 QPointF endRay =
Ray(
static_cast<QPointF
>(*second), angle);
148 QLineF(
static_cast<QPointF
>(*second), endRay).
length(),
The VContainer class container of all variables.
const QSharedPointer< T > GeometricObject(const quint32 &id) const
static QLineF BuildLine(const QPointF &p1, const qreal &length, const qreal &angle)
The VPointF class keep data of point.
QPointF Ray(const QPointF &firstPoint, const qreal &angle) const
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