X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FSketchPlugin_BSpline.h;h=ff27cd3a3d6b8bf37f13c1696cbb4cf04cc177b4;hb=e8b0963c64ad81be042fffe660ce874ae4d3abd5;hp=a72126c91f87218a72ad6a6158a1520e9cd5b30d;hpb=52b602cebc1184e09d86608510b0f14aff5d1d4b;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_BSpline.h b/src/SketchPlugin/SketchPlugin_BSpline.h index a72126c91..ff27cd3a3 100644 --- a/src/SketchPlugin/SketchPlugin_BSpline.h +++ b/src/SketchPlugin/SketchPlugin_BSpline.h @@ -20,58 +20,22 @@ #ifndef SketchPlugin_BSpline_H_ #define SketchPlugin_BSpline_H_ -#include -#include +#include /**\class SketchPlugin_BSpline * \ingroup Plugins * \brief Feature for creation of the B-spline curve in the sketch. */ -class SketchPlugin_BSpline : public SketchPlugin_SketchEntity +class SketchPlugin_BSpline : public SketchPlugin_BSplineBase { public: - /// Ellipse feature kind + /// B-spline feature kind inline static const std::string& ID() { static const std::string ID("SketchBSpline"); return ID; } - /// list of B-spline poles - inline static const std::string& POLES_ID() - { - static const std::string ID("poles"); - return ID; - } - - /// list of B-spline weights - inline static const std::string& WEIGHTS_ID() - { - static const std::string ID("weights"); - return ID; - } - - /// attribute to store the degree of B-spline - inline static const std::string& DEGREE_ID() - { - static const std::string ID("degree"); - return ID; - } - - /// list of B-spline knots - inline static const std::string& KNOTS_ID() - { - static const std::string ID("knots"); - return ID; - } - - /// list of B-spline multiplicities - inline static const std::string& MULTS_ID() - { - static const std::string ID("multiplicities"); - return ID; - } - /// start point of B-spline curve inline static const std::string& START_ID() { @@ -92,21 +56,17 @@ public: return MY_KIND; } - /// Returns true is sketch element is under the rigid constraint - SKETCHPLUGIN_EXPORT virtual bool isFixed(); - /// Called on change of any argument-attribute of this object SKETCHPLUGIN_EXPORT virtual void attributeChanged(const std::string& theID); - /// Creates a new part document if needed - SKETCHPLUGIN_EXPORT virtual void execute(); - /// Use plugin manager for features creation SketchPlugin_BSpline(); protected: /// \brief Initializes attributes of derived class. virtual void initDerivedClassAttributes(); + + virtual bool isPeriodic() const { return false; } }; #endif