]> SALOME platform Git repositories - modules/geom.git/blob - src/NMTDS/NMTDS_ShapesDataStructure.hxx
Salome HOME
Improvement(Add a new preference to GEOM ? default ?Shading/Wireframe? visualization...
[modules/geom.git] / src / NMTDS / NMTDS_ShapesDataStructure.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 _NMTDS_ShapesDataStructure_HeaderFile
16 #define _NMTDS_ShapesDataStructure_HeaderFile
17
18 #ifndef _TopoDS_Shape_HeaderFile
19 #include <TopoDS_Shape.hxx>
20 #endif
21 #ifndef _NMTDS_CArray1OfIndexRange_HeaderFile
22 #include <NMTDS_CArray1OfIndexRange.hxx>
23 #endif
24 #ifndef _NMTDS_IndexedDataMapOfIntegerIndexedDataMapOfShapeInteger_HeaderFile
25 #include <NMTDS_IndexedDataMapOfIntegerIndexedDataMapOfShapeInteger.hxx>
26 #endif
27 #ifndef _BooleanOperations_ShapesDataStructure_HeaderFile
28 #include <BooleanOperations_ShapesDataStructure.hxx>
29 #endif
30 #ifndef _Standard_Integer_HeaderFile
31 #include <Standard_Integer.hxx>
32 #endif
33 class TopoDS_Shape;
34 class NMTDS_CArray1OfIndexRange;
35
36
37 #ifndef _Standard_HeaderFile
38 #include <Standard.hxx>
39 #endif
40 #ifndef _Standard_Macro_HeaderFile
41 #include <Standard_Macro.hxx>
42 #endif
43
44 class NMTDS_ShapesDataStructure  : public BooleanOperations_ShapesDataStructure {
45
46 public:
47
48     void* operator new(size_t,void* anAddress) 
49       {
50         return anAddress;
51       }
52     void* operator new(size_t size) 
53       { 
54         return Standard::Allocate(size); 
55       }
56     void  operator delete(void *anAddress) 
57       { 
58         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
59       }
60  // Methods PUBLIC
61  // 
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;
70
71
72
73
74
75 protected:
76
77  // Methods PROTECTED
78  // 
79
80
81  // Fields PROTECTED
82  //
83 TopoDS_Shape myCompositeShape;
84 NMTDS_CArray1OfIndexRange myRanges;
85 NMTDS_IndexedDataMapOfIntegerIndexedDataMapOfShapeInteger myShapeIndexMap;
86
87
88 private: 
89
90  // Methods PRIVATE
91  // 
92
93
94  // Fields PRIVATE
95  //
96
97
98 };
99
100
101
102
103
104 // other Inline functions and methods (like "C++: function call" methods)
105 //
106
107
108 #endif