X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FSketchPlugin_ConstraintRadius.h;h=697a4db8d8f1f51b270bec8ac4ebecc5c3a6ed11;hb=b234852f214beada2b07507e1ed35827ce8988c4;hp=bbdef20553af371c7a07e91a1a50995902884dd1;hpb=f1cd93fd02a54259f72e3191d037323a496b2bef;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_ConstraintRadius.h b/src/SketchPlugin/SketchPlugin_ConstraintRadius.h index bbdef2055..697a4db8d 100644 --- a/src/SketchPlugin/SketchPlugin_ConstraintRadius.h +++ b/src/SketchPlugin/SketchPlugin_ConstraintRadius.h @@ -11,10 +11,8 @@ #include #include "SketchPlugin_ConstraintBase.h" -#define RADIUS_COLOR "#ff00ff" - /** \class SketchPlugin_ConstraintRadius - * \ingroup DataModel + * \ingroup Plugins * \brief Feature for creation of a new constraint which defines * a radius of a circle or an arc of circle * @@ -40,9 +38,18 @@ 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(); + /// Retuns the parameters of color definition in the resources config manager + SKETCHPLUGIN_EXPORT virtual void colorConfigInfo(std::string& theSection, std::string& theName, + std::string& theDefault); + /// Returns the AIS preview SKETCHPLUGIN_EXPORT virtual AISObjectPtr getAISObject(AISObjectPtr thePrevious); @@ -62,6 +69,9 @@ private: /// Checks and gets the radius of referenced circle (or arc) otherwise returns -1. /// \param theCircData the found referenced circle returned by this method double circleRadius(std::shared_ptr& theCirc); + +private: + bool myFlyoutUpdate; ///< to avoid cyclic dependencies on automatic updates of flyout point }; #endif