Salome HOME
Issue #1649: Added options to create plane by two parallel planes;
[modules/shaper.git] / src / ConstructionPlugin / ConstructionPlugin_Validators.h
index 9bbb6f950b0d797f71fe27a402d79892c988ffe1..f45a6a6b97e8ccd104100eb42b8d9612909538d9 100644 (file)
@@ -69,4 +69,19 @@ public:
                         Events_InfoMessage& theError) const;
 };
 
+/// \class ConstructionPlugin_ValidatorPlaneTwoParallelPlanes
+/// \ingroup Validators
+/// \brief A validator for selection two parallel planes.
+class ConstructionPlugin_ValidatorPlaneTwoParallelPlanes: public ModelAPI_AttributeValidator
+{
+public:
+  //! \return True if the attribute is valid.
+  //! \param[in] theAttribute the checked attribute.
+  //! \param[in] theArguments arguments of the attribute.
+  //! \param[out] theError error message.
+   virtual bool isValid(const AttributePtr& theAttribute,
+                        const std::list<std::string>& theArguments,
+                        Events_InfoMessage& theError) const;
+};
+
 #endif
\ No newline at end of file