2 #include <RWStepVisual_RWPlanarExtent.ixx>
5 RWStepVisual_RWPlanarExtent::RWStepVisual_RWPlanarExtent () {}
7 void RWStepVisual_RWPlanarExtent::ReadStep
8 (const Handle(StepData_StepReaderData)& data,
9 const Standard_Integer num,
10 Handle(Interface_Check)& ach,
11 const Handle(StepVisual_PlanarExtent)& ent) const
15 // --- Number of Parameter Control ---
17 if (!data->CheckNbParams(num,3,ach,"planar_extent")) return;
19 // --- inherited field : name ---
21 Handle(TCollection_HAsciiString) aName;
22 //szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
23 data->ReadString (num,1,"name",ach,aName);
25 // --- own field : sizeInX ---
27 Standard_Real aSizeInX;
28 //szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
29 data->ReadReal (num,2,"size_in_x",ach,aSizeInX);
31 // --- own field : sizeInY ---
33 Standard_Real aSizeInY;
34 //szv#4:S4163:12Mar99 `Standard_Boolean stat3 =` not needed
35 data->ReadReal (num,3,"size_in_y",ach,aSizeInY);
37 //--- Initialisation of the read entity ---
40 ent->Init(aName, aSizeInX, aSizeInY);
44 void RWStepVisual_RWPlanarExtent::WriteStep
45 (StepData_StepWriter& SW,
46 const Handle(StepVisual_PlanarExtent)& ent) const
49 // --- inherited field name ---
53 // --- own field : sizeInX ---
55 SW.Send(ent->SizeInX());
57 // --- own field : sizeInY ---
59 SW.Send(ent->SizeInY());