#include <TopoDS_Wire.hxx>
#include <TopTools_SequenceOfShape.hxx>
+#include <TopTools_ListOfShape.hxx>
+#include <TopTools_ListIteratorOfListOfShape.hxx>
#include <TopExp_Explorer.hxx>
IsVerticesEquals( aFLastVert, aSLastVert, theIs2D );
}
+void HYDROData_ShapesTool::AddShapes( TopTools_SequenceOfShape& theShapes,
+ const TopTools_SequenceOfShape& theShapesToAdd )
+{
+ for ( int i = 1, n = theShapesToAdd.Length(); i <= n; ++i )
+ {
+ const TopoDS_Shape& aShape = theShapesToAdd.Value( i );
+ theShapes.Append( aShape );
+ }
+}
+
+void HYDROData_ShapesTool::AddShapes( TopTools_SequenceOfShape& theShapes,
+ const TopTools_ListOfShape& theShapesToAdd )
+{
+ TopTools_ListIteratorOfListOfShape anIter( theShapesToAdd );
+ for ( ; anIter.More(); anIter.Next() )
+ {
+ const TopoDS_Shape& aShape = anIter.Value();
+ theShapes.Append( aShape );
+ }
+}
+void HYDROData_ShapesTool::AddShapes( TopTools_ListOfShape& theShapes,
+ const TopTools_SequenceOfShape& theShapesToAdd )
+{
+ for ( int i = 1, n = theShapesToAdd.Length(); i <= n; ++i )
+ {
+ const TopoDS_Shape& aShape = theShapesToAdd.Value( i );
+ theShapes.Append( aShape );
+ }
+}
+
+void HYDROData_ShapesTool::AddShapes( TopTools_ListOfShape& theShapes,
+ const TopTools_ListOfShape& theShapesToAdd )
+{
+ TopTools_ListIteratorOfListOfShape anIter( theShapesToAdd );
+ for ( ; anIter.More(); anIter.Next() )
+ {
+ const TopoDS_Shape& aShape = anIter.Value();
+ theShapes.Append( aShape );
+ }
+}
class TopoDS_Vertex;
class TopoDS_Edge;
class TopTools_SequenceOfShape;
+class TopTools_ListOfShape;
class HYDRODATA_EXPORT HYDROData_ShapesTool {
static bool IsEdgesEquals( const TopoDS_Edge& theFirstEdge,
const TopoDS_Edge& theSecondEdge,
const bool theIs2D = false );
+
+ /**
+ * \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 );
};