00001
00002
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00022
00028 #ifndef _exotkUtils_Geom_HeaderFile
00029 #define _exotkUtils_Geom_HeaderFile
00030
00031 #if _MSC_VER > 1000
00032 #pragma once
00033 #endif // _MSC_VER > 1000
00034 #ifndef _Standard_TypeDef_HeaderFile
00035 #include <Standard_TypeDef.hxx>
00036 #endif
00037 #ifndef _Standard_HeaderFile
00038 #include <Standard.hxx>
00039 #endif
00040
00041 class TCollection_AsciiString;
00042 class Handle_Geom_Surface;
00043 class Handle_Geom_Curve;
00044 enum GeomAbs_SurfaceType;
00045 enum GeomAbs_CurveType;
00046
00052 class exotkUtils_Geom
00053 {
00054 public:
00062 inline void* operator new(size_t,void* anAddress)
00063 {
00064 return anAddress;
00065 }
00066
00073 inline void* operator new(size_t size)
00074 {
00075 return Standard::Allocate(size);
00076 }
00077
00084 inline void operator delete(void *anAddress)
00085 {
00086 if (anAddress) Standard::Free((Standard_Address&)anAddress);
00087 }
00088
00095 Standard_EXPORT static TCollection_AsciiString NameFromSurfaceType(const Handle_Geom_Surface& aSurface);
00096
00103 Standard_EXPORT static TCollection_AsciiString NameFromCurveType(const Handle_Geom_Curve& aCurve);
00104
00111 Standard_EXPORT static TCollection_AsciiString NameFromSurfaceType(const enum GeomAbs_SurfaceType aSurfaceType);
00112
00119 Standard_EXPORT static TCollection_AsciiString NameFromCurveType(const enum GeomAbs_CurveType aCurveType);
00120 };
00121
00122 #endif