Version: 9.16.0
CurveCreator_UtilsICurve.hxx
Go to the documentation of this file.
1// Copyright (C) 2013-2026 CEA, EDF, OPEN CASCADE
2//
3// This library is free software; you can redistribute it and/or
4// modify it under the terms of the GNU Lesser General Public
5// License as published by the Free Software Foundation; either
6// version 2.1 of the License, or (at your option) any later version.
7//
8// This library is distributed in the hope that it will be useful,
9// but WITHOUT ANY WARRANTY; without even the implied warranty of
10// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11// Lesser General Public License for more details.
12//
13// You should have received a copy of the GNU Lesser General Public
14// License along with this library; if not, write to the Free Software
15// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16//
17// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18//
19
20#ifndef CURVECREATOR_UTILS_ICURVE_H
21#define CURVECREATOR_UTILS_ICURVE_H
22
24
26
27#include <gp_Pnt.hxx>
28
29#include <QMap>
30#include <QList>
31
33{
34public:
35
42 int theSectionId, double theX, double theY );
43
45 const double theX, const double theY,
48 QMap<int, QList<int> >& theConvPoints );
49
50 CURVECREATOR_EXPORT static void getPoint( const CurveCreator_ICurve* theCurve, const int theISection,
51 const int theIPoint, gp_Pnt& thePoint );
52
57 CURVECREATOR_EXPORT static std::string getUniqSectionName(
58 CurveCreator_ICurve* theCurve );
59
67};
68
69#endif // CURVECREATOR_UTILS_ICURVE_H
#define CURVECREATOR_EXPORT
Definition: CurveCreator_Macro.hxx:41
The CurveCreator_ICurve object is represented as one or more sets of connected points; thus CurveCrea...
Definition: CurveCreator_ICurve.hxx:73
std::deque< SectionToPoint > SectionToPointList
Definition: CurveCreator_ICurve.hxx:76
std::pair< int, int > SectionToPoint
Definition: CurveCreator_ICurve.hxx:75
Definition: CurveCreator_UtilsICurve.hxx:33
static void convert(const CurveCreator_ICurve::SectionToPointList &thePoints, QMap< int, QList< int > > &theConvPoints)
Definition: CurveCreator_UtilsICurve.cxx:65
static bool contains(const CurveCreator_ICurve::SectionToPointList &theList, const CurveCreator_ICurve::SectionToPoint &theValue)
Returns whether the container has the value.
Definition: CurveCreator_UtilsICurve.cxx:116
static int findLocalPointIndex(const CurveCreator_ICurve *theCurve, int theSectionId, double theX, double theY)
Definition: CurveCreator_UtilsICurve.cxx:28
static void getPoint(const CurveCreator_ICurve *theCurve, const int theISection, const int theIPoint, gp_Pnt &thePoint)
Definition: CurveCreator_UtilsICurve.cxx:88
static std::string getUniqSectionName(CurveCreator_ICurve *theCurve)
Definition: CurveCreator_UtilsICurve.cxx:99
static void findSectionsToPoints(const CurveCreator_ICurve *theCurve, const double theX, const double theY, CurveCreator_ICurve::SectionToPointList &thePoints)
Definition: CurveCreator_UtilsICurve.cxx:48