Salome HOME
Constriction type for all sketch entities
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_ShapeValidator.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
2
3 // File:        Model_ResultValidators.h
4 // Created:     27 Feb 2015
5 // Author:      Natalia ERMOLAEVA
6
7 #ifndef SketchPlugin_ShapeValidator_H
8 #define SketchPlugin_ShapeValidator_H
9
10 #include <SketchPlugin.h>
11 #include <ModelAPI_ShapeValidator.h>
12 #include <ModelAPI_Object.h>
13
14 /**\class SketchPlugin_ResultPointValidator
15  * \ingroup Validators
16  * \brief Validator for the points selection
17  *
18  * Allows to select points only.
19  */
20 class SketchPlugin_ShapeValidator : public ModelAPI_ShapeValidator
21 {
22 public:
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;
34 };
35
36 #endif