Salome HOME
Fix "External faces" filter to avoid faces with INTERNAL flag
[modules/shaper.git] / src / FiltersPlugin / FiltersPlugin_Selection.h
index 0e68ac9bbb8e19f06e0c7027e1dfa78199b8bd7c..8fe3850a72d2eab2d200d6c6469a19c640ec7b23 100644 (file)
@@ -21,8 +21,7 @@
 #define FILTERSPLUGIN_SELECTION_H_
 
 #include "FiltersPlugin.h"
-#include <ModelAPI_Feature.h>
-#include <ModelAPI_Filter.h>
+#include <ModelAPI_FiltersFeature.h>
 
 /**\class FiltersPlugin_Selection
 * \ingroup DataModel
@@ -51,12 +50,12 @@ public:
   /// Computes a selection?
   FILTERS_EXPORT virtual void execute() {}
 
-  /// Initially there are no filters selected, so, no attributes
-  virtual void initAttributes() {}
-
   /// Feature is created in the plugin manager
   FiltersPlugin_Selection() {}
 
+  /// This method initializes all filters on open of document
+  FILTERS_EXPORT virtual void initAttributes() override;
+
   // methods related to the filters management
 
   /// Adds a filter to the feature. Also initializes arguments of this filter.
@@ -89,7 +88,6 @@ public:
 protected:
 
   AttributePtr myBase; ///< the attribute related to this filter
-
 };
 
 #endif