55 #include <QPainterPath>
56 #include <QSharedPointer>
60 #include "../ifc/ifcdef.h"
61 #include "../vgeometry/vabstractcurve.h"
62 #include "../vgeometry/vgeometrydef.h"
63 #include "../vgeometry/vpointf.h"
64 #include "../vgeometry/vspline.h"
65 #include "../vpatterndb/vcontainer.h"
66 #include "../vwidgets/vcontrolpointspline.h"
67 #include "../visualization.h"
83 isLeftMousePressed(false),
94 controlPoint1->hide();
98 controlPoint2->hide();
125 static_cast<QPointF
>(*first));
129 if (QLineF(
static_cast<QPointF
>(*first),
p2).length() > radius)
135 p2 =
static_cast<QPointF
>(*first);
160 ctrlLine.setAngle(ctrlLine.angle()+180);
163 static_cast<QPointF
>(*second));
167 if (QLineF(
static_cast<QPointF
>(*second),
p3).length() > radius)
173 p3 =
static_cast<QPointF
>(*second);
virtual QVector< DirectionArrow > DirectionArrows() const
virtual QPainterPath GetPath() const
The VContainer class container of all variables.
const QSharedPointer< T > GeometricObject(const quint32 &id) const
The VControlPointSpline class control spline point.
The VPointF class keep data of point.
VSpline class that implements the spline.
void ToolTip(const QString &toolTip)
void DrawPoint(QGraphicsEllipseItem *point, const QPointF &pos, const QColor &color, Qt::PenStyle style=Qt::SolidLine)
void DrawPath(VCurvePathItem *pathItem, const QPainterPath &path, const QColor &color, Qt::PenStyle style=Qt::SolidLine, const qreal &weight=0.35, Qt::PenCapStyle cap=Qt::SquareCap)
VScaledEllipse * InitPoint(const QColor &color, QGraphicsItem *parent, qreal z=0) const
static Q_REQUIRED_RESULT bool VFuzzyComparePossibleNulls(double p1, double p2)
const qreal defPointRadiusPixel