X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROCurveCreator%2FCurveCreator_UtilsICurve.hxx;h=96b4e454ba76d7e104dfa0d39e36a9081f547056;hb=4e1b53167581be7e084a3d71c075507bc6699c06;hp=c749e47b6d615c48dcae9def23847ef9fc0482b3;hpb=1c7e2cd6a209334f05f76aaf952881636ba0969c;p=modules%2Fhydro.git diff --git a/src/HYDROCurveCreator/CurveCreator_UtilsICurve.hxx b/src/HYDROCurveCreator/CurveCreator_UtilsICurve.hxx index c749e47b..96b4e454 100644 --- a/src/HYDROCurveCreator/CurveCreator_UtilsICurve.hxx +++ b/src/HYDROCurveCreator/CurveCreator_UtilsICurve.hxx @@ -24,6 +24,8 @@ #include "CurveCreator_ICurve.hxx" +#include + #include #include @@ -36,10 +38,10 @@ public: * \param theX the X coordinate of the point * \param theY the Y coordinate of the point */ - CURVECREATOR_EXPORT static int findLocalPointIndex( CurveCreator_ICurve* theCurve, + CURVECREATOR_EXPORT static int findLocalPointIndex( const CurveCreator_ICurve* theCurve, int theSectionId, float theX, float theY ); - CURVECREATOR_EXPORT static void findSectionsToPoints( CurveCreator_ICurve* theCurve, + CURVECREATOR_EXPORT static void findSectionsToPoints( const CurveCreator_ICurve* theCurve, const double theX, const double theY, CurveCreator_ICurve::SectionToPointList& thePoints ); CURVECREATOR_EXPORT static void convert( const CurveCreator_ICurve::SectionToPointList& thePoints, @@ -48,6 +50,13 @@ public: CURVECREATOR_EXPORT static void getPoint( const CurveCreator_ICurve* theCurve, const int theISection, const int theIPoint, gp_Pnt& thePoint ); + /*! + * Returns a unique section name + * \param theCurve a curve interface + */ + CURVECREATOR_EXPORT static std::string getUniqSectionName( + CurveCreator_ICurve* theCurve ); + /** * Returns whethe the container has the value * \param theList a container of values