X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FSketchPlugin_ConstraintMirror.h;h=70bb78793ae6ddfb9a0ca4f9045f962ea7a9097a;hb=dddb164bbd94e2a397f1f9ce80c931d1ca3dac19;hp=841f11abd37718358f0249307d0fd857ac7b3994;hpb=a24b7e6f4d112d5e7889fd76f030298fc428cd01;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(); };