52 #ifndef VABSTRACTMIRROR_H
53 #define VABSTRACTMIRROR_H
57 #include "../vabstractoperation.h"
69 QGraphicsItem *parent =
nullptr);
92 static
void updatePoint(quint32 idTool, quint32 idItem, const QPointF &firstPoint, const QPointF &secondPoint,
95 static
void updateItem(quint32 idTool, quint32 idItem, const QPointF &firstPoint, const QPointF &secondPoint,
98 static
void updateArc(quint32 idTool, quint32 idItem, const QPointF &firstPoint, const QPointF &secondPoint,
100 template <class
Item>
101 static
void updateCurve(quint32 idTool, quint32 idItem, const QPointF &firstPoint, const QPointF &secondPoint,
103 template <class
Item>
113 template <class
Item>
118 Item rotated = i->Flip(QLineF(firstPoint, secondPoint),
suffix);
119 rotated.setIdObject(idTool);
129 template <
class Item>
139 template <
class Item>
141 const QPointF &secondPoint,
const QString &
suffix,
150 template <
class Item>
155 Item rotated = i->Flip(QLineF(firstPoint, secondPoint),
suffix);
156 rotated.setIdObject(idTool);
161 template <
class Item>
165 updateItem<Item>(idTool, idItem, firstPoint, secondPoint,
suffix,
data,
id);
170 template <
class Item>
175 updateItem<Item>(idTool, idItem, firstPoint, secondPoint,
suffix,
data,
id);
static void createDestination(Source typeCreation, quint32 &id, QVector< DestinationItem > &dest, const QVector< SourceItem > &source, const QPointF &fPoint, const QPointF &sPoint, const QString &suffix, VAbstractPattern *doc, VContainer *data, const Document &parse)
static DestinationItem createArc(quint32 idTool, quint32 idItem, const QPointF &firstPoint, const QPointF &secondPoint, const QString &suffix, VContainer *data)
static void updateCurve(quint32 idTool, quint32 idItem, const QPointF &firstPoint, const QPointF &secondPoint, const QString &suffix, VContainer *data, quint32 id)
static void updatePoint(quint32 idTool, quint32 idItem, const QPointF &firstPoint, const QPointF &secondPoint, const QString &suffix, VContainer *data, const DestinationItem &item)
static void updateCurveWithSegments(quint32 idTool, quint32 idItem, const QPointF &firstPoint, const QPointF &secondPoint, const QString &suffix, VContainer *data, quint32 id)
static DestinationItem createPoint(quint32 idTool, quint32 idItem, const QPointF &firstPoint, const QPointF &secondPoint, const QString &suffix, VContainer *data)
static void updateArc(quint32 idTool, quint32 idItem, const QPointF &firstPoint, const QPointF &secondPoint, const QString &suffix, VContainer *data, quint32 id)
static void updateItem(quint32 idTool, quint32 idItem, const QPointF &firstPoint, const QPointF &secondPoint, const QString &suffix, VContainer *data, quint32 id)
virtual ~VAbstractMirror() Q_DECL_EQ_DEFAULT
static DestinationItem createCurveWithSegments(quint32 idTool, quint32 idItem, const QPointF &firstPoint, const QPointF &secondPoint, const QString &suffix, VContainer *data)
static DestinationItem createItem(quint32 idTool, quint32 idItem, const QPointF &firstPoint, const QPointF &secondPoint, const QString &suffix, VContainer *data)
static DestinationItem createCurve(quint32 idTool, quint32 idItem, const QPointF &firstPoint, const QPointF &secondPoint, const QString &suffix, VContainer *data)
QVector< SourceItem > source
QVector< DestinationItem > destination
The VContainer class container of all variables.
const QSharedPointer< T > GeometricObject(const quint32 &id) const
void AddSpline(const QSharedPointer< VAbstractBezier > &curve, quint32 id, quint32 parentId=null_id)
void AddCurveWithSegments(const QSharedPointer< VAbstractCubicBezierPath > &curve, const quint32 &id, quint32 parentId=null_id)
quint32 AddGObject(VGObject *obj)
AddGObject add new GObject to container.
void UpdateGObject(quint32 id, T *obj)
UpdateGObject update GObject by id.