1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
3 // File: Model_ResultValidators.h
4 // Created: 27 Feb 2015
5 // Author: Natalia ERMOLAEVA
7 #ifndef SketchPlugin_ShapeValidator_H
8 #define SketchPlugin_ShapeValidator_H
10 #include <SketchPlugin.h>
11 #include <ModelAPI_ShapeValidator.h>
12 #include <ModelAPI_Object.h>
14 /**\class SketchPlugin_ResultPointValidator
16 * \brief Validator for the points selection
18 * Allows to select points only.
20 class SketchPlugin_ShapeValidator : public ModelAPI_ShapeValidator
23 // returns true if there is an empty or non-external shape on the feature.
24 // in the given shape or in the list of attribute shapes
25 /// \param theFeature a feature to check
26 /// \param theArguments a filter parameters
27 /// \param theObject an object
28 /// \param theAttribute an attribute to check
29 /// \param theShape a shape
30 SKETCHPLUGIN_EXPORT virtual bool isValid(const FeaturePtr& theFeature,
31 const std::list<std::string>& theArguments,
32 const ObjectPtr& theObject, const AttributePtr& theAttribute,
33 const GeomShapePtr& theShape) const;