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
7 #include <RWStepFEA_RWAlignedCurve3dElementCoordinateSystem.ixx>
9 //=======================================================================
10 //function : RWStepFEA_RWAlignedCurve3dElementCoordinateSystem
12 //=======================================================================
14 RWStepFEA_RWAlignedCurve3dElementCoordinateSystem::RWStepFEA_RWAlignedCurve3dElementCoordinateSystem ()
18 //=======================================================================
21 //=======================================================================
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
28 // Check number of parameters
29 if ( ! data->CheckNbParams(num,2,ach,"aligned_curve3d_element_coordinate_system") ) return;
31 // Inherited fields of RepresentationItem
33 Handle(TCollection_HAsciiString) aRepresentationItem_Name;
34 data->ReadString (num, 1, "representation_item.name", ach, aRepresentationItem_Name);
36 // Own fields of AlignedCurve3dElementCoordinateSystem
38 Handle(StepFEA_FeaAxis2Placement3d) aCoordinateSystem;
39 data->ReadEntity (num, 2, "coordinate_system", ach, STANDARD_TYPE(StepFEA_FeaAxis2Placement3d), aCoordinateSystem);
42 ent->Init(aRepresentationItem_Name,
46 //=======================================================================
47 //function : WriteStep
49 //=======================================================================
51 void RWStepFEA_RWAlignedCurve3dElementCoordinateSystem::WriteStep (StepData_StepWriter& SW,
52 const Handle(StepFEA_AlignedCurve3dElementCoordinateSystem) &ent) const
55 // Inherited fields of RepresentationItem
57 SW.Send (ent->StepRepr_RepresentationItem::Name());
59 // Own fields of AlignedCurve3dElementCoordinateSystem
61 SW.Send (ent->CoordinateSystem());
64 //=======================================================================
67 //=======================================================================
69 void RWStepFEA_RWAlignedCurve3dElementCoordinateSystem::Share (const Handle(StepFEA_AlignedCurve3dElementCoordinateSystem) &ent,
70 Interface_EntityIterator& iter) const
73 // Inherited fields of RepresentationItem
75 // Own fields of AlignedCurve3dElementCoordinateSystem
77 iter.AddItem (ent->CoordinateSystem());