1 // File generated by CPPExt (Value)
2 // Copyright (C) 1991,1995 by
4 // MATRA DATAVISION, FRANCE
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.
12 // At the termination of the contract, the software and all copies of this
13 // software must be deleted.
15 #ifndef _NMTTools_CommonBlock_HeaderFile
16 #define _NMTTools_CommonBlock_HeaderFile
18 #ifndef _BOPTools_ListOfPaveBlock_HeaderFile
19 #include <BOPTools_ListOfPaveBlock.hxx>
21 #ifndef _TColStd_ListOfInteger_HeaderFile
22 #include <TColStd_ListOfInteger.hxx>
24 #ifndef _Standard_Integer_HeaderFile
25 #include <Standard_Integer.hxx>
27 #ifndef _Standard_Boolean_HeaderFile
28 #include <Standard_Boolean.hxx>
30 class BOPTools_PaveBlock;
31 class TColStd_ListOfInteger;
32 class BOPTools_ListOfPaveBlock;
35 #ifndef _Standard_HeaderFile
36 #include <Standard.hxx>
38 #ifndef _Standard_Macro_HeaderFile
39 #include <Standard_Macro.hxx>
42 class NMTTools_CommonBlock {
46 void* operator new(size_t,void* anAddress)
50 void* operator new(size_t size)
52 return Standard::Allocate(size);
54 void operator delete(void *anAddress)
56 if (anAddress) Standard::Free((Standard_Address&)anAddress);
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;
86 BOPTools_ListOfPaveBlock myPaveBlocks;
87 TColStd_ListOfInteger myFaces;
106 // other Inline functions and methods (like "C++: function call" methods)