Salome HOME
Multi-selection widget to be used in the extrusion feature.
[modules/shaper.git] / src / ModelAPI / ModelAPI_ShapeValidator.h
index 596e1c08e682b61e66ac3dab55ed44c08e2ee24a..beac5e2c9d76600741e5a3f1d4d68199f81ffe3d 100644 (file)
@@ -9,25 +9,21 @@
 
 #include <ModelAPI.h>
 
-#include <ModelAPI_Validator.h>
-#include <ModelAPI_Feature.h>
+#include <ModelAPI_AttributeValidator.h>
 #include <ModelAPI_Attribute.h>
 
-#include <GeomAPI_Shape.h>
-
 /**
  * Generic validator for any attribute of a feature.
  */
-class ModelAPI_ShapeValidator : public ModelAPI_Validator
+class ModelAPI_ShapeValidator : public ModelAPI_AttributeValidator
 {
 public:
   /// returns True if the attribute is valid. It checks whether the feature of the attribute
   /// does not contain a selection attribute filled with the same shape
-  /// \param theFeature a feature to check
   /// \param theAttribute an attribute to check
-  /// \param theShape a shape
-  MODELAPI_EXPORT bool isValid(const FeaturePtr& theFeature, const AttributePtr& theAttribute,
-                               const GeomShapePtr& theShape) const;
+  /// \param theArguments a filter parameters
+  MODELAPI_EXPORT virtual bool isValid(const AttributePtr& theAttribute,
+                                       const std::list<std::string>& theArguments) const;
 };
 
 #endif