File indexing completed on 2026-09-26 09:03:19
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _GeomTools_Curve2dSet_HeaderFile
0018 #define _GeomTools_Curve2dSet_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <Standard_Transient.hxx>
0025 #include <NCollection_IndexedMap.hxx>
0026 #include <Standard_Integer.hxx>
0027 #include <Standard_OStream.hxx>
0028 #include <Standard_IStream.hxx>
0029 #include <Message_ProgressRange.hxx>
0030
0031 class Geom2d_Curve;
0032
0033
0034 class GeomTools_Curve2dSet
0035 {
0036 public:
0037 DEFINE_STANDARD_ALLOC
0038
0039
0040 Standard_EXPORT GeomTools_Curve2dSet();
0041
0042
0043 Standard_EXPORT void Clear();
0044
0045
0046
0047 Standard_EXPORT int Add(const occ::handle<Geom2d_Curve>& C);
0048
0049
0050 Standard_EXPORT occ::handle<Geom2d_Curve> Curve2d(const int I) const;
0051
0052
0053 Standard_EXPORT int Index(const occ::handle<Geom2d_Curve>& C) const;
0054
0055
0056 Standard_EXPORT void Dump(Standard_OStream& OS) const;
0057
0058
0059
0060 Standard_EXPORT void Write(
0061 Standard_OStream& OS,
0062 const Message_ProgressRange& theProgress = Message_ProgressRange()) const;
0063
0064
0065
0066 Standard_EXPORT void Read(Standard_IStream& IS,
0067 const Message_ProgressRange& theProgress = Message_ProgressRange());
0068
0069
0070
0071 Standard_EXPORT static void PrintCurve2d(const occ::handle<Geom2d_Curve>& C,
0072 Standard_OStream& OS,
0073 const bool compact = false);
0074
0075
0076
0077
0078 Standard_EXPORT static occ::handle<Geom2d_Curve> ReadCurve2d(Standard_IStream& IS);
0079
0080 private:
0081 NCollection_IndexedMap<occ::handle<Standard_Transient>> myMap;
0082 };
0083
0084 #endif