Salome HOME
refs #430: incorrect coordinates in dump polyline
[modules/hydro.git] / src / HYDROData / HYDROData_ShapesTool.h
index 893f4c50f53aa837f2ab68dddfd30e84ebae0260..db50bb204f75979d22c1207566513f6ce69c7d77 100644 (file)
@@ -10,6 +10,7 @@ class TopoDS_Shape;
 class TopoDS_Vertex;
 class TopoDS_Edge;
 class TopTools_SequenceOfShape;
+class TopTools_ListOfShape;
 
 class HYDRODATA_EXPORT HYDROData_ShapesTool {
 
@@ -58,6 +59,66 @@ public:
   static bool                           IsEdgesEquals( const TopoDS_Edge& theFirstEdge,
                                                        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
+   * \param theShapesToAdd sequence from which the shapes will be extracted
+   */
+  static void                           AddShapes( TopTools_SequenceOfShape&       theShapes,
+                                                   const TopTools_SequenceOfShape& theShapesToAdd );
+
+  /**
+   * \brief Adds the list of shapes to the sequence.
+   * \param theShapes sequence to which the shapes will be added
+   * \param theShapesToAdd list from which the shapes will be extracted
+   */
+  static void                           AddShapes( TopTools_SequenceOfShape&   theShapes,
+                                                   const TopTools_ListOfShape& theShapesToAdd );
+
+  /**
+   * \brief Adds the sequence of shapes to the list.
+   * \param theShapes list to which the shapes will be added
+   * \param theShapesToAdd sequence from which the shapes will be extracted
+   */
+  static void                           AddShapes( TopTools_ListOfShape&           theShapes,
+                                                   const TopTools_SequenceOfShape& theShapesToAdd );
+
+  /**
+   * \brief Adds the list of shapes to other list.
+   * \param theShapes list to which the shapes will be added
+   * \param theShapesToAdd list from which the shapes will be extracted
+   */
+  static void                           AddShapes( TopTools_ListOfShape&       theShapes,
+                                                   const TopTools_ListOfShape& theShapesToAdd );
+
+
+  /**
+   * \brief Explode and dump the shape to the stream.
+   */
+  static void                           DumpShapeSubShapes( std::ostream&           theStream,
+                                                            const char*             theTitle,
+                                                            const TopoDS_Shape&     theShape,
+                                                            const TopAbs_ShapeEnum& theExpType );
+
+  /**
+   * \brief Dump the shapes sequence to the stream.
+   */
+  static void                           DumpSequenceOfShapes( std::ostream&                   theStream,
+                                                              const TopTools_SequenceOfShape& theShapes );
 };