29 #include "../vwidgets/vsimplepoint.h"
30 #include "../vgeometry/vpointf.h"
31 #include "../vpatterndb/vcontainer.h"
46 for (
int i = 0; i <
m_anchors.size(); ++i)
52 point->setVisible(
true);
71 for (
int i=0; i <
m_points.size(); ++i)
73 if (QGraphicsEllipseItem *item =
m_points.at(i))
75 item->setVisible(
false);
virtual void RefreshGeometry() Q_DECL_OVERRIDE
void setAnchors(const QVector< quint32 > &anchors)
QVector< VSimplePoint * > m_points
PieceAnchorPointVisual(const VContainer *data, QGraphicsItem *parent=nullptr)
QVector< quint32 > m_anchors
VSimplePoint * GetPoint(quint32 i, const QColor &color)
The VContainer class container of all variables.
const QSharedPointer< T > GeometricObject(const quint32 &id) const
The VPointF class keep data of point.
virtual void refreshPointGeometry(const VPointF &point)
void setOnlyPoint(bool value)
VSimplePoint * GetPoint(QVector< VSimplePoint * > &points, quint32 i, const QColor &color)