File indexing completed on 2025-01-18 10:03:01
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _BinTools_SurfaceSet_HeaderFile
0017 #define _BinTools_SurfaceSet_HeaderFile
0018
0019 #include <Standard.hxx>
0020 #include <Standard_DefineAlloc.hxx>
0021 #include <Standard_Handle.hxx>
0022
0023 #include <TColStd_IndexedMapOfTransient.hxx>
0024 #include <Standard_Integer.hxx>
0025 #include <Standard_OStream.hxx>
0026 #include <Standard_IStream.hxx>
0027
0028 #include <Message_ProgressRange.hxx>
0029 #include <BinTools_OStream.hxx>
0030
0031 class Geom_Surface;
0032
0033
0034
0035 class BinTools_SurfaceSet
0036 {
0037 public:
0038
0039 DEFINE_STANDARD_ALLOC
0040
0041
0042
0043 Standard_EXPORT BinTools_SurfaceSet();
0044
0045
0046 Standard_EXPORT void Clear();
0047
0048
0049
0050 Standard_EXPORT Standard_Integer Add (const Handle(Geom_Surface)& S);
0051
0052
0053 Standard_EXPORT Handle(Geom_Surface) Surface (const Standard_Integer I) const;
0054
0055
0056 Standard_EXPORT Standard_Integer Index (const Handle(Geom_Surface)& S) const;
0057
0058
0059
0060 Standard_EXPORT void Write (Standard_OStream& OS,
0061 const Message_ProgressRange& theRange = Message_ProgressRange()) const;
0062
0063
0064
0065 Standard_EXPORT void Read (Standard_IStream& IS,
0066 const Message_ProgressRange& therange = Message_ProgressRange());
0067
0068
0069
0070 Standard_EXPORT static void WriteSurface (const Handle(Geom_Surface)& S, BinTools_OStream& OS);
0071
0072
0073
0074
0075 Standard_EXPORT static Standard_IStream& ReadSurface (Standard_IStream& IS, Handle(Geom_Surface)& S);
0076
0077 private:
0078
0079 TColStd_IndexedMapOfTransient myMap;
0080
0081 };
0082
0083 #endif