54 #include <QGraphicsLineItem>
57 #include <QSharedPointer>
61 #include "../../tools/drawTools/toolpoint/toolsinglepoint/toollinepoint/vtoolheight.h"
62 #include "../ifc/ifcdef.h"
63 #include "../vgeometry/vpointf.h"
64 #include "../vpatterndb/vcontainer.h"
65 #include "../visualization.h"
70 :
VisLine(data, parent), lineP1Id(
NULL_ID), lineP2Id(
NULL_ID), point(nullptr), base_point(nullptr), lineP1(nullptr),
71 lineP2(nullptr), line(nullptr), line_intersection(nullptr)
110 base_line = QLineF(
static_cast<QPointF
>(*second),
static_cast<QPointF
>(*third));
118 QLineF height_line(
static_cast<QPointF
>(*first), height);
142 QLineF::IntersectType intersect = height_line.intersects(base_line, &p);
143 if (intersect == QLineF::UnboundedIntersection)
148 else if (intersect == QLineF::BoundedIntersection)
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)
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