X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FSketchPlugin_Validators.h;h=6b1f29c0a12d1dbeab534f88a74610b639927849;hb=01159d19136fded13c08b72974dc897173376eb4;hp=82e0e1fce07eae3f0c64ac77a28b8457737d68f3;hpb=9fdd5bb2d329d3fc435f86a0247b6b5378c252b1;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_Validators.h b/src/SketchPlugin/SketchPlugin_Validators.h index 82e0e1fce..6b1f29c0a 100644 --- a/src/SketchPlugin/SketchPlugin_Validators.h +++ b/src/SketchPlugin/SketchPlugin_Validators.h @@ -26,6 +26,20 @@ class SketchPlugin_DistanceAttrValidator : public ModelAPI_AttributeValidator const std::list& theArguments) const; }; +/**\class SketchPlugin_CoincidentAttr + * \ingroup Validators + * \brief Validator to check whether there is a coincident constraint between + * the attribute and attribute of argument. + */ +class SketchPlugin_CoincidentAttr : public ModelAPI_AttributeValidator +{ + public: + //! returns true if attribute is valid + //! \param theAttribute the checked attribute + //! \param theArguments arguments of the attribute + virtual bool isValid(const AttributePtr& theAttribute, + const std::list& theArguments) const; +}; /**\class SketchPlugin_TangentAttrValidator * \ingroup Validators @@ -109,4 +123,22 @@ class SketchPlugin_CoincidenceAttrValidator : public ModelAPI_AttributeValidator const std::list& theArguments) const; }; + +/**\class SketchPlugin_CopyValidator + * \ingroup Validators + * \brief Validator for the constraints which create features. + * + * Applicable only for features, which creates another features. It verifies the produced + * features of current constraint don't become into the list of initial features + */ +class SketchPlugin_CopyValidator : public ModelAPI_AttributeValidator +{ + public: + //! returns true if attribute is valid + //! \param theAttribute the checked attribute + //! \param theArguments arguments of the attribute (not used) + virtual bool isValid(const AttributePtr& theAttribute, + const std::list& theArguments) const; +}; + #endif