Integration of OCCT 6.5.0 from SVN
[occt.git] / src / RWStepFEA / RWStepFEA_RWAlignedCurve3dElementCoordinateSystem.cxx
1 // File:        RWStepFEA_RWAlignedCurve3dElementCoordinateSystem.cxx
2 // Created:     Thu Dec 12 17:51:03 2002 
3 // Author:      data exchange team
4 // Generator:   ExpToCas (EXPRESS -> CASCADE/XSTEP Translator) V1.2
5 // Copyright:   Open CASCADE 2002
6
7 #include <RWStepFEA_RWAlignedCurve3dElementCoordinateSystem.ixx>
8
9 //=======================================================================
10 //function : RWStepFEA_RWAlignedCurve3dElementCoordinateSystem
11 //purpose  : 
12 //=======================================================================
13
14 RWStepFEA_RWAlignedCurve3dElementCoordinateSystem::RWStepFEA_RWAlignedCurve3dElementCoordinateSystem ()
15 {
16 }
17
18 //=======================================================================
19 //function : ReadStep
20 //purpose  : 
21 //=======================================================================
22
23 void RWStepFEA_RWAlignedCurve3dElementCoordinateSystem::ReadStep (const Handle(StepData_StepReaderData)& data,
24                                                                   const Standard_Integer num,
25                                                                   Handle(Interface_Check)& ach,
26                                                                   const Handle(StepFEA_AlignedCurve3dElementCoordinateSystem) &ent) const
27 {
28   // Check number of parameters
29   if ( ! data->CheckNbParams(num,2,ach,"aligned_curve3d_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 AlignedCurve3dElementCoordinateSystem
37
38   Handle(StepFEA_FeaAxis2Placement3d) aCoordinateSystem;
39   data->ReadEntity (num, 2, "coordinate_system", ach, STANDARD_TYPE(StepFEA_FeaAxis2Placement3d), aCoordinateSystem);
40
41   // Initialize entity
42   ent->Init(aRepresentationItem_Name,
43             aCoordinateSystem);
44 }
45
46 //=======================================================================
47 //function : WriteStep
48 //purpose  : 
49 //=======================================================================
50
51 void RWStepFEA_RWAlignedCurve3dElementCoordinateSystem::WriteStep (StepData_StepWriter& SW,
52                                                                    const Handle(StepFEA_AlignedCurve3dElementCoordinateSystem) &ent) const
53 {
54
55   // Inherited fields of RepresentationItem
56
57   SW.Send (ent->StepRepr_RepresentationItem::Name());
58
59   // Own fields of AlignedCurve3dElementCoordinateSystem
60
61   SW.Send (ent->CoordinateSystem());
62 }
63
64 //=======================================================================
65 //function : Share
66 //purpose  : 
67 //=======================================================================
68
69 void RWStepFEA_RWAlignedCurve3dElementCoordinateSystem::Share (const Handle(StepFEA_AlignedCurve3dElementCoordinateSystem) &ent,
70                                                                Interface_EntityIterator& iter) const
71 {
72
73   // Inherited fields of RepresentationItem
74
75   // Own fields of AlignedCurve3dElementCoordinateSystem
76
77   iter.AddItem (ent->CoordinateSystem());
78 }