Salome HOME
added new Sewing feature
[modules/shaper.git] / src / FeaturesPlugin / FeaturesPlugin_Scale.h
index 71bf032a23a0b9967a5e0f4fbc3fe58afc32d1f7..40ac886882b5e5970a51ea1c220004c597c1bfb2 100644 (file)
@@ -1,8 +1,21 @@
-// Copyright (C) 2014-201x CEA/DEN, EDF R&D
-
-// File:        FeaturesPlugin_Scale.h
-// Created:     13 Jan 2017
-// Author:      Clarisse Genrault (CEA)
+// Copyright (C) 2014-2022  CEA/DEN, EDF R&D
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
 
 #ifndef FEATURESPLUGIN_SCALE_H_
 #define FEATURESPLUGIN_SCALE_H_
@@ -11,8 +24,6 @@
 
 #include <ModelAPI_Feature.h>
 
-#include <GeomAlgoAPI_Scale.h>
-
 /** \class FeaturesPlugin_Scale
  *  \ingroup Plugins
  *  \brief Feature for changing the scale of an object.
@@ -97,7 +108,7 @@ class FeaturesPlugin_Scale : public ModelAPI_Feature
     return MY_KIND;
   }
 
-  /// Creates a new part document if needed.
+  /// Performs the algorithm and stores results it in the data structure.
   FEATURESPLUGIN_EXPORT virtual void execute();
 
   /// Request for initialization of data model of the feature: adding all attributes.
@@ -110,13 +121,8 @@ private:
   /// Perform scale using a central point and a value of the scale.
   void performScaleByFactor();
 
-  /// Perform symmetry using a central point and three dimensions
+  /// Perform scale using a central point and three dimensions
   void performScaleByDimensions();
-
-  /// Perform the naming
-  void loadNamingDS(GeomAlgoAPI_Scale& theScaleAlgo,
-                    std::shared_ptr<ModelAPI_ResultBody> theResultBody,
-                    std::shared_ptr<GeomAPI_Shape> theBaseShape);
 };
 
 #endif // FEATURESPLUGIN_SCALE_H_
\ No newline at end of file