File indexing completed on 2025-01-18 10:05:28
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _TopTools_ShapeSet_HeaderFile
0018 #define _TopTools_ShapeSet_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022
0023 #include <TopTools_IndexedMapOfShape.hxx>
0024 #include <TopTools_LocationSet.hxx>
0025 #include <Standard_Integer.hxx>
0026 #include <Standard_OStream.hxx>
0027 #include <Standard_IStream.hxx>
0028 #include <TopAbs_ShapeEnum.hxx>
0029 #include <TopTools_FormatVersion.hxx>
0030
0031 class TopoDS_Shape;
0032 class TCollection_AsciiString;
0033
0034
0035
0036
0037
0038
0039
0040 class TopTools_ShapeSet
0041 {
0042 public:
0043
0044 DEFINE_STANDARD_ALLOC
0045
0046
0047
0048 Standard_EXPORT TopTools_ShapeSet();
0049
0050 Standard_EXPORT virtual ~TopTools_ShapeSet();
0051
0052
0053 Standard_EXPORT void SetFormatNb (const Standard_Integer theFormatNb);
0054
0055
0056 Standard_EXPORT Standard_Integer FormatNb() const;
0057
0058
0059
0060 Standard_EXPORT virtual void Clear();
0061
0062
0063
0064 Standard_EXPORT Standard_Integer Add (const TopoDS_Shape& S);
0065
0066
0067 Standard_EXPORT const TopoDS_Shape& Shape (const Standard_Integer I) const;
0068
0069
0070 Standard_EXPORT Standard_Integer Index (const TopoDS_Shape& S) const;
0071
0072 Standard_EXPORT const TopTools_LocationSet& Locations() const;
0073
0074 Standard_EXPORT TopTools_LocationSet& ChangeLocations();
0075
0076
0077
0078 Standard_EXPORT Standard_OStream& DumpExtent (Standard_OStream& OS) const;
0079
0080
0081
0082 Standard_EXPORT void DumpExtent (TCollection_AsciiString& S) const;
0083
0084
0085
0086
0087
0088
0089
0090
0091
0092
0093
0094 Standard_EXPORT virtual void Dump (Standard_OStream& OS) const;
0095
0096
0097
0098
0099
0100
0101
0102
0103
0104
0105
0106
0107
0108 Standard_EXPORT virtual void Write (Standard_OStream& OS,
0109 const Message_ProgressRange& theProgress = Message_ProgressRange());
0110
0111
0112
0113
0114
0115
0116
0117
0118
0119
0120
0121
0122
0123 Standard_EXPORT virtual void Read (Standard_IStream& IS,
0124 const Message_ProgressRange& theProgress = Message_ProgressRange());
0125
0126
0127
0128
0129 Standard_EXPORT void Dump (const TopoDS_Shape& S, Standard_OStream& OS) const;
0130
0131
0132
0133
0134 Standard_EXPORT void Write (const TopoDS_Shape& S, Standard_OStream& OS) const;
0135
0136
0137 Standard_EXPORT void Read (TopoDS_Shape& S, Standard_IStream& IS) const;
0138
0139
0140 Standard_EXPORT virtual void AddGeometry (const TopoDS_Shape& S);
0141
0142
0143 Standard_EXPORT virtual void DumpGeometry (Standard_OStream& OS) const;
0144
0145
0146
0147 Standard_EXPORT virtual void WriteGeometry (Standard_OStream& OS,
0148 const Message_ProgressRange& theProgress = Message_ProgressRange());
0149
0150
0151 Standard_EXPORT virtual void ReadGeometry (Standard_IStream& IS,
0152 const Message_ProgressRange& theProgress = Message_ProgressRange());
0153
0154
0155 Standard_EXPORT virtual void DumpGeometry (const TopoDS_Shape& S, Standard_OStream& OS) const;
0156
0157
0158
0159 Standard_EXPORT virtual void WriteGeometry (const TopoDS_Shape& S, Standard_OStream& OS) const;
0160
0161
0162
0163 Standard_EXPORT virtual void ReadGeometry (const TopAbs_ShapeEnum T, Standard_IStream& IS, TopoDS_Shape& S);
0164
0165
0166
0167
0168 Standard_EXPORT virtual void AddShapes (TopoDS_Shape& S1, const TopoDS_Shape& S2);
0169
0170
0171
0172
0173
0174
0175 Standard_EXPORT virtual void Check (const TopAbs_ShapeEnum T, TopoDS_Shape& S);
0176
0177
0178 Standard_EXPORT Standard_Integer NbShapes() const;
0179
0180 public:
0181
0182 static const Standard_CString THE_ASCII_VERSIONS[TopTools_FormatVersion_VERSION_3 + 1];
0183
0184 private:
0185
0186
0187
0188 Standard_EXPORT void Read (TopoDS_Shape& S, Standard_IStream& IS, const Standard_Integer NbShapes) const;
0189
0190
0191 TopTools_IndexedMapOfShape myShapes;
0192 TopTools_LocationSet myLocations;
0193 Standard_Integer myFormatNb;
0194
0195 };
0196
0197 #endif