1 -- File: BRepToIGESBRep_Entity.cdl
2 -- Created: Tue Apr 25 11:39:19 1995
3 -- Author: Marie Jose MARTZ
5 ---Copyright: Matra Datavision 1995
7 class Entity from BRepToIGESBRep inherits BREntity from BRepToIGES
10 ---Purpose : provides methods to transfer BRep entity from CASCADE to IGESBRep.
22 CompSolid from TopoDS,
24 IndexedMapOfShape from TopTools,
25 IndexedMapOfTransient from TColStd,
26 IGESEntity from IGESData,
27 IGESModel from IGESData,
28 VertexList from IGESSolid,
29 EdgeList from IGESSolid,
33 ManifoldSolid from IGESSolid,
34 CString from Standard,
35 FinderProcess from Transfer
40 returns Entity from BRepToIGESBRep;
41 ---Purpose : Creates a tool Entity
45 ---Purpose : Clears the contents of the fields
48 TransferVertexList (me : in out);
49 ---Purpose : Create the VertexList entity
53 myvertex : Vertex from TopoDS)
55 ---Purpose: Returns the index of <myvertex> in "myVertices"
59 AddVertex (me : in out;
60 myvertex : Vertex from TopoDS)
62 ---Purpose: Stores <myvertex> in "myVertices"
63 -- Returns the index of <myvertex>.
67 TransferEdgeList (me : in out);
68 ---Purpose : Transfert an Edge entity from TopoDS to IGES
72 myedge : Edge from TopoDS)
74 ---Purpose: Returns the index of <myedge> in "myEdges"
79 myedge : Edge from TopoDS;
80 mycurve3d : IGESEntity from IGESData)
82 ---Purpose: Stores <myedge> in "myEdges" and <mycurve3d> in "myCurves".
83 -- Returns the index of <myedge>.
87 TransferShape (me : in out; start : Shape from TopoDS)
88 returns IGESEntity from IGESData is redefined;
89 ---Purpose : Returns the result of the transfert of any Shape
90 -- If the transfer has failed, this member return a NullEntity.
93 TransferEdge (me : in out;
94 myedge : Edge from TopoDS)
95 returns mutable IGESEntity from IGESData;
96 ---Purpose : Transfert an Edge entity from TopoDS to IGES
97 -- If this Entity could not be converted, this member returns a NullEntity.
100 TransferEdge (me : in out;
101 myedge : Edge from TopoDS;
102 myface : Face from TopoDS;
103 length : in Real from Standard)
104 returns mutable IGESEntity from IGESData;
105 ---Purpose : Transfert an Edge entity from TopoDS to IGES
106 -- If this Entity could not be converted, this member returns a NullEntity.
109 TransferWire (me : in out;
110 mywire : Wire from TopoDS;
111 myface : Face from TopoDS;
112 length : in Real from Standard)
113 returns mutable Loop from IGESSolid;
114 ---Purpose : Transfert a Wire entity from TopoDS to IGES.
115 -- Returns the curve associated to mywire in the parametric space of myface.
116 -- If this Entity could not be converted, this member returns a NullEntity.
119 TransferFace (me : in out;
120 start : Face from TopoDS)
121 returns mutable Face from IGESSolid;
122 ---Purpose : Transfert a Face entity from TopoDS to IGES
123 -- If this Entity could not be converted, this member returns a NullEntity.
126 TransferShell (me : in out;
127 start : Shell from TopoDS)
128 returns mutable Shell from IGESSolid;
129 ---Purpose : Transfert an Shell entity from TopoDS to IGES
130 -- If this Entity could not be converted, this member returns a NullEntity.
133 TransferSolid (me : in out;
134 start : Solid from TopoDS)
135 returns mutable ManifoldSolid from IGESSolid;
136 ---Purpose : Transfert a Solid entity from TopoDS to IGES
137 -- If this Entity could not be converted, this member returns a NullEntity.
140 TransferCompSolid (me : in out;
141 start : CompSolid from TopoDS)
142 returns mutable IGESEntity from IGESData;
143 ---Purpose : Transfert an CompSolid entity from TopoDS to IGES
144 -- If this Entity could not be converted, this member returns a NullEntity.
147 TransferCompound (me : in out;
148 start : Compound from TopoDS)
149 returns mutable IGESEntity from IGESData;
150 ---Purpose : Transfert a Compound entity from TopoDS to IGES
151 -- If this Entity could not be converted, this member returns a NullEntity.
155 myVertices : IndexedMapOfShape from TopTools;
156 myEdges : IndexedMapOfShape from TopTools;
157 myCurves : IndexedMapOfTransient from TColStd;
158 myEdgeList : EdgeList from IGESSolid;
159 myVertexList : VertexList from IGESSolid;