X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FSketchPlugin_MacroBSpline.h;h=1c3aca6d7d7078e3b55eebf0dfc808af6851a9f6;hb=f51f8ab55887ac6eff49fb9937a460abe1956517;hp=9ecf63d49063d2a16b0853916792e35773ac2034;hpb=3f01be441c3244407d583560f6c244187e8050dc;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_MacroBSpline.h b/src/SketchPlugin/SketchPlugin_MacroBSpline.h index 9ecf63d49..1c3aca6d7 100644 --- a/src/SketchPlugin/SketchPlugin_MacroBSpline.h +++ b/src/SketchPlugin/SketchPlugin_MacroBSpline.h @@ -108,7 +108,12 @@ protected: private: FeaturePtr createBSplineFeature(); - void createControlPolygon(FeaturePtr theBSpline, std::list& thePoles); + /// Create control polygon for the B-spline and returns the list of its poles + static void createControlPolygon(FeaturePtr theBSpline, + bool thePeriodic, + std::list& thePoles); + + /// Create additional coincidences if other features were selected while creating the B-spline void constraintsForPoles(const std::list& thePoles); /// Create Point feature coincident with the B-spline pole @@ -124,6 +129,7 @@ private: const int thePoleIndex1, const int thePoleIndex2 = -1); friend class SketchPlugin_BSplineBase; + friend class SketchPlugin_CurveFitting; private: std::list myKnots; @@ -133,9 +139,9 @@ private: }; -/**\class SketchPlugin_MacroBSpline +/**\class SketchPlugin_MacroBSplinePeriodic * \ingroup Plugins -* \brief Feature for creation of the new B-spline in Sketch. +* \brief Feature for creation of the new periodic B-spline in Sketch. */ class SketchPlugin_MacroBSplinePeriodic : public SketchPlugin_MacroBSpline {