X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FFeaturesPlugin_Validators.h;h=66006583f85656277ed0d334283aa539eba35fbd;hb=658fccce59f75b0cfa7c3f3d45f1ffb295ed24be;hp=87bd3228d34329ed8f8fbde3b47fa816c50bcfa1;hpb=ca03465754f3815ede43f8686305fe39b6703a9c;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/FeaturesPlugin_Validators.h b/src/FeaturesPlugin/FeaturesPlugin_Validators.h index 87bd3228d..66006583f 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Validators.h +++ b/src/FeaturesPlugin/FeaturesPlugin_Validators.h @@ -64,21 +64,6 @@ public: std::string& theError) const; }; -/// \class FeaturesPlugin_ValidatorCompositeLauncher -/// \ingroup Validators -/// \brief A validator for selection at composite feature start -class FeaturesPlugin_ValidatorCompositeLauncher_: public ModelAPI_AttributeValidator -{ -public: - //! Returns true if attribute has selection type listed in the parameter arguments. - //! \param[in] theAttribute the checked attribute. - //! \param[in] theArguments arguments of the attribute. - //! \param[out] theError error message. - virtual bool isValid(const AttributePtr& theAttribute, - const std::list& theArguments, - std::string& theError) const; -}; - /// \class FeaturesPlugin_ValidatorCanBeEmpty /// \ingroup Validators /// \brief A validator for extrusion direction attribute and bounding planes for extrusion and @@ -103,4 +88,20 @@ private: std::string& theError) const; }; +/// \class FeaturesPlugin_ValidatorBaseForWire +/// \ingroup Validators +/// \brief A validator for selection base shapes for wire. Allows to select edges on sketch and +/// wires objects that are connected to already selected shapes. +class FeaturesPlugin_ValidatorBaseForWire: public ModelAPI_AttributeValidator +{ +public: + //! Returns true if attribute is ok. + //! \param[in] theAttribute the checked attribute. + //! \param[in] theArguments arguments of the attribute. + //! \param[out] theError error message. + virtual bool isValid(const AttributePtr& theAttribute, + const std::list& theArguments, + std::string& theError) const; +}; + #endif