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 _NMTDS_ShapesDataStructure_HeaderFile
16 #define _NMTDS_ShapesDataStructure_HeaderFile
18 #ifndef _TopoDS_Shape_HeaderFile
19 #include <TopoDS_Shape.hxx>
21 #ifndef _NMTDS_CArray1OfIndexRange_HeaderFile
22 #include <NMTDS_CArray1OfIndexRange.hxx>
24 #ifndef _NMTDS_IndexedDataMapOfIntegerIndexedDataMapOfShapeInteger_HeaderFile
25 #include <NMTDS_IndexedDataMapOfIntegerIndexedDataMapOfShapeInteger.hxx>
27 #ifndef _BooleanOperations_ShapesDataStructure_HeaderFile
28 #include <BooleanOperations_ShapesDataStructure.hxx>
30 #ifndef _Standard_Integer_HeaderFile
31 #include <Standard_Integer.hxx>
34 class NMTDS_CArray1OfIndexRange;
37 #ifndef _Standard_HeaderFile
38 #include <Standard.hxx>
40 #ifndef _Standard_Macro_HeaderFile
41 #include <Standard_Macro.hxx>
44 class NMTDS_ShapesDataStructure : public BooleanOperations_ShapesDataStructure {
48 void* operator new(size_t,void* anAddress)
52 void* operator new(size_t size)
54 return Standard::Allocate(size);
56 void operator delete(void *anAddress)
58 if (anAddress) Standard::Free((Standard_Address&)anAddress);
62 Standard_EXPORT NMTDS_ShapesDataStructure();
63 Standard_EXPORT void SetCompositeShape(const TopoDS_Shape& aS) ;
64 Standard_EXPORT void Init() ;
65 Standard_EXPORT const NMTDS_CArray1OfIndexRange& Ranges() const;
66 Standard_EXPORT const TopoDS_Shape& CompositeShape() const;
67 Standard_EXPORT Standard_Integer ShapeRangeIndex(const Standard_Integer aId) const;
68 Standard_EXPORT virtual Standard_Integer Rank(const Standard_Integer anIndex) const;
69 Standard_EXPORT virtual Standard_Integer ShapeIndex(const TopoDS_Shape& aS,const Standard_Integer iRank) const;
83 TopoDS_Shape myCompositeShape;
84 NMTDS_CArray1OfIndexRange myRanges;
85 NMTDS_IndexedDataMapOfIntegerIndexedDataMapOfShapeInteger myShapeIndexMap;
104 // other Inline functions and methods (like "C++: function call" methods)