#include <TopoDS.hxx>
#include <TopoDS_Edge.hxx>
+#include <TopTools_ListOfShape.hxx>
+#include <TopTools_ListIteratorOfListOfShape.hxx>
+
#include <TNaming_Builder.hxx>
#include <TNaming_NamedShape.hxx>
}
}
+void HYDROData_ShapesGroup::SetShapes( const TopTools_ListOfShape& theShapes )
+{
+ RemoveShapes();
+
+ TopTools_ListIteratorOfListOfShape anIter( theShapes );
+ for ( ; anIter.More(); anIter.Next() )
+ {
+ const TopoDS_Shape& aShape = anIter.Value();
+ AddShape( aShape );
+ }
+}
+
void HYDROData_ShapesGroup::GetShapes( TopTools_SequenceOfShape& theShapes ) const
{
theShapes.Clear();
#include <TopTools_SequenceOfShape.hxx>
class TopoDS_Shape;
+class TopTools_ListOfShape;
DEFINE_STANDARD_HANDLE(HYDROData_ShapesGroup, HYDROData_Entity)
*/
HYDRODATA_EXPORT virtual void SetShapes( const TopTools_SequenceOfShape& theShapes );
+ /**
+ * Sets new list of shapes for the group.
+ */
+ HYDRODATA_EXPORT virtual void SetShapes( const TopTools_ListOfShape& theShapes );
+
/**
* Returns all shapes of the group.
*/