X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FSketchPlugin%2FSketchPlugin_ConstraintRadius.h;h=5400bc443188de718808239569a561b9aa6db7eb;hb=c44da4cdb21b305f2350bb4b2c9044eaba08f171;hp=84c2043c422f715722191e5918522cc7524cbaa6;hpb=a0bf1eb5af40ce92ee7e682959bf5738a3fc092b;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_ConstraintRadius.h b/src/SketchPlugin/SketchPlugin_ConstraintRadius.h index 84c2043c4..5400bc443 100644 --- a/src/SketchPlugin/SketchPlugin_ConstraintRadius.h +++ b/src/SketchPlugin/SketchPlugin_ConstraintRadius.h @@ -11,8 +11,6 @@ #include #include "SketchPlugin_ConstraintBase.h" -#define RADIUS_COLOR "#ff00ff" - /** \class SketchPlugin_ConstraintRadius * \ingroup Plugins * \brief Feature for creation of a new constraint which defines @@ -40,6 +38,11 @@ class SketchPlugin_ConstraintRadius : public SketchPlugin_ConstraintBase /// \brief Creates a new part document if needed SKETCHPLUGIN_EXPORT virtual void execute(); + /// Computes the attribute value on the base of other attributes if the value can be computed + /// \param theAttributeId an attribute index to be computed + /// \return a boolean value about it is computed + SKETCHPLUGIN_EXPORT virtual bool compute(const std::string& theAttributeId); + /// \brief Request for initialization of data model of the feature: adding all attributes SKETCHPLUGIN_EXPORT virtual void initAttributes();