X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesAPI%2FFeaturesAPI_Translation.h;h=995b880a83af0b79aeb8d1bf3b921817c0c8cc29;hb=aee09da348319d21259bee81c45d00a08f657de0;hp=fef95b503508ccc83ec89cd385db28f7419cea2a;hpb=49aae0203d4c89a9cd5409451c3e4208b799e004;p=modules%2Fshaper.git diff --git a/src/FeaturesAPI/FeaturesAPI_Translation.h b/src/FeaturesAPI/FeaturesAPI_Translation.h index fef95b503..995b880a8 100644 --- a/src/FeaturesAPI/FeaturesAPI_Translation.h +++ b/src/FeaturesAPI/FeaturesAPI_Translation.h @@ -15,21 +15,22 @@ #include 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 & theFeature); + explicit FeaturesAPI_Translation(const std::shared_ptr& theFeature); /// Constructor with values. FEATURESAPI_EXPORT - FeaturesAPI_Translation(const std::shared_ptr & theFeature, + FeaturesAPI_Translation(const std::shared_ptr& theFeature, const std::list& 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 TranslationPtr; /// \ingroup CPPHighAPI /// \brief Create Translation feature. FEATURESAPI_EXPORT -TranslationPtr addTranslation(const std::shared_ptr & thePart, +TranslationPtr addTranslation(const std::shared_ptr& thePart, const std::list& theMainObjects, const ModelHighAPI_Selection& theAxisObject, const ModelHighAPI_Double& theDistance);