54 #include <QGraphicsLineItem>
58 #include <QSharedPointer>
61 #include "../ifc/ifcdef.h"
62 #include "../vgeometry/vpointf.h"
63 #include "../vpatterndb/vcontainer.h"
64 #include "../visualization.h"
70 line1P1(nullptr), line1P2(nullptr), line1(nullptr), line2P1(nullptr), line2P2(nullptr)
99 DrawLine(
line1, QLineF(
static_cast<QPointF
>(*first),
static_cast<QPointF
>(*second)),
116 QLineF l1(
static_cast<QPointF
>(*first),
static_cast<QPointF
>(*second));
119 QLineF::IntersectType intersect = l1.intersects(l2, &fPoint);
120 if (intersect == QLineF::UnboundedIntersection || intersect == QLineF::BoundedIntersection)
130 DrawLine(
this, QLineF(
static_cast<QPointF
>(*third),
static_cast<QPointF
>(*forth)),
133 QLineF l1(
static_cast<QPointF
>(*first),
static_cast<QPointF
>(*second));
134 QLineF l2(
static_cast<QPointF
>(*third),
static_cast<QPointF
>(*forth));
136 QLineF::IntersectType intersect = l1.intersects(l2, &fPoint);
137 if (intersect == QLineF::UnboundedIntersection || 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