Salome HOME
Merge remote-tracking branch 'origin/cgt/devCEA'
[modules/shaper.git] / src / FeaturesAPI / FeaturesAPI_Boolean.h
index bcbd40f2581cb430f3c55e3d22c7acf54faf5a1b..e8f423528d13e54abac6ab461447efd98dea24ed 100644 (file)
@@ -20,16 +20,16 @@ class ModelHighAPI_Selection;
 /// \class FeaturesAPI_Boolean
 /// \ingroup CPPHighAPI
 /// \brief Interface for Boolean feature.
-class FeaturesAPI_Boolean : public ModelHighAPI_Interface
+class FeaturesAPI_Boolean: public ModelHighAPI_Interface
 {
 public:
   /// Constructor without values.
   FEATURESAPI_EXPORT
-  explicit FeaturesAPI_Boolean(const std::shared_ptr<ModelAPI_Feature> & theFeature);
+  explicit FeaturesAPI_Boolean(const std::shared_ptr<ModelAPI_Feature>& theFeature);
 
   /// Constructor with values.
   FEATURESAPI_EXPORT
-  FeaturesAPI_Boolean(const std::shared_ptr<ModelAPI_Feature> & theFeature,
+  FeaturesAPI_Boolean(const std::shared_ptr<ModelAPI_Feature>& theFeature,
                       const ModelHighAPI_Integer& theBoolType,
                       const std::list<ModelHighAPI_Selection>& theMainObjects,
                       const std::list<ModelHighAPI_Selection>& theToolObjects);
@@ -39,9 +39,12 @@ public:
   virtual ~FeaturesAPI_Boolean();
 
   INTERFACE_3(FeaturesPlugin_Boolean::ID(),
-              boolType, FeaturesPlugin_Boolean::TYPE_ID(), ModelAPI_AttributeInteger, /** Operation type */,
-              mainObjects, FeaturesPlugin_Boolean::OBJECT_LIST_ID(), ModelAPI_AttributeSelectionList, /** Main objects */,
-              toolObjects, FeaturesPlugin_Boolean::TOOL_LIST_ID(), ModelAPI_AttributeSelectionList, /** Tool objects*/)
+              boolType, FeaturesPlugin_Boolean::TYPE_ID(),
+              ModelAPI_AttributeInteger, /** Operation type */,
+              mainObjects, FeaturesPlugin_Boolean::OBJECT_LIST_ID(),
+              ModelAPI_AttributeSelectionList, /** Main objects */,
+              toolObjects, FeaturesPlugin_Boolean::TOOL_LIST_ID(),
+              ModelAPI_AttributeSelectionList, /** Tool objects*/)
 
   /// Set operation type.
   FEATURESAPI_EXPORT
@@ -54,6 +57,10 @@ public:
   /// Set tool objects.
   FEATURESAPI_EXPORT
   void setToolObjects(const std::list<ModelHighAPI_Selection>& theToolObjects);
+
+  /// Dump wrapped feature
+  FEATURESAPI_EXPORT
+  virtual void dump(ModelHighAPI_Dumper& theDumper) const;
 };
 
 /// Pointer on Boolean object.
@@ -62,28 +69,42 @@ typedef std::shared_ptr<FeaturesAPI_Boolean> BooleanPtr;
 /// \ingroup CPPHighAPI
 /// \brief Create Boolean Cut feature.
 FEATURESAPI_EXPORT
-BooleanPtr addCut(const std::shared_ptr<ModelAPI_Document> & thePart,
+BooleanPtr addCut(const std::shared_ptr<ModelAPI_Document>& thePart,
                   const std::list<ModelHighAPI_Selection>& theMainObjects,
                   const std::list<ModelHighAPI_Selection>& theToolObjects);
 
 /// \ingroup CPPHighAPI
 /// \brief Create Boolean Fuse feature.
 FEATURESAPI_EXPORT
-BooleanPtr addFuse(const std::shared_ptr<ModelAPI_Document> & thePart,
+BooleanPtr addFuse(const std::shared_ptr<ModelAPI_Document>& thePart,
                    const std::list<ModelHighAPI_Selection>& theObjects);
 
 /// \ingroup CPPHighAPI
 /// \brief Create Boolean Fuse feature.
 FEATURESAPI_EXPORT
-BooleanPtr addFuse(const std::shared_ptr<ModelAPI_Document> & thePart,
+BooleanPtr addFuse(const std::shared_ptr<ModelAPI_Document>& thePart,
                    const std::list<ModelHighAPI_Selection>& theMainObjects,
                    const std::list<ModelHighAPI_Selection>& theToolObjects);
 
 /// \ingroup CPPHighAPI
 /// \brief Create Boolean Common feature.
 FEATURESAPI_EXPORT
-BooleanPtr addCommon(const std::shared_ptr<ModelAPI_Document> & thePart,
+BooleanPtr addCommon(const std::shared_ptr<ModelAPI_Document>& thePart,
                      const std::list<ModelHighAPI_Selection>& theMainObjects,
                      const std::list<ModelHighAPI_Selection>& theToolObjects);
 
+/// \ingroup CPPHighAPI
+/// \brief Create Boolean Smash feature.
+FEATURESAPI_EXPORT
+BooleanPtr addSmash(const std::shared_ptr<ModelAPI_Document>& thePart,
+                    const std::list<ModelHighAPI_Selection>& theMainObjects,
+                    const std::list<ModelHighAPI_Selection>& theToolObjects);
+
+/// \ingroup CPPHighAPI
+/// \brief Create Boolean Fill feature.
+FEATURESAPI_EXPORT
+BooleanPtr addFill(const std::shared_ptr<ModelAPI_Document>& thePart,
+                   const std::list<ModelHighAPI_Selection>& theMainObjects,
+                   const std::list<ModelHighAPI_Selection>& theToolObjects);
+
 #endif // FeaturesAPI_Boolean_H_