virtual bool isValid(const AttributePtr& theAttribute,
const std::list<std::string>& theArguments) const;
};
+ // virtual bool isValid(const AttributePtr& theAttribute,
+ // const std::list<std::string>& theArguments) const;
+ //
+ // //! Returns true if object is good for the feature attribute
+ // virtual bool isValid(const FeaturePtr& theFeature, const std::list<std::string>& theArguments,
+ // const ObjectPtr& theObject, const GeomShapePtr& theShape) const;
+ //
+ // //! Returns true if the attribute is good for the feature attribute
+ // virtual bool isValid(const FeaturePtr& theFeature, const std::list<std::string>& theArguments,
+ // const AttributePtr& theAttribute) const;
+ //};
+
+ // commented in v1.0.2, master:
+ /**\class SketchPlugin_DifferentObjectsValidator
+ * \ingroup Validators
+ *
+ * Check that there is no same object was already selected in the feature.
+ * For an example: to avoid perpendicularity on line and the same line.
+ */
+ // Use PartSet_DifferentObjectsValidator instead
+ //class SketchPlugin_DifferentObjectsValidator : public ModelAPI_RefAttrValidator
+ //{
+ // 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<std::string>& theArguments) const;
+ // //! Returns true if object is good for the feature attribute
+ // virtual bool isValid(const FeaturePtr& theFeature, const std::list<std::string>& theArguments,
+ // const ObjectPtr& theObject) const;
+ // //! Returns true if the attribute is good for the feature attribute
+ // virtual bool isValid(const FeaturePtr& theFeature, const std::list<std::string>& theArguments,
+ // const AttributePtr& theAttribute) const;
+ //};
+ // ======= end of todo
+
+/**\class SketchPlugin_TangentAttrValidator
+ * \ingroup Validators
+ * \brief Validator for the tangent constraint input.
+ *
+ * It just checks that distance is greater than zero.
+ */
+class SketchPlugin_TangentAttrValidator : 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<std::string>& theArguments) const;
+};
+
#endif