File indexing completed on 2026-05-31 08:31:10
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef _StdObject_Shape_HeaderFile
0015 #define _StdObject_Shape_HeaderFile
0016
0017 #include <StdObject_Location.hxx>
0018 #include <StdPersistent_TopoDS.hxx>
0019
0020 #include <TopoDS_Shape.hxx>
0021
0022 class StdObject_Shape
0023 {
0024 friend class ShapePersistent_TopoDS;
0025
0026 public:
0027
0028 StdObject_Shape()
0029 : myOrient(0)
0030 {
0031 }
0032
0033
0034 Standard_EXPORT TopoDS_Shape Import() const;
0035
0036 Standard_EXPORT void PChildren(StdObjMgt_Persistent::SequenceOfPersistent& theChildren) const;
0037
0038 protected:
0039
0040 inline void read(StdObjMgt_ReadData& theReadData)
0041 {
0042 theReadData >> myTShape >> myLocation >> myOrient;
0043 }
0044
0045
0046 inline void write(StdObjMgt_WriteData& theWriteData) const
0047 {
0048 theWriteData << myTShape << myLocation << myOrient;
0049 }
0050
0051 protected:
0052 Handle(StdPersistent_TopoDS::TShape) myTShape;
0053 StdObject_Location myLocation;
0054 Standard_Integer myOrient;
0055
0056 friend StdObjMgt_ReadData& operator>>(StdObjMgt_ReadData&, StdObject_Shape&);
0057 friend StdObjMgt_WriteData& operator<<(StdObjMgt_WriteData&, const StdObject_Shape&);
0058 };
0059
0060
0061 inline StdObjMgt_ReadData& operator>>(StdObjMgt_ReadData& theReadData, StdObject_Shape& theShape)
0062 {
0063 StdObjMgt_ReadData::ObjectSentry aSentry(theReadData);
0064 theShape.read(theReadData);
0065 return theReadData;
0066 }
0067
0068
0069 inline StdObjMgt_WriteData& operator<<(StdObjMgt_WriteData& theWriteData,
0070 const StdObject_Shape& theShape)
0071 {
0072 StdObjMgt_WriteData::ObjectSentry aSentry(theWriteData);
0073 theShape.write(theWriteData);
0074 return theWriteData;
0075 }
0076
0077 #endif