X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FSketchPlugin_ConstraintMirror.h;h=70bb78793ae6ddfb9a0ca4f9045f962ea7a9097a;hb=752c9e02e6aa8ced24e9b53097cb42540d5e6a08;hp=841f11abd37718358f0249307d0fd857ac7b3994;hpb=d1b90cc379d69e8539f4613ae1aaf78009bffa12;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_ConstraintMirror.h b/src/SketchPlugin/SketchPlugin_ConstraintMirror.h index 841f11abd..70bb78793 100644 --- a/src/SketchPlugin/SketchPlugin_ConstraintMirror.h +++ b/src/SketchPlugin/SketchPlugin_ConstraintMirror.h @@ -38,15 +38,29 @@ class SketchPlugin_ConstraintMirror : public SketchPlugin_ConstraintBase return MY_KIND; } + /// List of objects to be mirrored + inline static const std::string& MIRROR_LIST_ID() + { + static const std::string MY_MIRROR_LIST_ID("ConstraintMirrorList"); + return MY_MIRROR_LIST_ID; + } + /// \brief Creates a new part document if needed SKETCHPLUGIN_EXPORT virtual void execute(); /// \brief Request for initialization of data model of the feature: adding all attributes SKETCHPLUGIN_EXPORT virtual void initAttributes(); + /// Called on change of any argument-attribute of this object + /// \param theID identifier of changed attribute + SKETCHPLUGIN_EXPORT virtual void attributeChanged(const std::string& theID); + /// Returns the AIS preview SKETCHPLUGIN_EXPORT virtual AISObjectPtr getAISObject(AISObjectPtr thePrevious); + /// removes all fields from this feature: results, data, etc + SKETCHPLUGIN_EXPORT virtual void erase(); + /// \brief Use plugin manager for features creation SketchPlugin_ConstraintMirror(); };