summaryrefslogtreecommitdiff
path: root/inc/BOPTools_InterferenceLine.hxx
blob: 4be936c78ba270efef8fec0964689da6f80a066e (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
// 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 _BOPTools_InterferenceLine_HeaderFile
#define _BOPTools_InterferenceLine_HeaderFile

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

#ifndef _BOPTools_ListOfInterference_HeaderFile
#include <BOPTools_ListOfInterference.hxx>
#endif
#ifndef _BooleanOperations_KindOfInterference_HeaderFile
#include <BooleanOperations_KindOfInterference.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
class BOPTools_ListOfInterference;
class BOPTools_Interference;


//! class for storing information about all <br>
//!         interferences for given shape. <br>
//!         So,  for each shape in the DS, we will have <br>
//!         the  following interference list <br>
//!         (i1, t1, r1), (i2, t2, r2),...(iN, tN, rN), <br>
//!         where <br>
//!         (iN, tN, rN) - object of type  BOPTools_Interference <br>
//!         The  class 	BOPTools_InterferenceLine is  dedicated <br>
//!         to provide convinient tools to  manage this info. <br>
//! <br>
class BOPTools_InterferenceLine  {
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); 
  }

  
//! Empty constructor <br>
  Standard_EXPORT   BOPTools_InterferenceLine();
  
//! Returns info. list for interferences of given type <br>
  Standard_EXPORT    const BOPTools_ListOfInterference& GetOnType(const BooleanOperations_KindOfInterference aType) const;
  
//! Returns  TRUE if the interference of type <aType> <br>
//! with the shape <aWith> has already been computed. <br>
  Standard_EXPORT     Standard_Boolean IsComputed(const Standard_Integer aWith,const BooleanOperations_KindOfInterference aType) const;
  
//! Adds  info. about the Interference to the list <br>
  Standard_EXPORT     void AddInterference(const BOPTools_Interference& anInterference) ;
  
//! Adds  info. about the Interference to the list <br>
  Standard_EXPORT     void AddInterference(const Standard_Integer aWith,const BooleanOperations_KindOfInterference aType,const Standard_Integer anIndex) ;
  
//! Selector <br>
  Standard_EXPORT    const BOPTools_ListOfInterference& List() const;
  
//! Selector <br>
  Standard_EXPORT    const BOPTools_ListOfInterference& RealList() const;
  
//! Returns  TRUE if the list contains at least one  interference <br>
//! with non-empty result <br>
  Standard_EXPORT     Standard_Boolean HasInterference() const;





protected:





private:



BOPTools_ListOfInterference myList;
BOPTools_ListOfInterference mySSList;
BOPTools_ListOfInterference myESList;
BOPTools_ListOfInterference myVSList;
BOPTools_ListOfInterference myEEList;
BOPTools_ListOfInterference myVEList;
BOPTools_ListOfInterference myVVList;
BOPTools_ListOfInterference myEmptyList;


};





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


#endif