Salome HOME
Fix for the issue #1766 : treat face as equal with different orientation to find...
[modules/shaper.git] / src / FeaturesAPI / FeaturesAPI_Translation.h
index fef95b503508ccc83ec89cd385db28f7419cea2a..995b880a83af0b79aeb8d1bf3b921817c0c8cc29 100644 (file)
 #include <ModelHighAPI_Macro.h>
 
 class ModelHighAPI_Double;
+class ModelHighAPI_Dumper;
 class ModelHighAPI_Selection;
 
 /// \class FeaturesAPI_Translation
 /// \ingroup CPPHighAPI
 /// \brief Interface for Translation feature.
-class FeaturesAPI_Translation : public ModelHighAPI_Interface
+class FeaturesAPI_Translation: public ModelHighAPI_Interface
 {
 public:
   /// Constructor without values.
   FEATURESAPI_EXPORT
-  explicit FeaturesAPI_Translation(const std::shared_ptr<ModelAPI_Feature> & theFeature);
+  explicit FeaturesAPI_Translation(const std::shared_ptr<ModelAPI_Feature>& theFeature);
 
   /// Constructor with values.
   FEATURESAPI_EXPORT
-  FeaturesAPI_Translation(const std::shared_ptr<ModelAPI_Feature> & theFeature,
+  FeaturesAPI_Translation(const std::shared_ptr<ModelAPI_Feature>& theFeature,
                           const std::list<ModelHighAPI_Selection>& theMainObjects,
                           const ModelHighAPI_Selection& theAxisObject,
                           const ModelHighAPI_Double& theDistance);
@@ -54,6 +55,10 @@ public:
   /// Set distance.
   FEATURESAPI_EXPORT
   void setDistance(const ModelHighAPI_Double& theDistance);
+
+  /// Dump wrapped feature
+  FEATURESAPI_EXPORT
+  virtual void dump(ModelHighAPI_Dumper& theDumper) const;
 };
 
 /// Pointer on Translation object.
@@ -62,7 +67,7 @@ typedef std::shared_ptr<FeaturesAPI_Translation> TranslationPtr;
 /// \ingroup CPPHighAPI
 /// \brief Create Translation feature.
 FEATURESAPI_EXPORT
-TranslationPtr addTranslation(const std::shared_ptr<ModelAPI_Document> & thePart,
+TranslationPtr addTranslation(const std::shared_ptr<ModelAPI_Document>& thePart,
                               const std::list<ModelHighAPI_Selection>& theMainObjects,
                               const ModelHighAPI_Selection& theAxisObject,
                               const ModelHighAPI_Double& theDistance);