Seamly2D
Code documentation
QT_WARNING_POP Namespace Reference

Functions

VPiecePath GetPiecePath (int piece, VAbstractPattern *doc, quint32 id)
 
VPiecePath GetPiece1MainPath (VAbstractPattern *doc, quint32 id)
 
VPiecePath GetPiece2MainPath (VAbstractPattern *doc, quint32 id)
 
QVector< CustomSARecordGetPiece2CSAPaths (VAbstractPattern *doc, quint32 id)
 
QVector< quint32 > GetPiece2InternalPaths (VAbstractPattern *doc, quint32 id)
 
QVector< quint32 > GetPiece2Anchors (VAbstractPattern *doc, quint32 id)
 
QString getBlockName (VAbstractPattern *doc, quint32 piece1_Id, quint32 piece2_Id)
 
void BiasRotatePoint (VPointF *point, qreal dx, qreal dy, const QPointF &pRotate, qreal angle)
 BiasRotatePoint bias and rotate point. More...
 
void PointsOnEdge (const VPiecePath &path, quint32 index, VPointF &p1, VPointF &p2, VContainer *data)
 
void UnionInitParameters (const UnionToolInitData &initData, const VPiecePath &piece1Path, const VPiecePath &piece2Path, VPieceNode &piece1_Pt1, qreal &dx, qreal &dy, qreal &angle)
 
quint32 AddNodePoint (const VPieceNode &node, const UnionToolInitData &initData, quint32 idTool, QVector< quint32 > &children, const QString &blockName, qreal dx, qreal dy, quint32 pRotate, qreal angle)
 
quint32 AddAnchorPoint (quint32 id, const UnionToolInitData &initData, quint32 idTool, QVector< quint32 > &children, const QString &blockName, qreal dx, qreal dy, quint32 pRotate, qreal angle)
 
quint32 AddNodeArc (const VPieceNode &node, const UnionToolInitData &initData, quint32 idTool, QVector< quint32 > &children, const QString &blockName, qreal dx, qreal dy, quint32 pRotate, qreal angle)
 
quint32 AddNodeElArc (const VPieceNode &node, const UnionToolInitData &initData, quint32 idTool, QVector< quint32 > &children, const QString &blockName, qreal dx, qreal dy, quint32 pRotate, qreal angle)
 
quint32 AddNodeSpline (const VPieceNode &node, const UnionToolInitData &initData, quint32 idTool, QVector< quint32 > &children, const QString &blockName, qreal dx, qreal dy, quint32 pRotate, qreal angle)
 
quint32 AddNodeSplinePath (const VPieceNode &node, const UnionToolInitData &initData, quint32 idTool, QVector< quint32 > &children, const QString &blockName, qreal dx, qreal dy, quint32 pRotate, qreal angle)
 
void 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 FindIndexJ (qint32 piece2Points, const VPiecePath &piece2Path, quint32 piece2_Index, qint32 &j)
 
QDomElement GetTagChildren (VAbstractPattern *doc, quint32 id)
 
void SaveChildren (VAbstractPattern *doc, quint32 id, QDomElement section, const QVector< quint32 > &children)
 
void SaveNodesChildren (VAbstractPattern *doc, quint32 id, const QVector< quint32 > &children)
 
void SaveCSAChildren (VAbstractPattern *doc, quint32 id, const QVector< quint32 > &children)
 
void SaveInternalPathsChildren (VAbstractPattern *doc, quint32 id, const QVector< quint32 > &children)
 
void SaveAnchorsChildren (VAbstractPattern *doc, quint32 id, const QVector< quint32 > &children)
 
QVector< quint32 > GetChildren (VAbstractPattern *doc, quint32 id, const QString &tagName)
 
QVector< quint32 > GetNodesChildren (VAbstractPattern *doc, quint32 id)
 
QVector< quint32 > GetCSAChildren (VAbstractPattern *doc, quint32 id)
 
QVector< quint32 > GetInternalPathsChildren (VAbstractPattern *doc, quint32 id)
 
QVector< quint32 > getAnchorChildren (VAbstractPattern *doc, quint32 id)
 
quint32 TakeNextId (QVector< quint32 > &children)
 
