Salome HOME
Merge branch 'BR_MULTI_BATHS' into HEAD
[modules/hydro.git] / src / HYDROData / HYDROData_ShapesTool.h
index 886b5808e029f90fc79bae6998aabb234e348d96..65b9b277fa9c65878d2a002826dd0bc65820864f 100644 (file)
@@ -1,3 +1,20 @@
+// Copyright (C) 2014-2015  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 HYDROData_ShapesTool_HeaderFile
 #define HYDROData_ShapesTool_HeaderFile
@@ -60,6 +77,19 @@ public:
                                                        const TopoDS_Edge& theSecondEdge,
                                                        const bool         theIs2D = false );
 
+  /**
+   * \brief Translate the shape to the given distance.
+   * \param theShape shape to translate
+   * \param theDx X vector component
+   * \param theDy Y vector component
+   * \param theDz Z vector component
+   * \return result translated shape
+   */
+  static TopoDS_Shape                   Translated( const TopoDS_Shape& theShape,
+                                                    const double        theDx,
+                                                    const double        theDy,
+                                                    const double        theDz );
+
   /**
    * \brief Adds the sequence of shapes to other sequence.
    * \param theShapes sequence to which the shapes will be added