Salome HOME
Issue #1915: boolean failed
[modules/shaper.git] / src / PrimitivesAPI / PrimitivesAPI_Box.h
index acf8bdffb6e810a8cf1da05664ba9b89ea0315e8..ca0dc20a9acda78a254f0c8aba7df84a3f9c93ae 100644 (file)
@@ -4,8 +4,8 @@
 // Created:     28 June 2016
 // Author:      Clarisse Genrault (CEA)
 
-#ifndef PrimitivesAPI_Box_H_
-#define PrimitivesAPI_Box_H_
+#ifndef PRIMITIVESAPI_BOX_H_
+#define PRIMITIVESAPI_BOX_H_
 
 #include "PrimitivesAPI.h"
 
@@ -26,43 +26,52 @@ public:
   /// Constructor without values.
   PRIMITIVESAPI_EXPORT
   explicit PrimitivesAPI_Box(const std::shared_ptr<ModelAPI_Feature>& theFeature);
-  
+
   /// Constructor with values.
   PRIMITIVESAPI_EXPORT
   explicit PrimitivesAPI_Box(const std::shared_ptr<ModelAPI_Feature>& theFeature,
                              const ModelHighAPI_Double& theDx,
                              const ModelHighAPI_Double& theDy,
                              const ModelHighAPI_Double& theDz);
-  
+
   /// Constructor with values.
   PRIMITIVESAPI_EXPORT
   explicit PrimitivesAPI_Box(const std::shared_ptr<ModelAPI_Feature>& theFeature,
                              const ModelHighAPI_Selection& theFirstPoint,
                              const ModelHighAPI_Selection& theSecondPoint);
-  
+
   /// Destructor.
   PRIMITIVESAPI_EXPORT
   virtual ~PrimitivesAPI_Box();
-  
-  INTERFACE_6(PrimitivesPlugin_Box::ID(), 
+
+  INTERFACE_6(PrimitivesPlugin_Box::ID(),
              creationMethod, PrimitivesPlugin_Box::CREATION_METHOD(),
              ModelAPI_AttributeString, /** Creation method */,
-             dx, PrimitivesPlugin_Box::DX_ID(), ModelAPI_AttributeDouble, /** Dimension in X */,
-             dy, PrimitivesPlugin_Box::DY_ID(), ModelAPI_AttributeDouble, /** Dimension in Y */,
-             dz, PrimitivesPlugin_Box::DZ_ID(), ModelAPI_AttributeDouble, /** Dimension in Z */,
-             firstPoint, PrimitivesPlugin_Box::POINT_FIRST_ID(), ModelAPI_AttributeSelection, /** First point */,
-             secondPoint, PrimitivesPlugin_Box::POINT_SECOND_ID(), ModelAPI_AttributeSelection, /** Second point */)
-  
+             dx, PrimitivesPlugin_Box::DX_ID(),
+             ModelAPI_AttributeDouble, /** Dimension in X */,
+             dy, PrimitivesPlugin_Box::DY_ID(),
+             ModelAPI_AttributeDouble, /** Dimension in Y */,
+             dz, PrimitivesPlugin_Box::DZ_ID(),
+             ModelAPI_AttributeDouble, /** Dimension in Z */,
+             firstPoint, PrimitivesPlugin_Box::POINT_FIRST_ID(),
+             ModelAPI_AttributeSelection, /** First point */,
+             secondPoint, PrimitivesPlugin_Box::POINT_SECOND_ID(),
+             ModelAPI_AttributeSelection, /** Second point */)
+
   /// Set dimensions
   PRIMITIVESAPI_EXPORT
   void setDimensions(const ModelHighAPI_Double& theDx,
                      const ModelHighAPI_Double& theDy,
                      const ModelHighAPI_Double& theDz);
-  
+
   /// Set points
   PRIMITIVESAPI_EXPORT
   void setPoints(const ModelHighAPI_Selection& theFirstPoint,
                  const ModelHighAPI_Selection& theSecondPoint);
+
+  /// Dump wrapped feature
+  PRIMITIVESAPI_EXPORT
+  virtual void dump(ModelHighAPI_Dumper& theDumper) const;
 };
 
 /// Pointer on primitive Box object
@@ -83,4 +92,4 @@ BoxPtr addBox(const std::shared_ptr<ModelAPI_Document>& thePart,
               const ModelHighAPI_Selection& theFirstPoint,
               const ModelHighAPI_Selection& theSecondPoint);
 
-#endif // PrimitivesAPI_Box_H_
\ No newline at end of file
+#endif // PRIMITIVESAPI_BOX_H_
\ No newline at end of file