20 #ifndef SketchPlugin_BSplineBase_H_
21 #define SketchPlugin_BSplineBase_H_
23 #include <SketchPlugin.h>
24 #include <SketchPlugin_SketchEntity.h>
36 static const std::string ID(
"poles");
43 static const std::string ID(
"weights");
50 static const std::string ID(
"degree");
57 static const std::string ID(
"knots");
64 static const std::string ID(
"multiplicities");
71 static const std::string ID(
"AddPole");
76 SKETCHPLUGIN_EXPORT
virtual bool isFixed();
82 SKETCHPLUGIN_EXPORT
virtual void execute();
87 SKETCHPLUGIN_EXPORT
virtual bool customAction(
const std::string& theActionId);
100 bool addPole(
const int theAfter);
Base class for B-spline curves in the sketch.
Definition: SketchPlugin_BSplineBase.h:31
SketchPlugin_BSplineBase()
Called from the derived class.
Definition: SketchPlugin_BSplineBase.cpp:47
virtual SKETCHPLUGIN_EXPORT bool customAction(const std::string &theActionId)
Updates the B-spline curve.
Definition: SketchPlugin_BSplineBase.cpp:115
static const std::string & MULTS_ID()
list of B-spline multiplicities
Definition: SketchPlugin_BSplineBase.h:62
static const std::string & DEGREE_ID()
attribute to store the degree of B-spline
Definition: SketchPlugin_BSplineBase.h:48
virtual void initDerivedClassAttributes()
Initializes attributes of derived class.
Definition: SketchPlugin_BSplineBase.cpp:52
static const std::string & WEIGHTS_ID()
list of B-spline weights
Definition: SketchPlugin_BSplineBase.h:41
virtual SKETCHPLUGIN_EXPORT void execute()
Creates a new part document if needed.
Definition: SketchPlugin_BSplineBase.cpp:64
virtual SKETCHPLUGIN_EXPORT void attributeChanged(const std::string &theID)
Called on change of any argument-attribute of this object.
Definition: SketchPlugin_BSplineBase.cpp:111
static const std::string & POLES_ID()
list of B-spline poles
Definition: SketchPlugin_BSplineBase.h:34
bool addPole(const int theAfter)
Add new pole after the pole with the given index.
Definition: SketchPlugin_BSplineBase.cpp:135
virtual SKETCHPLUGIN_EXPORT bool isFixed()
Returns true is sketch element is under the rigid constraint.
Definition: SketchPlugin_BSplineBase.cpp:107
static const std::string & KNOTS_ID()
list of B-spline knots
Definition: SketchPlugin_BSplineBase.h:55
virtual bool isPeriodic() const =0
Return true if the B-spline curve is periodic.
static const std::string & ADD_POLE_ACTION_ID()
name for add pole action
Definition: SketchPlugin_BSplineBase.h:69
Sketch Entity for creation of the new feature in PartSet.
Definition: SketchPlugin_SketchEntity.h:45