-- Created on: 1994-06-06 -- Created by: Jean Yves LEBEY -- Copyright (c) 1994-1999 Matra Datavision -- Copyright (c) 1999-2014 OPEN CASCADE SAS -- -- This file is part of Open CASCADE Technology software library. -- -- This library is free software; you can redistribute it and/or modify it under -- the terms of the GNU Lesser General Public License version 2.1 as published -- by the Free Software Foundation, with special exception defined in the file -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT -- distribution for complete text of the license and disclaimer of any warranty. -- -- Alternatively, this file may be used under the terms of Open CASCADE -- commercial license or contractual agreement. class InterferenceIterator from TopOpeBRepDS ---Purpose: Iterate on interferences of a list, matching -- conditions on interferences. -- Nota : -- inheritance of ListIteratorOfListOfInterference from -- TopOpeBRepDS has not been done because of the -- impossibility of naming the classical More, Next -- methods which are declared as static in -- TCollection_ListIteratorOfList ... . ListIteratorOfList -- has benn placed as a field of InterferenceIterator. uses Kind from TopOpeBRepDS, Interference from TopOpeBRepDS, ListOfInterference from TopOpeBRepDS, ListIteratorOfListOfInterference from TopOpeBRepDS is Create returns InterferenceIterator from TopOpeBRepDS; Create(L : ListOfInterference from TopOpeBRepDS) returns InterferenceIterator from TopOpeBRepDS; ---Purpose: Creates an iterator on the Interference of list . Init(me : in out; L : ListOfInterference from TopOpeBRepDS) ---Purpose: re-initialize interference iteration process on -- the list of interference . -- Conditions are not modified. is static; GeometryKind(me : in out; GK : Kind from TopOpeBRepDS) ---Purpose: define a condition on interference iteration process. -- Interference must match the Geometry Kind is static; Geometry(me : in out; G : Integer from Standard) ---Purpose: define a condition on interference iteration process. -- Interference must match the Geometry is static; SupportKind(me : in out; ST : Kind from TopOpeBRepDS) ---Purpose: define a condition on interference iteration process. -- Interference must match the Support Kind is static; Support(me : in out; S : Integer from Standard) ---Purpose: define a condition on interference iteration process. -- Interference must match the Support is static; Match(me : in out) ---Purpose: reach for an interference matching the conditions -- (if defined). is static; MatchInterference(me; I : Interference from TopOpeBRepDS) returns Boolean from Standard ---Purpose: Returns True if the Interference matches the -- conditions (if defined). -- If no conditions defined, returns True. is virtual; More(me) returns Boolean from Standard ---Purpose: Returns True if there is a current Interference in -- the iteration. is static; Next(me : in out) ---Purpose: Move to the next Interference. is static; Value(me) returns any Interference from TopOpeBRepDS ---Purpose: Returns the current Interference, matching the -- conditions (if defined). ---C++: return & is static; ChangeIterator(me : in out) returns ListIteratorOfListOfInterference from TopOpeBRepDS is static; ---C++: return & fields myIterator : ListIteratorOfListOfInterference from TopOpeBRepDS; myGKDef : Boolean from Standard; myGK : Kind from TopOpeBRepDS; -- Geometry Kind myGDef : Boolean from Standard; myG : Integer from Standard; -- Geometry mySKDef : Boolean from Standard; mySK : Kind from TopOpeBRepDS; -- Support Kind mySDef : Boolean from Standard; myS : Integer from Standard; -- Support end InterferenceIterator from TopOpeBRepDS;