X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_Validators.h;h=2111ef63d94e310fd8357066635b318a17e68952;hb=56c3f4abe8b191d5255880ac2efe79558e6ed187;hp=05e90f05f6302232dc859842752cffdafaad9ada;hpb=71661288cbd8d2c0f5ae6d1cc45e07e6783c38e9;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_Validators.h b/src/PartSet/PartSet_Validators.h index 05e90f05f..2111ef63d 100644 --- a/src/PartSet/PartSet_Validators.h +++ b/src/PartSet/PartSet_Validators.h @@ -123,6 +123,14 @@ public: PARTSET_EXPORT virtual bool isValid(const ModuleBase_ISelection* theSelection, ModuleBase_Operation* theOperation) const; }; +//! \ingroup Validators +//! A class to validate a selection for Middle point constraints operation +class PartSet_MiddlePointSelection : public ModuleBase_SelectionValidator +{ +public: + PARTSET_EXPORT virtual bool isValid(const ModuleBase_ISelection* theSelection, ModuleBase_Operation* theOperation) const; +}; + ////////////// Attribute validators //////////////// @@ -157,22 +165,6 @@ private: }; -/** -* \ingroup Validators -* A validator which checks that objects selected for feature attributes are different (not the same) -*/ -class PartSet_SketchEntityValidator : public ModelAPI_AttributeValidator -{ - public: - //! Returns true if the attribute is good for the feature attribute - //! \param theAttribute an attribute - //! \param theArguments a list of arguments (names of attributes to check) - //! \param theError an output error string - virtual bool isValid(const AttributePtr& theAttribute, - const std::list& theArguments, - std::string& theError) const; -}; - /**\class PartSet_CoincidentAttr * \ingroup Validators * \brief Validator to check whether there is a coincident constraint between