0026377: Passing Handle objects as arguments to functions as non-const reference...
[occt.git] / src / IGESSelect / IGESSelect_SelectBypassGroup.hxx
CommitLineData
42cf5bc1 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
5//
6// This file is part of Open CASCADE Technology software library.
7//
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.
13//
14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
16
17#ifndef _IGESSelect_SelectBypassGroup_HeaderFile
18#define _IGESSelect_SelectBypassGroup_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_Type.hxx>
22
23#include <IFSelect_SelectExplore.hxx>
24#include <Standard_Integer.hxx>
25#include <Standard_Boolean.hxx>
26class Interface_InterfaceError;
27class Standard_Transient;
28class Interface_Graph;
29class Interface_EntityIterator;
30class TCollection_AsciiString;
31
32
33class IGESSelect_SelectBypassGroup;
34DEFINE_STANDARD_HANDLE(IGESSelect_SelectBypassGroup, IFSelect_SelectExplore)
35
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)
39//!
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
44class IGESSelect_SelectBypassGroup : public IFSelect_SelectExplore
45{
46
47public:
48
49
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);
53
54 //! Explores an entity : for a Group, gives its elements
55 //! Else, takes the entity itself
79104795 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;
42cf5bc1 57
58 //! Returns a text defining the criterium : "Content of Group"
79104795 59 Standard_EXPORT TCollection_AsciiString ExploreLabel() const Standard_OVERRIDE;
42cf5bc1 60
61
62
63
92efcf78 64 DEFINE_STANDARD_RTTIEXT(IGESSelect_SelectBypassGroup,IFSelect_SelectExplore)
42cf5bc1 65
66protected:
67
68
69
70
71private:
72
73
74
75
76};
77
78
79
80
81
82
83
84#endif // _IGESSelect_SelectBypassGroup_HeaderFile