#include <vistoolinternalpath.h>
Public Types | |
enum | { Type = UserType + static_cast<int>(Vis::ToolInternalPath) } |
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 Member Functions | |
VisToolInternalPath (const VContainer *data, QGraphicsItem *parent=nullptr) | |
virtual | ~VisToolInternalPath () Q_DECL_EQ_DEFAULT |
virtual void | RefreshGeometry () Q_DECL_OVERRIDE |
void | SetPath (const VPiecePath &path) |
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 | |
virtual void | mousePressEvent (QGraphicsSceneMouseEvent *event) Q_DECL_OVERRIDE |
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 () |
Private Member Functions | |
VSimplePoint * | GetPoint (quint32 i, const QColor &color) |
void | HideAllItems () |
Private Attributes | |
QVector< VSimplePoint * > | m_points |
VScaledLine * | m_line |
VPiecePath | m_path |
Additional Inherited Members | |
Public Slots inherited from Visualization | |
void | mousePos (const QPointF &scenePos) |
Signals inherited from Visualization | |
void | ToolTip (const QString &toolTip) |
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) |
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 |
Definition at line 63 of file vistoolinternalpath.h.
anonymous enum |
Enumerator | |
---|---|
Type |
Definition at line 73 of file vistoolinternalpath.h.
VisToolInternalPath::VisToolInternalPath | ( | const VContainer * | data, |
QGraphicsItem * | parent = nullptr |
||
) |
Definition at line 60 of file vistoolinternalpath.cpp.
References m_line, and Visualization::supportColor.
|
virtual |
|
private |
Definition at line 114 of file vistoolinternalpath.cpp.
References VisPath::GetPoint(), and m_points.
Referenced by RefreshGeometry().
|
private |
Definition at line 120 of file vistoolinternalpath.cpp.
References m_line, and m_points.
Referenced by RefreshGeometry().
|
protectedvirtual |
Definition at line 108 of file vistoolinternalpath.cpp.
|
virtual |
Implements Visualization.
Definition at line 70 of file vistoolinternalpath.cpp.
References VPiecePath::CountNodes(), Creation, Visualization::data, Visualization::DrawLine(), Visualization::DrawPath(), VPiecePath::GetPenType(), GetPoint(), HideAllItems(), Visualization::lineWeight, m_line, m_path, Visualization::mainColor, Visualization::mode, VPiecePath::PainterPath(), VPiecePath::PathNodePoints(), VPiecePath::PathPoints(), VScenePoint::refreshPointGeometry(), Visualization::scenePos, VSimplePoint::setOnlyPoint(), and Visualization::supportColor.
void VisToolInternalPath::SetPath | ( | const VPiecePath & | path | ) |
Definition at line 102 of file vistoolinternalpath.cpp.
References m_path.
Referenced by DialogInternalPath::SetPiecePath(), and DialogInternalPath::setSeamAllowanceWidthFormula().
|
inlinevirtual |
|
private |
Definition at line 81 of file vistoolinternalpath.h.
Referenced by HideAllItems(), RefreshGeometry(), and VisToolInternalPath().
|
private |
Definition at line 83 of file vistoolinternalpath.h.
Referenced by RefreshGeometry(), and SetPath().
|
private |
Definition at line 79 of file vistoolinternalpath.h.
Referenced by GetPoint(), and HideAllItems().