2 #include <RWStepShape_RWVertexPoint.ixx>
3 #include <StepGeom_Point.hxx>
6 #include <Interface_EntityIterator.hxx>
9 #include <StepShape_VertexPoint.hxx>
12 RWStepShape_RWVertexPoint::RWStepShape_RWVertexPoint () {}
14 void RWStepShape_RWVertexPoint::ReadStep
15 (const Handle(StepData_StepReaderData)& data,
16 const Standard_Integer num,
17 Handle(Interface_Check)& ach,
18 const Handle(StepShape_VertexPoint)& ent) const
22 // --- Number of Parameter Control ---
24 if (!data->CheckNbParams(num,2,ach,"vertex_point")) return;
26 // --- inherited field : name ---
28 Handle(TCollection_HAsciiString) aName;
29 //szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
30 data->ReadString (num,1,"name",ach,aName);
32 // --- own field : vertexGeometry ---
34 Handle(StepGeom_Point) aVertexGeometry;
35 //szv#4:S4163:12Mar99 `Standard_Boolean stat2 =` not needed
36 data->ReadEntity(num, 2,"vertex_geometry", ach, STANDARD_TYPE(StepGeom_Point), aVertexGeometry);
38 //--- Initialisation of the read entity ---
41 ent->Init(aName, aVertexGeometry);
45 void RWStepShape_RWVertexPoint::WriteStep
46 (StepData_StepWriter& SW,
47 const Handle(StepShape_VertexPoint)& ent) const
50 // --- inherited field name ---
54 // --- own field : vertexGeometry ---
56 SW.Send(ent->VertexGeometry());
60 void RWStepShape_RWVertexPoint::Share(const Handle(StepShape_VertexPoint)& ent, Interface_EntityIterator& iter) const
63 iter.GetOneItem(ent->VertexGeometry());