#include <vistoolsplinepath.h>
Public Types | |
| enum | { Type = UserType + static_cast<int>(Vis::ToolSplinePath) } |
Public Types inherited from VisPath | |
| enum | { Type = UserType + static_cast<int>(Vis::Path) } |
Public Types inherited from VCurvePathItem | |
| enum | { Type = UserType + static_cast<int>(Vis::CurvePathItem) } |
Public Slots | |
| void | MouseLeftPressed () |
| void | MouseLeftReleased () |
Public Slots inherited from Visualization | |
| void | mousePos (const QPointF &scenePos) |
Signals | |
| void | PathChanged (const VSplinePath &path) |
Signals inherited from Visualization | |
| void | ToolTip (const QString &toolTip) |
Public Member Functions | |
| VisToolSplinePath (const VContainer *data, QGraphicsItem *parent=nullptr) | |
| virtual | ~VisToolSplinePath () |
| virtual void | RefreshGeometry () Q_DECL_OVERRIDE |
| void | setPath (const VSplinePath &value) |
| VSplinePath | getPath () |
| virtual int | type () const Q_DECL_OVERRIDE |
Public Member Functions inherited from VisPath | |
| VisPath (const VContainer *data, QGraphicsItem *parent=nullptr) | |
| virtual | ~VisPath ()=default |
Public Member Functions inherited from Visualization | |
| Visualization (const VContainer *data) | |
| virtual | ~Visualization () Q_DECL_EQ_DEFAULT |
| void | setObject1Id (const quint32 &value) |
| void | setLineStyle (const Qt::PenStyle &value) |
| void | setLineWeight (const QString &value) |
| void | setScenePos (const QPointF &value) |
| virtual void | VisualMode (const quint32 &pointId) |
| void | setMainColor (const QColor &value) |
| const VContainer * | getData () const |
| void | setData (const VContainer *data) |
| Mode | GetMode () const |
| void | SetMode (const Mode &value) |
| QString | CurrentToolTip () const |
Public Member Functions inherited from VCurvePathItem | |
| 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 |
| void | SetDirectionArrows (const QVector< QPair< QLineF, QLineF >> &arrows) |
| void | SetPoints (const QVector< QPointF > &points) |
Protected Member Functions | |
| VScaledEllipse * | getPoint (quint32 i) |
| void | Creating (const QPointF &pSpl, int size) |
Protected Member Functions inherited from VisPath | |
| virtual void | initPen () Q_DECL_OVERRIDE |
| virtual void | AddOnScene () Q_DECL_OVERRIDE |
| VSimplePoint * | GetPoint (QVector< VSimplePoint * > &points, quint32 i, const QColor &color) |
Protected Member Functions inherited from Visualization | |
| VScaledEllipse * | InitPoint (const QColor &color, QGraphicsItem *parent, qreal z=0) 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) |
| 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) |
| void | DrawPath (VCurvePathItem *pathItem, const QPainterPath &path, const QVector< DirectionArrow > &directionArrows, const QColor &color, Qt::PenStyle style=Qt::SolidLine, const qreal &weight=0.35, Qt::PenCapStyle cap=Qt::SquareCap) |
| void | drawArrowedLine (ArrowedLineItem *item, const QLineF &line, const QColor &color, Qt::PenStyle style=Qt::SolidLine) |
| void | drawArrow (const QLineF &axis, QPainterPath &path, const qreal &arrow_size) |
| template<typename Item > | |
| void | addItem (Item *item) |
| template<class Item > | |
| Item * | InitItem (const QColor &color, QGraphicsItem *parent) |
Protected Member Functions inherited from VCurvePathItem | |
| virtual void | ScalePenWidth () |
Protected Attributes | |
| QVector< VScaledEllipse * > | points |
| QVector< VControlPointSpline * > | ctrlPoints |
| VCurvePathItem * | newCurveSegment |
| VSplinePath | path |
| bool | isLeftMousePressed |
| bool | pointIsSelected |
| QPointF | ctrlPoint |
Protected Attributes inherited from Visualization | |
| const VContainer * | data |
| QPointF | scenePos |
| QColor | mainColor |
| QColor | supportColor |
| Qt::PenStyle | lineStyle |
| qreal | lineWeight |
| quint32 | object1Id |
| QString | toolTip |
| Mode | mode |
Additional Inherited Members | |
Static Public Member Functions inherited from Visualization | |
| static qreal | FindLength (const QString &expression, const QHash< QString, QSharedPointer< VInternalVariable > > *vars) |
| static qreal | FindVal (const QString &expression, const QHash< QString, QSharedPointer< VInternalVariable > > *vars) |
Static Protected Member Functions inherited from Visualization | |
| static VScaledEllipse * | GetPointItem (QVector< VScaledEllipse * > &points, quint32 i, const QColor &color, QGraphicsItem *parent) |
Definition at line 70 of file vistoolsplinepath.h.
| anonymous enum |
| Enumerator | |
|---|---|
| Type | |
Definition at line 83 of file vistoolsplinepath.h.
|
explicit |
Definition at line 72 of file vistoolsplinepath.cpp.
References Visualization::mainColor, and newCurveSegment.
|
virtual |
Definition at line 86 of file vistoolsplinepath.cpp.
References Visualization::ToolTip().
|
protected |
Definition at line 219 of file vistoolsplinepath.cpp.
References ctrlPoint, ctrlPoints, defPointRadiusPixel, Visualization::DrawPath(), FirstPoint, VSpline::GetC1Length(), VSpline::GetC1LengthFormula(), VSpline::GetC2Length(), VSpline::GetC2LengthFormula(), VSpline::GetP1(), VSpline::GetP2(), VAbstractCurve::GetPath(), VSplinePath::GetSpline(), VSpline::GetStartAngle(), VSpline::GetStartAngleFormula(), isLeftMousePressed, LastPoint, Visualization::lineWeight, Visualization::mainColor, newCurveSegment, path, PathChanged(), pointIsSelected, and Visualization::scenePos.
Referenced by RefreshGeometry().
| VSplinePath VisToolSplinePath::getPath | ( | ) |
Definition at line 158 of file vistoolsplinepath.cpp.
References path.
|
protected |
Definition at line 183 of file vistoolsplinepath.cpp.
References ctrlPoints, FirstPoint, Visualization::InitPoint(), LastPoint, pointIsSelected, points, and Visualization::supportColor.
Referenced by RefreshGeometry().
|
slot |
Definition at line 164 of file vistoolsplinepath.cpp.
References Creation, isLeftMousePressed, and Visualization::mode.
Referenced by DialogSplinePath::DialogSplinePath().
|
slot |
Definition at line 173 of file vistoolsplinepath.cpp.
References Creation, isLeftMousePressed, Visualization::mode, and RefreshGeometry().
Referenced by DialogSplinePath::DialogSplinePath().
|
signal |
Referenced by DialogSplinePath::ChosenObject(), and Creating().
|
virtual |
Implements Visualization.
Definition at line 92 of file vistoolsplinepath.cpp.
References VSplinePath::CountPoints(), VSplinePath::CountSubSpl(), Creating(), Creation, ctrlPoints, VAbstractCubicBezierPath::DirectionArrows(), Visualization::DrawPath(), Visualization::DrawPoint(), FirstPoint, VSpline::GetP1(), VSpline::GetP2(), VSpline::GetP3(), VSpline::GetP4(), VAbstractCubicBezierPath::GetPath(), getPoint(), VSplinePath::GetSpline(), VSplinePath::GetSplinePath(), LastPoint, Visualization::lineStyle, Visualization::lineWeight, Visualization::mainColor, Visualization::mode, path, Show, Visualization::supportColor, Visualization::ToolTip(), and Visualization::toolTip.
Referenced by MouseLeftReleased(), and VToolSplinePath::SetVisualization().
| void VisToolSplinePath::setPath | ( | const VSplinePath & | value | ) |
Definition at line 151 of file vistoolsplinepath.cpp.
References path.
Referenced by VToolSplinePath::SetVisualization().
|
inlinevirtual |
|
protected |
Definition at line 101 of file vistoolsplinepath.h.
Referenced by Creating().
|
protected |
Definition at line 94 of file vistoolsplinepath.h.
Referenced by Creating(), getPoint(), and RefreshGeometry().
|
protected |
Definition at line 98 of file vistoolsplinepath.h.
Referenced by Creating(), MouseLeftPressed(), and MouseLeftReleased().
|
protected |
Definition at line 95 of file vistoolsplinepath.h.
Referenced by Creating(), and VisToolSplinePath().
|
protected |
Definition at line 96 of file vistoolsplinepath.h.
Referenced by Creating(), getPath(), RefreshGeometry(), and setPath().
|
protected |
Definition at line 99 of file vistoolsplinepath.h.
Referenced by Creating(), and getPoint().
|
protected |
Definition at line 93 of file vistoolsplinepath.h.
Referenced by getPoint().