Salome HOME
Added option to create Construction Point by intersection of line and plane.
[modules/shaper.git] / src / ConstructionPlugin / ConstructionPlugin_Validators.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
2
3 // File:        ConstructionPlugin_Validators.h
4 // Created:     04 July 2016
5 // Author:      Dmitry Bobylev
6
7 #ifndef ConstructionPlugin_Validators_H_
8 #define ConstructionPlugin_Validators_H_
9
10 #include <ModelAPI_AttributeValidator.h>
11
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
16 {
17 public:
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;
25 };
26
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
31 {
32 public:
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;
40 };
41
42 #endif