54 #include <QGraphicsEllipseItem>
55 #include <QGraphicsPathItem>
56 #include <QPainterPath>
59 #include <QSharedPointer>
63 #include "../../tools/drawTools/toolpoint/toolsinglepoint/vtoolpointofintersectionarcs.h"
64 #include "../ifc/ifcdef.h"
65 #include "../vgeometry/vabstractcurve.h"
66 #include "../vgeometry/varc.h"
67 #include "../vmisc/vabstractapplication.h"
68 #include "../vpatterndb/vcontainer.h"
69 #include "../vwidgets/vmaingraphicsscene.h"
70 #include "../visualization.h"
77 arc1Path(nullptr), arc2Path(nullptr)
79 this->setPen(QPen(Qt::NoPen));
81 arc1Path = InitItem<VCurvePathItem>(Qt::darkGreen,
this);
82 arc1Path->setFlag(QGraphicsItem::ItemStacksBehindParent,
false);
83 arc2Path = InitItem<VCurvePathItem>(Qt::darkRed,
this);
84 arc2Path->setFlag(QGraphicsItem::ItemStacksBehindParent,
false);
88 point->setFlag(QGraphicsItem::ItemStacksBehindParent,
false);
97 DrawPath(
arc1Path, arc1->GetPath(), arc1->DirectionArrows(), Qt::darkGreen, Qt::SolidLine,
103 DrawPath(
arc2Path, arc2->GetPath(), arc2->DirectionArrows(), Qt::darkRed, Qt::SolidLine,
VArc class for anticlockwise arc.
The VContainer class container of all variables.
const QSharedPointer< T > GeometricObject(const quint32 &id) const
The VMainGraphicsScene class main scene.
QPointF getScenePos() const
virtual void AddOnScene() Q_DECL_OVERRIDE
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