59 #include <QPushButton>
61 #include "../../visualization/path/vistoolpointofintersectioncurves.h"
62 #include "../../visualization/visualization.h"
63 #include "../vmisc/vabstractapplication.h"
65 #include "ui_dialogpointofintersectioncurves.h"
74 setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
75 setWindowIcon(QIcon(
":/toolicon/32x32/intersection_curves.png"));
77 ui->lineEditNamePoint->setClearButtonEnabled(
true);
121 auto point = qobject_cast<VisToolPointOfIntersectionCurves *>(
vis);
123 point->setObject1Id(value);
137 auto point = qobject_cast<VisToolPointOfIntersectionCurves *>(
vis);
139 point->setObject2Id(value);
145 return getCurrentCrossPoint<VCrossCurvesPoint>(
ui->verticalTake_ComboBox);
151 auto index =
ui->verticalTake_ComboBox->findData(
static_cast<int>(vP));
154 ui->verticalTake_ComboBox->setCurrentIndex(index);
156 auto point = qobject_cast<VisToolPointOfIntersectionCurves *>(
vis);
158 point->setVCrossPoint(vP);
165 return getCurrentCrossPoint<HCrossCurvesPoint>(
ui->horizontalTake_ComboBox);
171 auto index =
ui->horizontalTake_ComboBox->findData(
static_cast<int>(hP));
174 ui->horizontalTake_ComboBox->setCurrentIndex(index);
176 auto point = qobject_cast<VisToolPointOfIntersectionCurves *>(
vis);
178 point->setHCrossPoint(hP);
192 auto point = qobject_cast<VisToolPointOfIntersectionCurves *>(
vis);
198 if (
SetObject(
id,
ui->comboBoxCurve1, tr(
"Select second curve")))
201 point->VisualMode(
id);
210 point->setObject2Id(
id);
211 point->RefreshGeometry();
227 AddVisualization<VisToolPointOfIntersectionCurves>();
235 auto point = qobject_cast<VisToolPointOfIntersectionCurves *>(
vis);
242 point->RefreshGeometry();
void SetVCrossPoint(const VCrossCurvesPoint &vP)
quint32 GetFirstCurveId() const
virtual void ChosenObject(quint32 id, const SceneObject &type) Q_DECL_OVERRIDE
virtual ~DialogPointOfIntersectionCurves() Q_DECL_OVERRIDE
void SetHCrossPoint(const HCrossCurvesPoint &hP)
HCrossCurvesPoint GetHCrossPoint() const
quint32 GetSecondCurveId() const
void SetFirstCurveId(const quint32 &value)
virtual void CheckState() Q_DECL_FINAL
CheckState enable, when all is correct, or disable, when something wrong, button ok.
DialogPointOfIntersectionCurves(const VContainer *data, const quint32 &toolId, QWidget *parent=nullptr)
void SetSecondCurveId(const quint32 &value)
virtual void SaveData() Q_DECL_OVERRIDE
SaveData Put dialog data in local variables.
Ui::DialogPointOfIntersectionCurves * ui
void SetPointName(const QString &value)
VCrossCurvesPoint GetVCrossPoint() const
virtual void ShowVisualization() Q_DECL_OVERRIDE
The VContainer class container of all variables.