0024023: Revamp the OCCT Handle -- downcast (automatic)
[occt.git] / src / TopOpeBRepDS / TopOpeBRepDS_InterferenceIterator.cdl
CommitLineData
b311480e 1-- Created on: 1994-06-06
2-- Created by: Jean Yves LEBEY
3-- Copyright (c) 1994-1999 Matra Datavision
973c2be1 4-- Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5--
973c2be1 6-- This file is part of Open CASCADE Technology software library.
b311480e 7--
d5f74e42 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
973c2be1 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.
b311480e 13--
973c2be1 14-- Alternatively, this file may be used under the terms of Open CASCADE
15-- commercial license or contractual agreement.
7fd59977 16
17class InterferenceIterator from TopOpeBRepDS
18
19 ---Purpose: Iterate on interferences of a list, matching
20 -- conditions on interferences.
21 -- Nota :
22 -- inheritance of ListIteratorOfListOfInterference from
23 -- TopOpeBRepDS has not been done because of the
24 -- impossibility of naming the classical More, Next
25 -- methods which are declared as static in
26 -- TCollection_ListIteratorOfList ... . ListIteratorOfList
27 -- has benn placed as a field of InterferenceIterator.
28
29uses
30
31 Kind from TopOpeBRepDS,
32 Interference from TopOpeBRepDS,
33 ListOfInterference from TopOpeBRepDS,
34 ListIteratorOfListOfInterference from TopOpeBRepDS
35
36is
37
38 Create returns InterferenceIterator from TopOpeBRepDS;
39
40 Create(L : ListOfInterference from TopOpeBRepDS)
41 returns InterferenceIterator from TopOpeBRepDS;
42 ---Purpose: Creates an iterator on the Interference of list <L>.
43
44 Init(me : in out; L : ListOfInterference from TopOpeBRepDS)
45 ---Purpose: re-initialize interference iteration process on
46 -- the list of interference <L>.
47 -- Conditions are not modified.
48 is static;
49
50 GeometryKind(me : in out; GK : Kind from TopOpeBRepDS)
51 ---Purpose: define a condition on interference iteration process.
52 -- Interference must match the Geometry Kind <ST>
53 is static;
54
55 Geometry(me : in out; G : Integer from Standard)
56 ---Purpose: define a condition on interference iteration process.
57 -- Interference must match the Geometry <G>
58 is static;
59
60 SupportKind(me : in out; ST : Kind from TopOpeBRepDS)
61 ---Purpose: define a condition on interference iteration process.
62 -- Interference must match the Support Kind <ST>
63 is static;
64
65 Support(me : in out; S : Integer from Standard)
66 ---Purpose: define a condition on interference iteration process.
67 -- Interference must match the Support <S>
68 is static;
69
70 Match(me : in out)
71 ---Purpose: reach for an interference matching the conditions
72 -- (if defined).
73 is static;
74
75 MatchInterference(me; I : Interference from TopOpeBRepDS)
76 returns Boolean from Standard
77 ---Purpose: Returns True if the Interference <I> matches the
78 -- conditions (if defined).
79 -- If no conditions defined, returns True.
80 is virtual;
81
82 More(me) returns Boolean from Standard
83 ---Purpose: Returns True if there is a current Interference in
84 -- the iteration.
85 is static;
86
87 Next(me : in out)
88 ---Purpose: Move to the next Interference.
89 is static;
90
b7c077b9 91 Value(me) returns Interference from TopOpeBRepDS
7fd59977 92 ---Purpose: Returns the current Interference, matching the
93 -- conditions (if defined).
b7c077b9 94 ---C++: return const &
7fd59977 95 is static;
96
97 ChangeIterator(me : in out)
98 returns ListIteratorOfListOfInterference from TopOpeBRepDS
99 is static;
100 ---C++: return &
101
102fields
103
104 myIterator : ListIteratorOfListOfInterference from TopOpeBRepDS;
105
106 myGKDef : Boolean from Standard;
107 myGK : Kind from TopOpeBRepDS; -- Geometry Kind
108 myGDef : Boolean from Standard;
109 myG : Integer from Standard; -- Geometry
110
111 mySKDef : Boolean from Standard;
112 mySK : Kind from TopOpeBRepDS; -- Support Kind
113 mySDef : Boolean from Standard;
114 myS : Integer from Standard; -- Support
115
116end InterferenceIterator from TopOpeBRepDS;