void UpdateNodePoint (VContainer *data, const VPieceNode &node, QVector< quint32 > &children, qreal dx, qreal dy, quint32 pRotate, qreal angle)
 
void UpdateNodeArc (VContainer *data, const VPieceNode &node, QVector< quint32 > &children, qreal dx, qreal dy, quint32 pRotate, qreal angle)
 
void UpdateNodeElArc (VContainer *data, const VPieceNode &node, QVector< quint32 > &children, qreal dx, qreal dy, quint32 pRotate, qreal angle)
 
void UpdateNodeSpline (VContainer *data, const VPieceNode &node, QVector< quint32 > &children, qreal dx, qreal dy, quint32 pRotate, qreal angle)
 
void UpdateNodeSplinePath (VContainer *data, const VPieceNode &node, QVector< quint32 > &children, qreal dx, qreal dy, quint32 pRotate, qreal angle)
 
void 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 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 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 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 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 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 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 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 UpdateUnitedNodes (quint32 id, const UnionToolInitData &initData, qreal dx, qreal dy, quint32 pRotate, qreal angle)
 
void createUnionPaths (const UnionToolInitData &initData, qreal dx, qreal dy, quint32 pRotate, qreal angle, const QVector< quint32 > &records, QVector< quint32 > children)
 
void updateUnionCSA (quint32 id, const UnionToolInitData &initData, qreal dx, qreal dy, quint32 pRotate, qreal angle, const QVector< CustomSARecord > &records)
 
void updateUnionInternalPaths (quint32 id, const UnionToolInitData &initData, qreal dx, qreal dy, quint32 pRotate, qreal angle, const QVector< quint32 > &records)
 
void updateUnionAnchors (quint32 id, const UnionToolInitData &initData, qreal dx, qreal dy, quint32 pRotate, qreal angle, const QVector< quint32 > &records)
 
void createUnion (quint32 id, const UnionToolInitData &initData, qreal dx, qreal dy, quint32 pRotate, qreal angle)
 
void updateUnion (quint32 id, const UnionToolInitData &initData, qreal dx, qreal dy, quint32 pRotate, qreal angle)
 
void unitePieces (quint32 id, const UnionToolInitData &initData)
 

Function Documentation

◆ AddAnchorPoint()

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 
)

◆ AddNodeArc()

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 
)

◆ AddNodeElArc()

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 
)

◆ AddNodePoint()

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 
)

◆ AddNodeSpline()

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 
)

◆ AddNodeSplinePath()

◆ AddNodeToNewPath()

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 
)

◆ BiasRotatePoint()

void QT_WARNING_POP::BiasRotatePoint ( VPointF point,
qreal  dx,
qreal  dy,
const QPointF &  pRotate,
qreal  angle 
)

BiasRotatePoint bias and rotate point.

Parameters
pointpoint.
dxbias x axis.
dybias y axis.
pRotatepoint rotation.
angleangle rotation.

Definition at line 341 of file union_tool.cpp.

References VPointF::setX(), VPointF::setY(), VPointF::x(), and VPointF::y().

Referenced by AddAnchorPoint(), AddNodeArc(), AddNodeElArc(), AddNodePoint(), AddNodeSpline(), AddNodeSplinePath(), UpdateNodeArc(), UpdateNodeElArc(), UpdateNodePoint(), UpdateNodeSpline(), UpdateNodeSplinePath(), and updateUnionAnchors().

◆ createCSAUnion()

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 
)

◆ createUnion()

void QT_WARNING_POP::createUnion ( quint32  id,
const UnionToolInitData initData,
qreal  dx,
qreal  dy,
quint32  pRotate,
qreal  angle 
)

◆ createUnionAnchors()

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 
)

Definition at line 1136 of file union_tool.cpp.

References AddAnchorPoint(), and VPiece::getAnchors().

Referenced by createUnitedAnchors().

◆ createUnionInternalPaths()

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 
)

◆ createUnionPaths()

void QT_WARNING_POP::createUnionPaths ( const UnionToolInitData initData,
qreal  dx,
qreal  dy,
quint32  pRotate,
qreal  angle,
const QVector< quint32 > &  records,
QVector< quint32 >  children 
)

◆ createUnitedAnchors()

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 
)

◆ CreateUnitedCSA()

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 
)

◆ CreateUnitedInternalPaths()

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 
)

