summaryrefslogtreecommitdiff
path: root/inc/TopOpeBRepDS_InterferenceIterator.hxx
blob: e48b87221e6cd8e983516f04f422071884c1c0cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _TopOpeBRepDS_InterferenceIterator_HeaderFile
#define _TopOpeBRepDS_InterferenceIterator_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif

#ifndef _TopOpeBRepDS_ListIteratorOfListOfInterference_HeaderFile
#include <TopOpeBRepDS_ListIteratorOfListOfInterference.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _TopOpeBRepDS_Kind_HeaderFile
#include <TopOpeBRepDS_Kind.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Handle_TopOpeBRepDS_Interference_HeaderFile
#include <Handle_TopOpeBRepDS_Interference.hxx>
#endif
class TopOpeBRepDS_ListOfInterference;
class TopOpeBRepDS_Interference;
class TopOpeBRepDS_ListIteratorOfListOfInterference;


//! Iterate  on  interferences  of  a  list,  matching <br>
//!          conditions  on   interferences. <br>
//! Nota   : <br>
//!          inheritance  of   ListIteratorOfListOfInterference  from <br>
//!          TopOpeBRepDS  has  not   been  done   because  of  the <br>
//!          impossibility of naming  the classical  More, Next <br>
//!          methods  which are declared as static in <br>
//!          TCollection_ListIteratorOfList ... . ListIteratorOfList <br>
//!          has benn placed as a field of InterferenceIterator. <br>
class TopOpeBRepDS_InterferenceIterator  {
public:

  void* operator new(size_t,void* anAddress) 
  {
    return anAddress;
  }
  void* operator new(size_t size) 
  {
    return Standard::Allocate(size); 
  }
  void  operator delete(void *anAddress) 
  {
    if (anAddress) Standard::Free((Standard_Address&)anAddress); 
  }

  
  Standard_EXPORT   TopOpeBRepDS_InterferenceIterator();
  //! Creates an iterator on the Interference of list <L>. <br>
  Standard_EXPORT   TopOpeBRepDS_InterferenceIterator(const TopOpeBRepDS_ListOfInterference& L);
  //! re-initialize  interference iteration  process  on <br>
//!          the list of interference <L>. <br>
//!          Conditions are not modified. <br>
  Standard_EXPORT     void Init(const TopOpeBRepDS_ListOfInterference& L) ;
  //! define a condition on interference iteration process. <br>
//!          Interference must match the Geometry Kind <ST> <br>
  Standard_EXPORT     void GeometryKind(const TopOpeBRepDS_Kind GK) ;
  //! define a condition on interference iteration process. <br>
//!          Interference must match the Geometry <G> <br>
  Standard_EXPORT     void Geometry(const Standard_Integer G) ;
  //! define a condition on interference iteration process. <br>
//!          Interference must match the Support Kind <ST> <br>
  Standard_EXPORT     void SupportKind(const TopOpeBRepDS_Kind ST) ;
  //! define a condition on interference iteration process. <br>
//!          Interference must match the Support <S> <br>
  Standard_EXPORT     void Support(const Standard_Integer S) ;
  //! reach for an interference  matching the conditions <br>
//!          (if  defined). <br>
  Standard_EXPORT     void Match() ;
  //! Returns  True if the Interference <I>  matches the <br>
//!          conditions (if defined). <br>
//!          If no conditions defined, returns True. <br>
  Standard_EXPORT   virtual  Standard_Boolean MatchInterference(const Handle(TopOpeBRepDS_Interference)& I) const;
  //! Returns True if there is a current Interference in <br>
//!          the iteration. <br>
  Standard_EXPORT     Standard_Boolean More() const;
  //! Move to the next Interference. <br>
  Standard_EXPORT     void Next() ;
  //! Returns   the   current   Interference,   matching   the <br>
//!          conditions  (if defined). <br>
  Standard_EXPORT     Handle_TopOpeBRepDS_Interference& Value() const;
  
  Standard_EXPORT     TopOpeBRepDS_ListIteratorOfListOfInterference& ChangeIterator() ;





protected:





private:



TopOpeBRepDS_ListIteratorOfListOfInterference myIterator;
Standard_Boolean myGKDef;
TopOpeBRepDS_Kind myGK;
Standard_Boolean myGDef;
Standard_Integer myG;
Standard_Boolean mySKDef;
TopOpeBRepDS_Kind mySK;
Standard_Boolean mySDef;
Standard_Integer myS;


};





// other Inline functions and methods (like "C++: function call" methods)


#endif