Seamly2D
Code documentation
union_tool.cpp File Reference
#include "union_tool.h"
#include <QByteArray>
#include <QDomNodeList>
#include <QFileInfo>
#include <QHash>
#include <QLineF>
#include <QMessageLogger>
#include <QSharedPointer>
#include <QStaticStringData>
#include <QStringData>
#include <QStringDataPtr>
#include <QUndoStack>
#include <QtDebug>
#include <new>
#include "pattern_piece_tool.h"
#include "vdatatool.h"
#include "vnodedetail.h"
#include "nodeDetails/anchorpoint_tool.h"
#include "nodeDetails/vnodearc.h"
#include "nodeDetails/vnodeellipticalarc.h"
#include "nodeDetails/vnodepoint.h"
#include "nodeDetails/vnodespline.h"
#include "nodeDetails/vnodesplinepath.h"
#include "nodeDetails/vtoolinternalpath.h"
#include "../dialogs/tools/dialogtool.h"
#include "../dialogs/tools/union_dialog.h"
#include "../ifc/xml/vabstractconverter.h"
#include "../ifc/xml/vdomdocument.h"
#include "../ifc/xml/vlabeltemplateconverter.h"
#include "../ifc/xml/vpatternconverter.h"
#include "../vformat/vlabeltemplate.h"
#include "../vgeometry/varc.h"
#include "../vgeometry/vellipticalarc.h"
#include "../vgeometry/vsplinepath.h"
#include "../vgeometry/vabstractcubicbezier.h"
#include "../vgeometry/vabstractcubicbezierpath.h"
#include "../vgeometry/vgeometrydef.h"
#include "../vgeometry/vpointf.h"
#include "../vgeometry/vspline.h"
#include "../vgeometry/vsplinepoint.h"
#include "../vmisc/vcommonsettings.h"
#include "../vmisc/diagnostic.h"
#include "../vmisc/logging.h"
#include "../vmisc/vabstractapplication.h"
#include "../vpatterndb/vcontainer.h"
#include "../vpatterndb/vpiecepath.h"
#include "../vpatterndb/vpiecenode.h"
#include "../vpatterndb/floatItemData/vgrainlinedata.h"
#include "../vpatterndb/floatItemData/vpatternlabeldata.h"
#include "../vpatterndb/floatItemData/vpiecelabeldata.h"

Go to the source code of this file.

Namespaces

 QT_WARNING_POP
 

Functions

VPiecePath QT_WARNING_POP::GetPiecePath (int piece, VAbstractPattern *doc, quint32 id)
 
VPiecePath QT_WARNING_POP::GetPiece1MainPath (VAbstractPattern *doc, quint32 id)
 
VPiecePath QT_WARNING_POP::GetPiece2MainPath (VAbstractPattern *doc, quint32 id)
 
QVector< CustomSARecordQT_WARNING_POP::GetPiece2CSAPaths (VAbstractPattern *doc, quint32 id)
 
QVector< quint32 > QT_WARNING_POP::GetPiece2InternalPaths (VAbstractPattern *doc, quint32 id)
 
QVector< quint32 > QT_WARNING_POP::GetPiece2Anchors (VAbstractPattern *doc, quint32 id)
 
QString QT_WARNING_POP::getBlockName (VAbstractPattern *doc, quint32 piece1_Id, quint32 piece2_Id)
 
void QT_WARNING_POP::BiasRotatePoint (VPointF *point, qreal dx, qreal dy, const QPointF &pRotate, qreal angle)
 BiasRotatePoint bias and rotate point. More...
 
void QT_WARNING_POP::PointsOnEdge (const VPiecePath &path, quint32 index, VPointF &p1, VPointF &p2, VContainer *data)
 
void QT_WARNING_POP::UnionInitParameters (const UnionToolInitData &initData, const VPiecePath &piece1Path, const VPiecePath &piece2Path, VPieceNode &piece1_Pt1, qreal &dx, qreal &dy, qreal &angle)
 
quint32 QT_WARNING_POP::AddNodePoint (const VPieceNode &node, const UnionToolInitData &initData, quint32 idTool, QVector< quint32 > &children, const QString &blockName, qreal dx, qreal dy, quint32 pRotate, qreal angle)
 
