35 #include "../visualization.h"
36 #include "../ifc/ifcdef.h"
37 #include "../vgeometry/vpointf.h"
38 #include "../vpatterndb/vcontainer.h"
40 #include <QGraphicsEllipseItem>
41 #include <QGraphicsLineItem>
44 #include <QSharedPointer>
77 axisL1 =
Axis(
static_cast<QPointF
>(*first), 90);
90 axisL2 =
Axis(
static_cast<QPointF
>(*second), 180);
113 QLineF::IntersectType intersect = axis1.intersects(
axis2, &p);
114 if (intersect == QLineF::UnboundedIntersection || intersect == QLineF::BoundedIntersection)
116 point->setVisible(
true);
121 point->setVisible(
false);
virtual void RefreshGeometry() Q_DECL_OVERRIDE
void setPoint1Id(const quint32 &value)
void showIntersection(const QLineF &axis1, const QLineF &axis2, const QColor &color)
PointIntersectXYVisual(const VContainer *data, QGraphicsItem *parent=nullptr)
void setPoint2Id(const quint32 &value)
The VContainer class container of all variables.
const QSharedPointer< T > GeometricObject(const quint32 &id) const
The VPointF class keep data of point.
QLineF Axis(const QPointF &p, const qreal &angle) const
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