Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef _GEOMAlgo_PassKeyShape_HeaderFile
00024 #define _GEOMAlgo_PassKeyShape_HeaderFile
00025
00026 #ifndef _Standard_Integer_HeaderFile
00027 #include <Standard_Integer.hxx>
00028 #endif
00029 #ifndef _TopTools_IndexedMapOfShape_HeaderFile
00030 #include <TopTools_IndexedMapOfShape.hxx>
00031 #endif
00032 #ifndef _Standard_Boolean_HeaderFile
00033 #include <Standard_Boolean.hxx>
00034 #endif
00035 class TopoDS_Shape;
00036 class TopTools_ListOfShape;
00037
00038
00039 #ifndef _Standard_HeaderFile
00040 #include <Standard.hxx>
00041 #endif
00042 #ifndef _Standard_Macro_HeaderFile
00043 #include <Standard_Macro.hxx>
00044 #endif
00045
00046
00047 class GEOMAlgo_PassKeyShape {
00048
00049 public:
00050
00051 void* operator new(size_t,void* anAddress)
00052 {
00053 return anAddress;
00054 }
00055 void* operator new(size_t size)
00056 {
00057 return Standard::Allocate(size);
00058 }
00059 void operator delete(void *anAddress)
00060 {
00061 if (anAddress) Standard::Free((Standard_Address&)anAddress);
00062 }
00063
00064
00065
00066
00067 Standard_EXPORT GEOMAlgo_PassKeyShape();
00068 Standard_EXPORT virtual ~GEOMAlgo_PassKeyShape();
00069
00070
00071 Standard_EXPORT GEOMAlgo_PassKeyShape(const GEOMAlgo_PassKeyShape& Other);
00072
00073
00074 Standard_EXPORT GEOMAlgo_PassKeyShape& Assign(const GEOMAlgo_PassKeyShape& Other) ;
00075 GEOMAlgo_PassKeyShape& operator =(const GEOMAlgo_PassKeyShape& Other)
00076 {
00077 return Assign(Other);
00078 }
00079
00080
00081
00082 Standard_EXPORT void SetShapes(const TopoDS_Shape& aS) ;
00083
00084
00085 Standard_EXPORT void SetShapes(const TopoDS_Shape& aS1,const TopoDS_Shape& aS2) ;
00086
00087
00088 Standard_EXPORT void SetShapes(const TopoDS_Shape& aS1,const TopoDS_Shape& aS2,const TopoDS_Shape& aS3) ;
00089
00090
00091 Standard_EXPORT void SetShapes(const TopoDS_Shape& aS1,const TopoDS_Shape& aS2,const TopoDS_Shape& aS3,const TopoDS_Shape& aS4) ;
00092
00093
00094 Standard_EXPORT void SetShapes(const TopTools_ListOfShape& aLS) ;
00095
00096
00097 Standard_EXPORT void Clear() ;
00098
00099
00100 Standard_EXPORT Standard_Integer NbIds() const;
00101
00102
00103 Standard_EXPORT Standard_Boolean IsEqual(const GEOMAlgo_PassKeyShape& aOther) const;
00104
00105
00106 Standard_EXPORT Standard_Integer HashCode(const Standard_Integer Upper) const;
00107
00108
00109 Standard_EXPORT void Dump(const Standard_Integer aHex = 0) const;
00110
00111
00112
00113
00114
00115 protected:
00116
00117
00118
00119
00120
00121
00122
00123 Standard_Integer myNbIds;
00124 Standard_Integer mySum;
00125 Standard_Integer myUpper;
00126 TopTools_IndexedMapOfShape myMap;
00127
00128
00129 private:
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139 };
00140
00141
00142
00143
00144
00145
00146
00147
00148
00149 #endif