58 #include "../ifc/ifcdef.h"
59 #include "../vpatterndb/vcontainer.h"
60 #include "../vpatterndb/vpiece.h"
61 #include "../vpatterndb/vpiecenode.h"
63 #include "ui_union_dialog.h"
82 , m_beep(new QSound(
qApp->Settings()->getSelectionSound()))
97 return ui->checkBox->isChecked();
145 ui->checkBox->setChecked(
true);
146 ui->checkBox->setEnabled(
false);
177 emit
ToolTip(tr(
"Select the first point"));
182 emit
ToolTip(tr(
"Pattern piece should have at least two points and three objects"));
198 emit
ToolTip(tr(
"Select a second point"));
205 emit
ToolTip(tr(
"Select a unique point"));
218 this->setModal(
true);
227 emit
ToolTip(tr(
"Select a piece"));
233 emit
ToolTip(tr(
"Select a point on edge"));
The UnionDialog class dialog for Union Tool.
qint32 numberP
numberD number of piece, what we already have
virtual ~UnionDialog() Q_DECL_OVERRIDE
virtual void ChosenObject(quint32 id, const SceneObject &type) Q_DECL_OVERRIDE
ChoosedObject gets id and type of selected object. Save correct data and ignore wrong.
void chosenPiece(const quint32 &id, const SceneObject &type, quint32 &pieceId, int &index)
chosenPiece help save information about piece and points on piece
qint32 numberD
d2 id second piece
int piece2_Index
piece1_Index index edge first piece
QSound * m_beep
p2 id second point of piece
quint32 p2
p1 id first point of piece
bool retainPieces() const
bool CheckObject(const quint32 &id, const quint32 &pieceId) const
CheckObject check if piece contains this id.
UnionDialog(const VContainer *data, const quint32 &toolId, QWidget *parent=nullptr)
UnionDialog create dialog.
bool checkPiece(const quint32 &pieceId) const
quint32 d1
piece2_Index index edge second piece
quint32 p1
numberP number of points, what we already have
quint32 d2
d1 id first piece
int piece1_Index
ui keeps information about user interface
The VContainer class container of all variables.
VPiece GetPiece(quint32 id) const
bool Contains(quint32 id) const
qint32 CountNodes() const
int Edge(quint32 p1, quint32 p2) const
Edge return edge index in detail. Edge is line between two points. If between two points located arcs...
bool OnEdge(quint32 p1, quint32 p2) const
OnEdge checks if two poins located on the edge. Edge is line between two points. If between two point...
QVector< VPieceNode > ListNodePoint() const
listNodePoint return list nodes only with points.
VPiecePath GetPath() const