#include <vcurvepathitem.h>
Public Types | |
enum | { Type = UserType + static_cast<int>(Vis::CurvePathItem) } |
Public Member Functions | |
VCurvePathItem (QGraphicsItem *parent=nullptr) | |
virtual | ~VCurvePathItem ()=default |
virtual QPainterPath | shape () const Q_DECL_OVERRIDE |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) Q_DECL_OVERRIDE |
virtual int | type () const Q_DECL_OVERRIDE |
void | SetDirectionArrows (const QVector< QPair< QLineF, QLineF >> &arrows) |
void | SetPoints (const QVector< QPointF > &points) |
Protected Member Functions | |
virtual void | ScalePenWidth () |
Private Attributes | |
QVector< QPair< QLineF, QLineF > > | m_directionArrows |
QVector< QPointF > | m_points |
Definition at line 60 of file vcurvepathitem.h.
anonymous enum |
Enumerator | |
---|---|
Type |
Definition at line 72 of file vcurvepathitem.h.
|
explicit |
Definition at line 59 of file vcurvepathitem.cpp.
|
virtualdefault |
|
virtual |
Definition at line 96 of file vcurvepathitem.cpp.
References VAbstractCurve::lengthCurveDirectionArrow, m_directionArrows, ScalePenWidth(), scaleWidth(), sceneScale(), and VAbstractCurve::ShowDirection().
|
protectedvirtual |
Reimplemented in VSimpleCurve.
Definition at line 134 of file vcurvepathitem.cpp.
References scaleWidth(), sceneScale(), and widthMainLine.
Referenced by paint().
void VCurvePathItem::SetDirectionArrows | ( | const QVector< QPair< QLineF, QLineF >> & | arrows | ) |
Definition at line 122 of file vcurvepathitem.cpp.
References m_directionArrows.
Referenced by Visualization::DrawPath(), VSimpleCurve::hoverEnterEvent(), VSimpleCurve::hoverLeaveEvent(), and VSimpleCurve::RefreshGeometry().
void VCurvePathItem::SetPoints | ( | const QVector< QPointF > & | points | ) |
Definition at line 128 of file vcurvepathitem.cpp.
References m_points.
Referenced by VSimpleCurve::RefreshGeometry().
|
virtual |
Definition at line 67 of file vcurvepathitem.cpp.
References ItemShapeFromPath(), VAbstractCurve::lengthCurveDirectionArrow, m_directionArrows, m_points, scaleWidth(), sceneScale(), and VAbstractCurve::ShowDirection().
|
inlinevirtual |
Reimplemented in VSimpleCurve, VisToolSplinePath, VisToolSpline, VisToolPointOfIntersectionCurves, VisToolInternalPath, VisToolEllipticalArc, VisToolCutSplinePath, VisToolCutSpline, VisToolCutArc, VisToolCubicBezierPath, VisToolCubicBezier, VisToolArcWithLength, VisToolArc, VisPath, PieceAnchorPointVisual, and PatternPieceVisual.
Definition at line 71 of file vcurvepathitem.h.
References Type.
|
private |
Definition at line 81 of file vcurvepathitem.h.
Referenced by paint(), SetDirectionArrows(), and shape().
|
private |
Definition at line 82 of file vcurvepathitem.h.
Referenced by SetPoints(), and shape().