1 /************************************************************************ 2 ** 3 ** @file vistoolpointofintersectioncurves.h 4 ** @author Roman Telezhynskyi <dismine(at)gmail.com> 5 ** @date 24 1, 2016 6 ** 7 ** @brief 8 ** @copyright 9 ** This source code is part of the Valentina project, a pattern making 10 ** program, whose allow create and modeling patterns of clothing. 11 ** Copyright (C) 2016 Valentina project 12 ** <https://gitlab.com/smart-pattern/valentina> All Rights Reserved. 13 ** 14 ** Valentina is free software: you can redistribute it and/or modify 15 ** it under the terms of the GNU General Public License as published by 16 ** the Free Software Foundation, either version 3 of the License, or 17 ** (at your option) any later version. 18 ** 19 ** Valentina is distributed in the hope that it will be useful, 20 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 21 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 ** GNU General Public License for more details. 23 ** 24 ** You should have received a copy of the GNU General Public License 25 ** along with Valentina. If not, see <http://www.gnu.org/licenses/>. 26 ** 27 *************************************************************************/ 28 29 #ifndef VISTOOLPOINTOFINTERSECTIONCURVES_H 30 #define VISTOOLPOINTOFINTERSECTIONCURVES_H 31 32 #include <qcompilerdetection.h> 33 #include <QGraphicsItem> 34 #include <QMetaObject> 35 #include <QObject> 36 #include <QString> 37 #include <QtGlobal> 38 39 #include "../ifc/xml/vabstractpattern.h" 40 #include "../vmisc/def.h" 41 #include "vispath.h" 42 43 class VisToolPointOfIntersectionCurves : public VisPath 44 { 45 Q_OBJECT 46 public: 47 explicit VisToolPointOfIntersectionCurves(const VContainer *data, QGraphicsItem *parent = nullptr); 48 virtual ~VisToolPointOfIntersectionCurves() Q_DECL_EQ_DEFAULT; 49 50 virtual void RefreshGeometry() override; 51 virtual void VisualMode(const quint32 &id) override; 52 53 void setObject2Id(const quint32 &value); 54 void setVCrossPoint(const VCrossCurvesPoint &value); 55 void setHCrossPoint(const HCrossCurvesPoint &value); 56 type()57 virtual int type() const override {return Type;} 58 enum { Type = UserType + static_cast<int>(Vis::ToolPointOfIntersectionCurves)}; 59 private: 60 Q_DISABLE_COPY(VisToolPointOfIntersectionCurves) 61 quint32 object2Id; 62 VCrossCurvesPoint vCrossPoint; 63 HCrossCurvesPoint hCrossPoint; 64 VScaledEllipse *point; 65 VCurvePathItem *visCurve2; 66 67 }; 68 69 #endif // VISTOOLPOINTOFINTERSECTIONCURVES_H 70