X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_ShapesTool.h;h=db50bb204f75979d22c1207566513f6ce69c7d77;hb=81c9f5cdf82909d0aebd2c491c50fa7516cc80b7;hp=c689a8ea27764ab9ddae412fbbd2f794df76a566;hpb=bc7eea244978c24d9860a2149704dda40b810118;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_ShapesTool.h b/src/HYDROData/HYDROData_ShapesTool.h index c689a8ea..db50bb20 100644 --- a/src/HYDROData/HYDROData_ShapesTool.h +++ b/src/HYDROData/HYDROData_ShapesTool.h @@ -60,6 +60,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 @@ -91,6 +104,21 @@ public: */ 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 ); };