X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_ShapesGroup.h;h=69ac557e2d072af2e8a513979fb708b52f460628;hb=81c9f5cdf82909d0aebd2c491c50fa7516cc80b7;hp=e7e86265322d5f29b7257dded30ba974f333528e;hpb=792ed6e245f8b1953f2af46bd9c908a5488a756b;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_ShapesGroup.h b/src/HYDROData/HYDROData_ShapesGroup.h index e7e86265..69ac557e 100644 --- a/src/HYDROData/HYDROData_ShapesGroup.h +++ b/src/HYDROData/HYDROData_ShapesGroup.h @@ -6,15 +6,42 @@ #include +#include + class TopoDS_Shape; +class TopTools_ListOfShape; +class BRepBuilderAPI_MakeShape; +class ShapeUpgrade_UnifySameDomain; DEFINE_STANDARD_HANDLE(HYDROData_ShapesGroup, HYDROData_Entity) /**\class HYDROData_ShapesGroup - * \brief Class that stores/retreives the sequence of shapes. + * \brief Class that stores/retreives the sequence of shapes. */ class HYDROData_ShapesGroup : public HYDROData_Entity { +public: + + struct GroupDefinition + { + GroupDefinition() {} + + static void Update( NCollection_Sequence* theGroupsDefs, + BRepBuilderAPI_MakeShape* theAlgo ); + + static void Update( NCollection_Sequence* theGroupsDefs, + ShapeUpgrade_UnifySameDomain* theAlgo ); + + void Dump( std::ostream& theStream ) const; + + static void Dump( std::ostream& theStream, + const NCollection_Sequence& theGroups ); + + TCollection_AsciiString Name; + TopTools_SequenceOfShape Shapes; + }; + typedef NCollection_Sequence SeqOfGroupsDefs; + protected: /** * Enumeration of tags corresponding to the persistent object parameters. @@ -44,25 +71,30 @@ public: HYDRODATA_EXPORT virtual bool CanRemove(); public: - // Public methods to work with reference Edges + // Public methods to work with reference Shapes /** - * Add new one edge for the group. + * Add new one shape for the group. */ HYDRODATA_EXPORT virtual void AddShape( const TopoDS_Shape& theShape ); /** - * Sets new sequence of edges for the group. + * Sets new sequence of shapes for the group. */ HYDRODATA_EXPORT virtual void SetShapes( const TopTools_SequenceOfShape& theShapes ); /** - * Returns all edges of the group. + * Sets new list of shapes for the group. + */ + HYDRODATA_EXPORT virtual void SetShapes( const TopTools_ListOfShape& theShapes ); + + /** + * Returns all shapes of the group. */ HYDRODATA_EXPORT virtual void GetShapes( TopTools_SequenceOfShape& theShapes ) const; /** - * Removes all edges from the group. + * Removes all shapes from the group. */ HYDRODATA_EXPORT virtual void RemoveShapes();