quint32 QT_WARNING_POP::AddAnchorPoint (quint32 id, const UnionToolInitData &initData, quint32 idTool, QVector< quint32 > &children, const QString &blockName, qreal dx, qreal dy, quint32 pRotate, qreal angle)
 
quint32 QT_WARNING_POP::AddNodeArc (const VPieceNode &node, const UnionToolInitData &initData, quint32 idTool, QVector< quint32 > &children, const QString &blockName, qreal dx, qreal dy, quint32 pRotate, qreal angle)
 
quint32 QT_WARNING_POP::AddNodeElArc (const VPieceNode &node, const UnionToolInitData &initData, quint32 idTool, QVector< quint32 > &children, const QString &blockName, qreal dx, qreal dy, quint32 pRotate, qreal angle)
 
quint32 QT_WARNING_POP::AddNodeSpline (const VPieceNode &node, const UnionToolInitData &initData, quint32 idTool, QVector< quint32 > &children, const QString &blockName, qreal dx, qreal dy, quint32 pRotate, qreal angle)
 
quint32 QT_WARNING_POP::AddNodeSplinePath (const VPieceNode &node, const UnionToolInitData &initData, quint32 idTool, QVector< quint32 > &children, const QString &blockName, qreal dx, qreal dy, quint32 pRotate, qreal angle)
 
void QT_WARNING_POP::AddNodeToNewPath (const UnionToolInitData &initData, VPiecePath &newPath, VPieceNode node, quint32 idTool, QVector< quint32 > &children, const QString &blockName, qreal dx=0, qreal dy=0, quint32 pRotate=NULL_ID, qreal angle=0)
 AddNodeToNewPath create union adding one node at a time. More...
 
void QT_WARNING_POP::FindIndexJ (qint32 piece2Points, const VPiecePath &piece2Path, quint32 piece2_Index, qint32 &j)
 
QDomElement QT_WARNING_POP::GetTagChildren (VAbstractPattern *doc, quint32 id)
 
void QT_WARNING_POP::SaveChildren (VAbstractPattern *doc, quint32 id, QDomElement section, const QVector< quint32 > &children)
 
void QT_WARNING_POP::SaveNodesChildren (VAbstractPattern *doc, quint32 id, const QVector< quint32 > &children)
 
void QT_WARNING_POP::SaveCSAChildren (VAbstractPattern *doc, quint32 id, const QVector< quint32 > &children)
 
void QT_WARNING_POP::SaveInternalPathsChildren (VAbstractPattern *doc, quint32 id, const QVector< quint32 > &children)
 
void QT_WARNING_POP::SaveAnchorsChildren (VAbstractPattern *doc, quint32 id, const QVector< quint32 > &children)
 
QVector< quint32 > QT_WARNING_POP::GetChildren (VAbstractPattern *doc, quint32 id, const QString &tagName)
 
QVector< quint32 > QT_WARNING_POP::GetNodesChildren (VAbstractPattern *doc, quint32 id)
 
QVector< quint32 > QT_WARNING_POP::GetCSAChildren (VAbstractPattern *doc, quint32 id)
 
QVector< quint32 > QT_WARNING_POP::GetInternalPathsChildren (VAbstractPattern *doc, quint32 id)
 
QVector< quint32 > QT_WARNING_POP::getAnchorChildren (VAbstractPattern *doc, quint32 id)
 
quint32 QT_WARNING_POP::TakeNextId (QVector< quint32 > &children)
 
void QT_WARNING_POP::UpdateNodePoint (VContainer *data, const VPieceNode &node, QVector< quint32 > &children, qreal dx, qreal dy, quint32 pRotate, qreal angle)
 
void QT_WARNING_POP::UpdateNodeArc (VContainer *data, const VPieceNode &node, QVector< quint32 > &children, qreal dx, qreal dy, quint32 pRotate, qreal angle)
 
void QT_WARNING_POP::UpdateNodeElArc (VContainer *data, const VPieceNode &node, QVector< quint32 > &children, qreal dx, qreal dy, quint32 pRotate, qreal angle)
 
