Salome HOME
bos #19181: Result appears when creating a parameter in the sketch
[modules/shaper.git] / src / ModuleBase / ModuleBase_FilterValidated.h
index 2fd2371b9705cb51b370515761acf6bf95188cc5..2f65ed8e40c1a0a62bad66564f081bb3934850c9 100644 (file)
@@ -1,9 +1,21 @@
-// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
-
-// File:        ModuleBase_FilterValidated.h
-// Created:     17 Mar 2015
-// Author:      Natalia ERMOLAEVA
-
+// Copyright (C) 2014-2020  CEA/DEN, EDF R&D
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
 
 #ifndef ModuleBase_FilterValidated_H
 #define ModuleBase_FilterValidated_H
@@ -13,6 +25,8 @@
 
 class ModuleBase_IWorkshop;
 
+//#define DEBUG_FILTERS
+
 /**
 * \ingroup GUI
 * \class ModuleBase_FilterValidated
@@ -30,15 +44,17 @@ public:
       SelectMgr_Filter(), myWorkshop(theWorkshop) {}
 
   /**
-   * Returns true if the owner is computed from decomposition(it is global selection, not the sub-shapes)
-   * of if the selected result is a construction and the result feature is composite and has sub-elements.
+   * Returns true if the owner is computed from decomposition
+   * (it is global selection, not the sub-shapes)
+   * of if the selected result is a construction and the result 
+   * feature is composite and has sub-elements.
    * \param theOwner the result of selection
    * \return whether the owner is selectable in the viewer
   */
-  Standard_EXPORT virtual Standard_Boolean IsOk(const Handle(SelectMgr_EntityOwner)& theOwner) const;
-
-  DEFINE_STANDARD_RTTI(ModuleBase_FilterValidated)
+  Standard_EXPORT virtual
+    Standard_Boolean IsOk(const Handle(SelectMgr_EntityOwner)& theOwner) const;
 
+  DEFINE_STANDARD_RTTIEXT(ModuleBase_FilterValidated, SelectMgr_Filter)
 protected:
   /// Instance of workshop interface
   ModuleBase_IWorkshop* myWorkshop;