◆ CreateUnitedNodes()

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 
)

◆ FindIndexJ()

void QT_WARNING_POP::FindIndexJ ( qint32  piece2Points,
const VPiecePath piece2Path,
quint32  piece2_Index,
qint32 &  j 
)

◆ getAnchorChildren()

QVector<quint32> QT_WARNING_POP::getAnchorChildren ( VAbstractPattern doc,
quint32  id 
)

Definition at line 801 of file union_tool.cpp.

References GetChildren(), and PatternPieceTool::TagAnchors.

Referenced by updateUnionAnchors().

◆ getBlockName()

QString QT_WARNING_POP::getBlockName ( VAbstractPattern doc,
quint32  piece1_Id,
quint32  piece2_Id 
)

◆ GetChildren()

QVector<quint32> QT_WARNING_POP::GetChildren ( VAbstractPattern doc,
quint32  id,
const QString &  tagName 
)

◆ GetCSAChildren()

QVector<quint32> QT_WARNING_POP::GetCSAChildren ( VAbstractPattern doc,
quint32  id 
)

Definition at line 789 of file union_tool.cpp.

References GetChildren(), and PatternPieceTool::TagCSA.

Referenced by updateUnionCSA().

◆ GetInternalPathsChildren()

QVector<quint32> QT_WARNING_POP::GetInternalPathsChildren ( VAbstractPattern doc,
quint32  id 
)

Definition at line 795 of file union_tool.cpp.

References GetChildren(), and PatternPieceTool::TagIPaths.

Referenced by updateUnionInternalPaths().

◆ GetNodesChildren()

QVector<quint32> QT_WARNING_POP::GetNodesChildren ( VAbstractPattern doc,
quint32  id 
)

Definition at line 783 of file union_tool.cpp.

References GetChildren(), and VAbstractPattern::TagNodes.

Referenced by UpdateUnitedNodes().

◆ GetPiece1MainPath()

VPiecePath QT_WARNING_POP::GetPiece1MainPath ( VAbstractPattern doc,
quint32  id 
)

Definition at line 160 of file union_tool.cpp.

References GetPiecePath().

Referenced by unitePieces(), and UpdateUnitedNodes().

◆ GetPiece2Anchors()

QVector<quint32> QT_WARNING_POP::GetPiece2Anchors ( VAbstractPattern doc,
quint32  id 
)

◆ GetPiece2CSAPaths()

◆ GetPiece2InternalPaths()

QVector<quint32> QT_WARNING_POP::GetPiece2InternalPaths ( VAbstractPattern doc,
quint32  id 
)

◆ GetPiece2MainPath()

VPiecePath QT_WARNING_POP::GetPiece2MainPath ( VAbstractPattern doc,
quint32  id 
)

Definition at line 166 of file union_tool.cpp.

References GetPiecePath().

Referenced by unitePieces(), and UpdateUnitedNodes().

◆ GetPiecePath()

◆ GetTagChildren()

QDomElement QT_WARNING_POP::GetTagChildren ( VAbstractPattern doc,
quint32  id 
)

◆ PointsOnEdge()

void QT_WARNING_POP::PointsOnEdge ( const VPiecePath path,
quint32  index,
VPointF p1,
VPointF p2,
VContainer data 
)

◆ SaveAnchorsChildren()

void QT_WARNING_POP::SaveAnchorsChildren ( VAbstractPattern doc,
quint32  id,
const QVector< quint32 > &  children 
)

Definition at line 743 of file union_tool.cpp.

References SaveChildren(), and PatternPieceTool::TagAnchors.

Referenced by createUnitedAnchors().

◆ SaveChildren()

void QT_WARNING_POP::SaveChildren ( VAbstractPattern doc,
quint32  id,
QDomElement  section,
const QVector< quint32 > &  children 
)

◆ SaveCSAChildren()

void QT_WARNING_POP::SaveCSAChildren ( VAbstractPattern doc,
quint32  id,
const QVector< quint32 > &  children 
)

Definition at line 731 of file union_tool.cpp.

References SaveChildren(), and PatternPieceTool::TagCSA.

Referenced by CreateUnitedCSA().

◆ SaveInternalPathsChildren()

