7fd59977 |
1 | |
2 | #include <RWStepVisual_RWSurfaceStyleSegmentationCurve.ixx> |
3 | #include <StepVisual_CurveStyle.hxx> |
4 | |
5 | |
6 | #include <Interface_EntityIterator.hxx> |
7 | |
8 | |
9 | #include <StepVisual_SurfaceStyleSegmentationCurve.hxx> |
10 | |
11 | |
12 | RWStepVisual_RWSurfaceStyleSegmentationCurve::RWStepVisual_RWSurfaceStyleSegmentationCurve () {} |
13 | |
14 | void RWStepVisual_RWSurfaceStyleSegmentationCurve::ReadStep |
15 | (const Handle(StepData_StepReaderData)& data, |
16 | const Standard_Integer num, |
17 | Handle(Interface_Check)& ach, |
18 | const Handle(StepVisual_SurfaceStyleSegmentationCurve)& ent) const |
19 | { |
20 | |
21 | |
22 | // --- Number of Parameter Control --- |
23 | |
24 | if (!data->CheckNbParams(num,1,ach,"surface_style_segmentation_curve")) return; |
25 | |
26 | // --- own field : styleOfSegmentationCurve --- |
27 | |
28 | Handle(StepVisual_CurveStyle) aStyleOfSegmentationCurve; |
29 | //szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed |
30 | data->ReadEntity(num, 1,"style_of_segmentation_curve", ach, STANDARD_TYPE(StepVisual_CurveStyle), aStyleOfSegmentationCurve); |
31 | |
32 | //--- Initialisation of the read entity --- |
33 | |
34 | |
35 | ent->Init(aStyleOfSegmentationCurve); |
36 | } |
37 | |
38 | |
39 | void RWStepVisual_RWSurfaceStyleSegmentationCurve::WriteStep |
40 | (StepData_StepWriter& SW, |
41 | const Handle(StepVisual_SurfaceStyleSegmentationCurve)& ent) const |
42 | { |
43 | |
44 | // --- own field : styleOfSegmentationCurve --- |
45 | |
46 | SW.Send(ent->StyleOfSegmentationCurve()); |
47 | } |
48 | |
49 | |
50 | void RWStepVisual_RWSurfaceStyleSegmentationCurve::Share(const Handle(StepVisual_SurfaceStyleSegmentationCurve)& ent, Interface_EntityIterator& iter) const |
51 | { |
52 | |
53 | iter.GetOneItem(ent->StyleOfSegmentationCurve()); |
54 | } |
55 | |