1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
3 // File: Model_ResultValidators.h
4 // Created: 23 July 2014
5 // Author: Vitaly SMETANNIKOV
7 #ifndef Model_ResultValidators_H
8 #define Model_ResultValidators_H
10 #include <SketchPlugin.h>
11 #include <ModelAPI_ResultValidator.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_ResultPointValidator : public ModelAPI_ResultValidator
23 /// Returns true if theObject is a point
24 SKETCHPLUGIN_EXPORT virtual bool isValid(const ObjectPtr theObject) const;
27 /**\class SketchPlugin_ResultLineValidator
29 * \brief Validator for the linear segments selection
31 * Allows to select linear segments only.
33 class SketchPlugin_ResultLineValidator : public ModelAPI_ResultValidator
36 /// Returns true if theObject is a line
37 SKETCHPLUGIN_EXPORT virtual bool isValid(const ObjectPtr theObject) const;
40 /**\class SketchPlugin_ResultArcValidator
42 * \brief Validator for the circular segments selection
44 * Allows to select circular segments only.
46 class SketchPlugin_ResultArcValidator : public ModelAPI_ResultValidator
49 /// Returns true if theObject is an arc
50 SKETCHPLUGIN_EXPORT virtual bool isValid(const ObjectPtr theObject) const;