1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
3 // File: ConstructionPlugin_Validators.h
4 // Created: 04 July 2016
5 // Author: Dmitry Bobylev
7 #ifndef ConstructionPlugin_Validators_H_
8 #define ConstructionPlugin_Validators_H_
10 #include <ModelAPI_AttributeValidator.h>
12 /// \class ConstructionPlugin_ValidatorPointLines
13 /// \ingroup Validators
14 /// \brief A validator for selection lines for point by intersection.
15 class ConstructionPlugin_ValidatorPointLines: public ModelAPI_AttributeValidator
18 //! \return True if the attribute is valid.
19 //! \param[in] theAttribute the checked attribute.
20 //! \param[in] theArguments arguments of the attribute.
21 //! \param[out] theError error message.
22 virtual bool isValid(const AttributePtr& theAttribute,
23 const std::list<std::string>& theArguments,
24 Events_InfoMessage& theError) const;
27 /// \class ConstructionPlugin_ValidatorPointLineAndPlaneNotParallel
28 /// \ingroup Validators
29 /// \brief A validator for selection line and plane for point by intersection..
30 class ConstructionPlugin_ValidatorPointLineAndPlaneNotParallel: public ModelAPI_AttributeValidator
33 //! \return True if the attribute is valid.
34 //! \param[in] theAttribute the checked attribute.
35 //! \param[in] theArguments arguments of the attribute.
36 //! \param[out] theError error message.
37 virtual bool isValid(const AttributePtr& theAttribute,
38 const std::list<std::string>& theArguments,
39 Events_InfoMessage& theError) const;