1 // Created on: 1994-06-01
2 // Created by: Christian CAILLET
3 // Copyright (c) 1994-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _IGESSelect_SelectBypassGroup_HeaderFile
18 #define _IGESSelect_SelectBypassGroup_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
23 #include <IFSelect_SelectExplore.hxx>
24 #include <Standard_Integer.hxx>
25 #include <Standard_Boolean.hxx>
26 class Interface_InterfaceError;
27 class Standard_Transient;
28 class Interface_Graph;
29 class Interface_EntityIterator;
30 class TCollection_AsciiString;
33 class IGESSelect_SelectBypassGroup;
34 DEFINE_STANDARD_HANDLE(IGESSelect_SelectBypassGroup, IFSelect_SelectExplore)
36 //! Selects a list built as follows :
37 //! Groups are entities type 402, forms 1,7,14,15 (Group,
38 //! Ordered or not, "WithoutBackPointer" or not)
40 //! Entities which are not GROUP are taken as such
41 //! For Groups, their list of Elements is explore
42 //! Hence, level 0 (D) recursively explores a Group if some of
43 //! its Elements are Groups. level 1 explores just at first level
44 class IGESSelect_SelectBypassGroup : public IFSelect_SelectExplore
50 //! Creates a SelectBypassGroup, by default all level
51 //! (level = 1 explores at first level)
52 Standard_EXPORT IGESSelect_SelectBypassGroup(const Standard_Integer level = 0);
54 //! Explores an entity : for a Group, gives its elements
55 //! Else, takes the entity itself
56 Standard_EXPORT Standard_Boolean Explore (const Standard_Integer level, const Handle(Standard_Transient)& ent, const Interface_Graph& G, Interface_EntityIterator& explored) const Standard_OVERRIDE;
58 //! Returns a text defining the criterium : "Content of Group"
59 Standard_EXPORT TCollection_AsciiString ExploreLabel() const Standard_OVERRIDE;
64 DEFINE_STANDARD_RTTIEXT(IGESSelect_SelectBypassGroup,IFSelect_SelectExplore)
84 #endif // _IGESSelect_SelectBypassGroup_HeaderFile