54 #include "../vpatterndb/vpiecepath.h"
55 #include "../vgeometry/vpointf.h"
56 #include "../vwidgets/scalesceneitems.h"
81 for (
int i = 0; i < nodes.size(); ++i)
84 point->setBrush(QBrush(
mainColor, Qt::SolidPattern));
115 for (
int i=0; i <
m_points.size(); ++i)
117 if (QGraphicsEllipseItem *item =
m_points.at(i))
119 item->setVisible(
false);
virtual void RefreshGeometry() Q_DECL_OVERRIDE
void SetPiece(const VPiece &piece)
QVector< VScaledEllipse * > m_points
VScaledEllipse * GetPoint(quint32 i, const QColor &color)
PatternPieceVisual(const VContainer *data, QGraphicsItem *parent=nullptr)
The VContainer class container of all variables.
qint32 CountNodes() const
QPainterPath MainPathPath(const VContainer *data) const
QVector< VPointF > MainPathNodePoints(const VContainer *data, bool showExcluded=false) const
VPiecePath GetPath() const
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)
static VScaledEllipse * GetPointItem(QVector< VScaledEllipse * > &points, quint32 i, const QColor &color, QGraphicsItem *parent)