2 #include <RWStepShape_RWRevolvedAreaSolid.ixx>
3 #include <StepGeom_Axis1Placement.hxx>
4 #include <StepGeom_CurveBoundedSurface.hxx>
7 #include <Interface_EntityIterator.hxx>
10 #include <StepShape_RevolvedAreaSolid.hxx>
13 RWStepShape_RWRevolvedAreaSolid::RWStepShape_RWRevolvedAreaSolid () {}
15 void RWStepShape_RWRevolvedAreaSolid::ReadStep
16 (const Handle(StepData_StepReaderData)& data,
17 const Standard_Integer num,
18 Handle(Interface_Check)& ach,
19 const Handle(StepShape_RevolvedAreaSolid)& ent) const
23 // --- Number of Parameter Control ---
25 if (!data->CheckNbParams(num,4,ach,"revolved_area_solid")) return;
27 // --- inherited field : name ---
29 Handle(TCollection_HAsciiString) aName;
30 //szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
31 data->ReadString (num,1,"name",ach,aName);
33 // --- inherited field : sweptArea ---
35 Handle(StepGeom_CurveBoundedSurface) aSweptArea;
36 //szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
37 data->ReadEntity(num, 2,"swept_area", ach, STANDARD_TYPE(StepGeom_CurveBoundedSurface), aSweptArea);
39 // --- own field : axis ---
41 Handle(StepGeom_Axis1Placement) aAxis;
42 //szv#4:S4163:12Mar99 `Standard_Boolean stat3 =` not needed
43 data->ReadEntity(num, 3,"axis", ach, STANDARD_TYPE(StepGeom_Axis1Placement), aAxis);
45 // --- own field : angle ---
48 //szv#4:S4163:12Mar99 `Standard_Boolean stat4 =` not needed
49 data->ReadReal (num,4,"angle",ach,aAngle);
51 //--- Initialisation of the read entity ---
54 ent->Init(aName, aSweptArea, aAxis, aAngle);
58 void RWStepShape_RWRevolvedAreaSolid::WriteStep
59 (StepData_StepWriter& SW,
60 const Handle(StepShape_RevolvedAreaSolid)& ent) const
63 // --- inherited field name ---
67 // --- inherited field sweptArea ---
69 SW.Send(ent->SweptArea());
71 // --- own field : axis ---
75 // --- own field : angle ---
77 SW.Send(ent->Angle());
81 void RWStepShape_RWRevolvedAreaSolid::Share(const Handle(StepShape_RevolvedAreaSolid)& ent, Interface_EntityIterator& iter) const
84 iter.GetOneItem(ent->SweptArea());
87 iter.GetOneItem(ent->Axis());