void QT_WARNING_POP::UpdateNodeSpline (VContainer *data, const VPieceNode &node, QVector< quint32 > &children, qreal dx, qreal dy, quint32 pRotate, qreal angle)
 
void QT_WARNING_POP::UpdateNodeSplinePath (VContainer *data, const VPieceNode &node, QVector< quint32 > &children, qreal dx, qreal dy, quint32 pRotate, qreal angle)
 
void QT_WARNING_POP::UpdatePathNode (VContainer *data, const VPieceNode &node, QVector< quint32 > &children, qreal dx=0, qreal dy=0, quint32 pRotate=NULL_ID, qreal angle=0)
 UpdateNodes update nodes of union. More...
 
void QT_WARNING_POP::CreateUnitedNodes (VPiece &newPiece, const VPiece &piece1, const VPiece &piece2, quint32 id, const QString &blockName, const UnionToolInitData &initData, qreal dx, qreal dy, quint32 pRotate, qreal angle)
 
void QT_WARNING_POP::createCSAUnion (VPiece &newPiece, const VPiece &d, QVector< quint32 > &children, quint32 id, const QString &blockName, const UnionToolInitData &initData, qreal dx, qreal dy, quint32 pRotate, qreal angle)
 
void QT_WARNING_POP::CreateUnitedCSA (VPiece &newPiece, const VPiece &piece1, const VPiece &piece2, quint32 id, const QString &blockName, const UnionToolInitData &initData, qreal dx, qreal dy, quint32 pRotate, qreal angle)
 
void QT_WARNING_POP::createUnionInternalPaths (VPiece &newPiece, const VPiece &d, QVector< quint32 > &children, quint32 id, const QString &blockName, const UnionToolInitData &initData, qreal dx, qreal dy, quint32 pRotate, qreal angle)
 
void QT_WARNING_POP::CreateUnitedInternalPaths (VPiece &newPiece, const VPiece &piece1, const VPiece &piece2, quint32 id, const QString &blockName, const UnionToolInitData &initData, qreal dx, qreal dy, quint32 pRotate, qreal angle)
 
void QT_WARNING_POP::createUnionAnchors (VPiece &newPiece, const VPiece &d, QVector< quint32 > &children, quint32 idTool, const QString &blockName, const UnionToolInitData &initData, qreal dx, qreal dy, quint32 pRotate, qreal angle)
 
void QT_WARNING_POP::createUnitedAnchors (VPiece &newPiece, const VPiece &piece1, const VPiece &piece2, quint32 id, const QString &blockName, const UnionToolInitData &initData, qreal dx, qreal dy, quint32 pRotate, qreal angle)
 
void QT_WARNING_POP::UpdateUnitedNodes (quint32 id, const UnionToolInitData &initData, qreal dx, qreal dy, quint32 pRotate, qreal angle)
 
void QT_WARNING_POP::createUnionPaths (const UnionToolInitData &initData, qreal dx, qreal dy, quint32 pRotate, qreal angle, const QVector< quint32 > &records, QVector< quint32 > children)
 
void QT_WARNING_POP::updateUnionCSA (quint32 id, const UnionToolInitData &initData, qreal dx, qreal dy, quint32 pRotate, qreal angle, const QVector< CustomSARecord > &records)
 
void QT_WARNING_POP::updateUnionInternalPaths (quint32 id, const UnionToolInitData &initData, qreal dx, qreal dy, quint32 pRotate, qreal angle, const QVector< quint32 > &records)
 
void QT_WARNING_POP::updateUnionAnchors (quint32 id, const UnionToolInitData &initData, qreal dx, qreal dy, quint32 pRotate, qreal angle, const QVector< quint32 > &records)
 
void QT_WARNING_POP::createUnion (quint32 id, const UnionToolInitData &initData, qreal dx, qreal dy, quint32 pRotate, qreal angle)
 
void QT_WARNING_POP::updateUnion (quint32 id, const UnionToolInitData &initData, qreal dx, qreal dy, quint32 pRotate, qreal angle)
 
void QT_WARNING_POP::unitePieces (quint32 id, const UnionToolInitData &initData)