7fd59977 |
1 | // File: RWStepFEA_RWParametricSurface3dElementCoordinateSystem.cxx |
2 | // Created: Thu Dec 12 17:51:07 2002 |
3 | // Author: data exchange team |
4 | // Generator: ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2 |
5 | // Copyright: Open CASCADE 2002 |
6 | |
7 | #include <RWStepFEA_RWParametricSurface3dElementCoordinateSystem.ixx> |
8 | |
9 | //======================================================================= |
10 | //function : RWStepFEA_RWParametricSurface3dElementCoordinateSystem |
11 | //purpose : |
12 | //======================================================================= |
13 | |
14 | RWStepFEA_RWParametricSurface3dElementCoordinateSystem::RWStepFEA_RWParametricSurface3dElementCoordinateSystem () |
15 | { |
16 | } |
17 | |
18 | //======================================================================= |
19 | //function : ReadStep |
20 | //purpose : |
21 | //======================================================================= |
22 | |
23 | void RWStepFEA_RWParametricSurface3dElementCoordinateSystem::ReadStep (const Handle(StepData_StepReaderData)& data, |
24 | const Standard_Integer num, |
25 | Handle(Interface_Check)& ach, |
26 | const Handle(StepFEA_ParametricSurface3dElementCoordinateSystem) &ent) const |
27 | { |
28 | // Check number of parameters |
29 | if ( ! data->CheckNbParams(num,3,ach,"parametric_surface3d_element_coordinate_system") ) return; |
30 | |
31 | // Inherited fields of RepresentationItem |
32 | |
33 | Handle(TCollection_HAsciiString) aRepresentationItem_Name; |
34 | data->ReadString (num, 1, "representation_item.name", ach, aRepresentationItem_Name); |
35 | |
36 | // Own fields of ParametricSurface3dElementCoordinateSystem |
37 | |
38 | Standard_Integer aAxis; |
39 | data->ReadInteger (num, 2, "axis", ach, aAxis); |
40 | |
41 | Standard_Real aAngle; |
42 | data->ReadReal (num, 3, "angle", ach, aAngle); |
43 | |
44 | // Initialize entity |
45 | ent->Init(aRepresentationItem_Name, |
46 | aAxis, |
47 | aAngle); |
48 | } |
49 | |
50 | //======================================================================= |
51 | //function : WriteStep |
52 | //purpose : |
53 | //======================================================================= |
54 | |
55 | void RWStepFEA_RWParametricSurface3dElementCoordinateSystem::WriteStep (StepData_StepWriter& SW, |
56 | const Handle(StepFEA_ParametricSurface3dElementCoordinateSystem) &ent) const |
57 | { |
58 | |
59 | // Inherited fields of RepresentationItem |
60 | |
61 | SW.Send (ent->StepRepr_RepresentationItem::Name()); |
62 | |
63 | // Own fields of ParametricSurface3dElementCoordinateSystem |
64 | |
65 | SW.Send (ent->Axis()); |
66 | |
67 | SW.Send (ent->Angle()); |
68 | } |
69 | |
70 | //======================================================================= |
71 | //function : Share |
72 | //purpose : |
73 | //======================================================================= |
74 | |
75 | void RWStepFEA_RWParametricSurface3dElementCoordinateSystem::Share (const Handle(StepFEA_ParametricSurface3dElementCoordinateSystem) &ent, |
76 | Interface_EntityIterator& iter) const |
77 | { |
78 | |
79 | // Inherited fields of RepresentationItem |
80 | |
81 | // Own fields of ParametricSurface3dElementCoordinateSystem |
82 | } |