Salome HOME
Issue #803: Put all the python modules in the same python package newgeom
[modules/shaper.git] / src / FeaturesAPI / FeaturesAPI_Placement.h
index 691fd509b7b283150d0ab72a479bd8687a93b91b..4650ff1ebaf7376e6dc80eda51bf13fdc31ee29f 100644 (file)
 #include <ModelHighAPI_Interface.h>
 #include <ModelHighAPI_Macro.h>
 
+class ModelHighAPI_Dumper;
 class ModelHighAPI_Selection;
 
 /// \class FeaturesAPI_Placement
 /// \ingroup CPPHighAPI
 /// \brief Interface for Placement feature.
-class FeaturesAPI_Placement : public ModelHighAPI_Interface
+class FeaturesAPI_Placement: public ModelHighAPI_Interface
 {
 public:
   /// Constructor without values.
   FEATURESAPI_EXPORT
-  explicit FeaturesAPI_Placement(const std::shared_ptr<ModelAPI_Feature> & theFeature);
+  explicit FeaturesAPI_Placement(const std::shared_ptr<ModelAPI_Feature>& theFeature);
 
   /// Constructor with values.
   FEATURESAPI_EXPORT
-  FeaturesAPI_Placement(const std::shared_ptr<ModelAPI_Feature> & theFeature,
+  FeaturesAPI_Placement(const std::shared_ptr<ModelAPI_Feature>& theFeature,
                         const std::list<ModelHighAPI_Selection>& theObjects,
                         const ModelHighAPI_Selection& theStartShape,
                         const ModelHighAPI_Selection& theEndShape,
@@ -40,11 +41,16 @@ public:
   virtual ~FeaturesAPI_Placement();
 
   INTERFACE_5(FeaturesPlugin_Placement::ID(),
-              objects, FeaturesPlugin_Placement::OBJECTS_LIST_ID(), ModelAPI_AttributeSelectionList, /** Main objects */,
-              startShape, FeaturesPlugin_Placement::START_SHAPE_ID(), ModelAPI_AttributeSelection, /** Start shape */,
-              endShape, FeaturesPlugin_Placement::END_SHAPE_ID(), ModelAPI_AttributeSelection, /** End shape */,
-              reverseDirection, FeaturesPlugin_Placement::REVERSE_ID(), ModelAPI_AttributeBoolean, /** Reverse direction flag */,
-              centering, FeaturesPlugin_Placement::CENTERING_ID(), ModelAPI_AttributeBoolean, /** Centering flag */)
+              objects, FeaturesPlugin_Placement::OBJECTS_LIST_ID(),
+              ModelAPI_AttributeSelectionList, /** Main objects */,
+              startShape, FeaturesPlugin_Placement::START_SHAPE_ID(),
+              ModelAPI_AttributeSelection, /** Start shape */,
+              endShape, FeaturesPlugin_Placement::END_SHAPE_ID(),
+              ModelAPI_AttributeSelection, /** End shape */,
+              reverseDirection, FeaturesPlugin_Placement::REVERSE_ID(),
+              ModelAPI_AttributeBoolean, /** Reverse direction flag */,
+              centering, FeaturesPlugin_Placement::CENTERING_ID(),
+              ModelAPI_AttributeBoolean, /** Centering flag */)
 
   /// Set objects.
   FEATURESAPI_EXPORT
@@ -65,6 +71,10 @@ public:
   /// Set centering flag.
   FEATURESAPI_EXPORT
   void setCentering(const bool theCentering);
+
+  /// Dump wrapped feature
+  FEATURESAPI_EXPORT
+  virtual void dump(ModelHighAPI_Dumper& theDumper) const;
 };
 
 /// Pointer on Placement object.
@@ -73,7 +83,7 @@ typedef std::shared_ptr<FeaturesAPI_Placement> PlacementPtr;
 /// \ingroup CPPHighAPI
 /// \brief Create Placement feature.
 FEATURESAPI_EXPORT
-PlacementPtr addPlacement(const std::shared_ptr<ModelAPI_Document> & thePart,
+PlacementPtr addPlacement(const std::shared_ptr<ModelAPI_Document>& thePart,
                           const std::list<ModelHighAPI_Selection>& theObjects,
                           const ModelHighAPI_Selection& theStartShape,
                           const ModelHighAPI_Selection& theEndShape,