void QT_WARNING_POP::SaveInternalPathsChildren ( VAbstractPattern doc,
quint32  id,
const QVector< quint32 > &  children 
)

Definition at line 737 of file union_tool.cpp.

References SaveChildren(), and PatternPieceTool::TagIPaths.

Referenced by CreateUnitedInternalPaths().

◆ SaveNodesChildren()

void QT_WARNING_POP::SaveNodesChildren ( VAbstractPattern doc,
quint32  id,
const QVector< quint32 > &  children 
)

Definition at line 725 of file union_tool.cpp.

References SaveChildren(), and VAbstractPattern::TagNodes.

Referenced by CreateUnitedNodes().

◆ TakeNextId()

quint32 QT_WARNING_POP::TakeNextId ( QVector< quint32 > &  children)

◆ UnionInitParameters()

void QT_WARNING_POP::UnionInitParameters ( const UnionToolInitData initData,
const VPiecePath piece1Path,
const VPiecePath piece2Path,
VPieceNode piece1_Pt1,
qreal &  dx,
qreal &  dy,
qreal &  angle 
)

◆ unitePieces()

◆ UpdateNodeArc()

void QT_WARNING_POP::UpdateNodeArc ( VContainer data,
const VPieceNode node,
QVector< quint32 > &  children,
qreal  dx,
qreal  dy,
quint32  pRotate,
qreal  angle 
)

◆ UpdateNodeElArc()

void QT_WARNING_POP::UpdateNodeElArc ( VContainer data,
const VPieceNode node,
QVector< quint32 > &  children,
qreal  dx,
qreal  dy,
quint32  pRotate,
qreal  angle 
)

◆ UpdateNodePoint()

void QT_WARNING_POP::UpdateNodePoint ( VContainer data,
const VPieceNode node,
QVector< quint32 > &  children,
qreal  dx,
qreal  dy,
quint32  pRotate,
qreal  angle 
)

◆ UpdateNodeSpline()

void QT_WARNING_POP::UpdateNodeSpline ( VContainer data,
const VPieceNode node,
QVector< quint32 > &  children,
qreal  dx,
qreal  dy,
quint32  pRotate,
qreal  angle 
)

◆ UpdateNodeSplinePath()

◆ UpdatePathNode()

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.

Parameters
datacontainer with variables.
nodepiece's node.
childrenlist ids of all children.
dxbias node x axis.
dybias node y axis.
pRotatepoint rotation.
angleangle rotation.

Definition at line 986 of file union_tool.cpp.

References VPieceNode::GetTypeTool(), NodeArc, NodeElArc, NodePoint, NodeSpline, NodeSplinePath, UpdateNodeArc(), UpdateNodeElArc(), UpdateNodePoint(), UpdateNodeSpline(), and UpdateNodeSplinePath().

Referenced by createUnionPaths(), and UpdateUnitedNodes().

◆ updateUnion()

void QT_WARNING_POP::updateUnion ( quint32  id,
const UnionToolInitData initData,
qreal  dx,
qreal  dy,
quint32  pRotate,
qreal  angle 
)

◆ updateUnionAnchors()

void QT_WARNING_POP::updateUnionAnchors ( quint32  id,
const UnionToolInitData initData,
qreal  dx,
qreal  dy,
quint32  pRotate,
qreal  angle,
const QVector< quint32 > &  records 
)

◆ updateUnionCSA()

void QT_WARNING_POP::updateUnionCSA ( quint32  id,
const UnionToolInitData initData,
qreal  dx,
qreal  dy,
quint32  pRotate,
qreal  angle,
const QVector< CustomSARecord > &  records 
)

Definition at line 1265 of file union_tool.cpp.

References createUnionPaths(), UnionToolInitData::doc, and GetCSAChildren().

Referenced by updateUnion().

◆ updateUnionInternalPaths()

void QT_WARNING_POP::updateUnionInternalPaths ( quint32  id,
const UnionToolInitData initData,
qreal  dx,
qreal  dy,
quint32  pRotate,
qreal  angle,
const QVector< quint32 > &  records 
)

Definition at line 1277 of file union_tool.cpp.

References createUnionPaths(), UnionToolInitData::doc, and GetInternalPathsChildren().

Referenced by updateUnion().

◆ UpdateUnitedNodes()