Salome HOME
4964ae8eae7dae5c3491513db4b2a9d19be15ccd
[modules/geom.git] / src / NMTTools / NMTTools_CommonBlock.hxx
1 // File generated by CPPExt (Value)
2 //                     Copyright (C) 1991,1995 by
3 //  
4 //                      MATRA DATAVISION, FRANCE
5 //  
6 // This software is furnished in accordance with the terms and conditions
7 // of the contract and with the inclusion of the above copyright notice.
8 // This software or any other copy thereof may not be provided or otherwise
9 // be made available to any other person. No title to an ownership of the
10 // software is hereby transferred.
11 //  
12 // At the termination of the contract, the software and all copies of this
13 // software must be deleted.
14
15 #ifndef _NMTTools_CommonBlock_HeaderFile
16 #define _NMTTools_CommonBlock_HeaderFile
17
18 #ifndef _BOPTools_ListOfPaveBlock_HeaderFile
19 #include <BOPTools_ListOfPaveBlock.hxx>
20 #endif
21 #ifndef _TColStd_ListOfInteger_HeaderFile
22 #include <TColStd_ListOfInteger.hxx>
23 #endif
24 #ifndef _Standard_Integer_HeaderFile
25 #include <Standard_Integer.hxx>
26 #endif
27 #ifndef _Standard_Boolean_HeaderFile
28 #include <Standard_Boolean.hxx>
29 #endif
30 class BOPTools_PaveBlock;
31 class TColStd_ListOfInteger;
32 class BOPTools_ListOfPaveBlock;
33
34
35 #ifndef _Standard_HeaderFile
36 #include <Standard.hxx>
37 #endif
38 #ifndef _Standard_Macro_HeaderFile
39 #include <Standard_Macro.hxx>
40 #endif
41
42 class NMTTools_CommonBlock  {
43
44 public:
45
46     void* operator new(size_t,void* anAddress) 
47       {
48         return anAddress;
49       }
50     void* operator new(size_t size) 
51       { 
52         return Standard::Allocate(size); 
53       }
54     void  operator delete(void *anAddress) 
55       { 
56         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
57       }
58  // Methods PUBLIC
59  // 
60 Standard_EXPORT NMTTools_CommonBlock();
61 Standard_EXPORT   void AddPaveBlock(const BOPTools_PaveBlock& aPB) ;
62 Standard_EXPORT   void AddFace(const Standard_Integer aF) ;
63 Standard_EXPORT   void AddFaces(const TColStd_ListOfInteger& aLF) ;
64 Standard_EXPORT  const BOPTools_ListOfPaveBlock& PaveBlocks() const;
65 Standard_EXPORT  const TColStd_ListOfInteger& Faces() const;
66 Standard_EXPORT  const BOPTools_PaveBlock& PaveBlock1() const;
67 Standard_EXPORT   BOPTools_PaveBlock& PaveBlock1(const Standard_Integer anIx) ;
68 Standard_EXPORT   BOPTools_PaveBlock& PaveBlockOnEdge(const Standard_Integer anIndex) ;
69 Standard_EXPORT   Standard_Boolean IsPaveBlockOnFace(const Standard_Integer anIndex) const;
70 Standard_EXPORT   Standard_Boolean IsPaveBlockOnEdge(const Standard_Integer anIndex) const;
71 Standard_EXPORT   Standard_Boolean IsEqual(const NMTTools_CommonBlock& aCB) const;
72 Standard_EXPORT   Standard_Boolean Contains(const BOPTools_PaveBlock& aPB) const;
73
74
75
76
77
78 protected:
79
80  // Methods PROTECTED
81  // 
82
83
84  // Fields PROTECTED
85  //
86 BOPTools_ListOfPaveBlock myPaveBlocks;
87 TColStd_ListOfInteger myFaces;
88
89
90 private: 
91
92  // Methods PRIVATE
93  // 
94
95
96  // Fields PRIVATE
97  //
98
99
100 };
101
102
103
104
105
106 // other Inline functions and methods (like "C++: function call" methods)
107 //
108
109
110 #endif