File indexing completed on 2026-05-12 08:46:29
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _BRepToIGESBRep_Entity_HeaderFile
0018 #define _BRepToIGESBRep_Entity_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <TopTools_IndexedMapOfShape.hxx>
0025 #include <TColStd_IndexedMapOfTransient.hxx>
0026 #include <TColStd_SequenceOfTransient.hxx>
0027 #include <BRepToIGES_BREntity.hxx>
0028 #include <Standard_Integer.hxx>
0029 #include <Message_ProgressRange.hxx>
0030
0031 class IGESSolid_EdgeList;
0032 class IGESSolid_VertexList;
0033 class TopoDS_Vertex;
0034 class TopoDS_Edge;
0035 class IGESData_IGESEntity;
0036 class TopoDS_Shape;
0037 class TopoDS_Face;
0038 class IGESSolid_Loop;
0039 class TopoDS_Wire;
0040 class IGESSolid_Face;
0041 class IGESSolid_Shell;
0042 class TopoDS_Shell;
0043 class IGESSolid_ManifoldSolid;
0044 class TopoDS_Solid;
0045 class TopoDS_CompSolid;
0046 class TopoDS_Compound;
0047
0048
0049 class BRepToIGESBRep_Entity : public BRepToIGES_BREntity
0050 {
0051 public:
0052 DEFINE_STANDARD_ALLOC
0053
0054
0055 Standard_EXPORT BRepToIGESBRep_Entity();
0056
0057
0058 Standard_EXPORT void Clear();
0059
0060
0061 Standard_EXPORT void TransferVertexList();
0062
0063
0064 Standard_EXPORT Standard_Integer IndexVertex(const TopoDS_Vertex& myvertex) const;
0065
0066
0067
0068 Standard_EXPORT Standard_Integer AddVertex(const TopoDS_Vertex& myvertex);
0069
0070
0071 Standard_EXPORT void TransferEdgeList();
0072
0073
0074 Standard_EXPORT Standard_Integer IndexEdge(const TopoDS_Edge& myedge) const;
0075
0076
0077
0078 Standard_EXPORT Standard_Integer AddEdge(const TopoDS_Edge& myedge,
0079 const Handle(IGESData_IGESEntity)& mycurve3d);
0080
0081
0082
0083 Standard_EXPORT virtual Handle(IGESData_IGESEntity) TransferShape(
0084 const TopoDS_Shape& start,
0085 const Message_ProgressRange& theProgress = Message_ProgressRange()) Standard_OVERRIDE;
0086
0087
0088
0089 Standard_EXPORT Handle(IGESData_IGESEntity) TransferEdge(const TopoDS_Edge& myedge);
0090
0091
0092
0093 Standard_EXPORT Handle(IGESData_IGESEntity) TransferEdge(const TopoDS_Edge& myedge,
0094 const TopoDS_Face& myface,
0095 const Standard_Real length);
0096
0097
0098
0099
0100 Standard_EXPORT Handle(IGESSolid_Loop) TransferWire(const TopoDS_Wire& mywire,
0101 const TopoDS_Face& myface,
0102 const Standard_Real length);
0103
0104
0105
0106 Standard_EXPORT Handle(IGESSolid_Face) TransferFace(const TopoDS_Face& start);
0107
0108
0109
0110 Standard_EXPORT Handle(IGESSolid_Shell) TransferShell(
0111 const TopoDS_Shell& start,
0112 const Message_ProgressRange& theProgress = Message_ProgressRange());
0113
0114
0115
0116 Standard_EXPORT Handle(IGESSolid_ManifoldSolid) TransferSolid(
0117 const TopoDS_Solid& start,
0118 const Message_ProgressRange& theProgress = Message_ProgressRange());
0119
0120
0121
0122 Standard_EXPORT Handle(IGESData_IGESEntity) TransferCompSolid(
0123 const TopoDS_CompSolid& start,
0124 const Message_ProgressRange& theProgress = Message_ProgressRange());
0125
0126
0127
0128 Standard_EXPORT Handle(IGESData_IGESEntity) TransferCompound(
0129 const TopoDS_Compound& start,
0130 const Message_ProgressRange& theProgress = Message_ProgressRange());
0131
0132 protected:
0133 private:
0134 TopTools_IndexedMapOfShape myVertices;
0135 TopTools_IndexedMapOfShape myEdges;
0136 TColStd_SequenceOfTransient myCurves;
0137 Handle(IGESSolid_EdgeList) myEdgeList;
0138 Handle(IGESSolid_VertexList) myVertexList;
0139 };
0140
0141 #endif