1 -- Created on: 1994-06-01
2 -- Created by: Christian CAILLET
3 -- Copyright (c) 1994-1999 Matra Datavision
4 -- Copyright (c) 1999-2012 OPEN CASCADE SAS
6 -- The content of this file is subject to the Open CASCADE Technology Public
7 -- License Version 6.5 (the "License"). You may not use the content of this file
8 -- except in compliance with the License. Please obtain a copy of the License
9 -- at http://www.opencascade.org and read it completely before using this file.
11 -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12 -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
14 -- The Original Code and all software distributed under the License is
15 -- distributed on an "AS IS" basis, without warranty of any kind, and the
16 -- Initial Developer hereby disclaims all such warranties, including without
17 -- limitation, any warranties of merchantability, fitness for a particular
18 -- purpose or non-infringement. Please see the License for the specific terms
19 -- and conditions governing the rights and limitations under the License.
23 class SelectBypassGroup from IGESSelect inherits SelectExplore
25 ---Purpose : Selects a list built as follows :
26 -- Groups are entities type 402, forms 1,7,14,15 (Group,
27 -- Ordered or not, "WithoutBackPointer" or not)
29 -- Entities which are not GROUP are taken as such
30 -- For Groups, their list of Elements is explore
31 -- Hence, level 0 (D) recursively explores a Group if some of
32 -- its Elements are Groups. level 1 explores just at first level
34 uses AsciiString from TCollection, Transient, EntityIterator, Graph
40 Create (level : Integer = 0) returns mutable SelectBypassGroup;
41 ---Purpose : Creates a SelectBypassGroup, by default all level
42 -- (level = 1 explores at first level)
44 Explore (me; level : Integer; ent : Transient; G : Graph;
45 explored : in out EntityIterator)
47 ---Purpose : Explores an entity : for a Group, gives its elements
48 -- Else, takes the entity itself
51 ExploreLabel (me) returns AsciiString from TCollection;
52 ---Purpose : Returns a text defining the criterium : "Content of Group"
54 end SelectBypassGroup;