55 #include <qcompilerdetection.h>
57 #include <QGraphicsItem>
58 #include <QGraphicsLineItem>
60 #include <QMetaObject>
67 #include "../vtools/visualization/visualization.h"
68 #include "../vmisc/def.h"
69 #include "../vwidgets/scalesceneitems.h"
78 virtual int type() const Q_DECL_OVERRIDE {
return Type;}
82 QPointF
Ray(
const QPointF &firstPoint,
const qreal &angle)
const;
83 QPointF
Ray(
const QPointF &firstPoint)
const;
84 QLineF
Axis(
const QPointF &p,
const qreal &angle)
const;
85 QLineF
Axis(
const QPointF &p1,
const QPointF &p2)
const;
86 virtual void initPen() Q_DECL_OVERRIDE;
90 const QColor &color, Qt::PenStyle style);
The VContainer class container of all variables.
VisLine(const VContainer *data, QGraphicsItem *parent=nullptr)
virtual void initPen() Q_DECL_OVERRIDE
static qreal CorrectAngle(const qreal &angle)
void DrawRay(VScaledLine *lineItem, const QPointF &p, const QPointF &pTangent, const QColor &color, Qt::PenStyle style)
virtual ~VisLine()=default
virtual void AddOnScene() Q_DECL_OVERRIDE
QLineF Axis(const QPointF &p, const qreal &angle) const
virtual int type() const Q_DECL_OVERRIDE
QPointF Ray(const QPointF &firstPoint, const qreal &angle) const