X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_ShapesGroup.h;h=db2a29ea4d4af497f395be5be985b2c6724380eb;hb=d398a8be8e0b0259b476b358d53d234ce4c82379;hp=8d6a1948ba44ab1c63c8994c495eb97c6fa5801e;hpb=93b0e81b39a2c0afe6972522eb2bb2bb3a1f0beb;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_ShapesGroup.h b/src/HYDROData/HYDROData_ShapesGroup.h index 8d6a1948..db2a29ea 100644 --- a/src/HYDROData/HYDROData_ShapesGroup.h +++ b/src/HYDROData/HYDROData_ShapesGroup.h @@ -1,3 +1,20 @@ +// Copyright (C) 2014-2015 EDF-R&D +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// #ifndef HYDROData_ShapesGroup_HeaderFile #define HYDROData_ShapesGroup_HeaderFile @@ -6,8 +23,12 @@ #include +#include + class TopoDS_Shape; class TopTools_ListOfShape; +class BRepBuilderAPI_MakeShape; +class ShapeUpgrade_UnifySameDomain; DEFINE_STANDARD_HANDLE(HYDROData_ShapesGroup, HYDROData_Entity) @@ -16,6 +37,28 @@ DEFINE_STANDARD_HANDLE(HYDROData_ShapesGroup, HYDROData_Entity) */ 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.