0022627: Change OCCT memory management defaults
[occt.git] / src / RWStepVisual / RWStepVisual_RWBackgroundColour.cxx
CommitLineData
7fd59977 1
2#include <RWStepVisual_RWBackgroundColour.ixx>
3#include <StepVisual_AreaOrView.hxx>
4
5
6#include <Interface_EntityIterator.hxx>
7
8
9#include <StepVisual_BackgroundColour.hxx>
10
11
12RWStepVisual_RWBackgroundColour::RWStepVisual_RWBackgroundColour () {}
13
14void RWStepVisual_RWBackgroundColour::ReadStep
15 (const Handle(StepData_StepReaderData)& data,
16 const Standard_Integer num,
17 Handle(Interface_Check)& ach,
18 const Handle(StepVisual_BackgroundColour)& ent) const
19{
20
21
22 // --- Number of Parameter Control ---
23
24 if (!data->CheckNbParams(num,1,ach,"background_colour")) return;
25
26 // --- own field : presentation ---
27
28 StepVisual_AreaOrView aPresentation;
29 //szv#4:S4163:12Mar99 `Standard_Boolean stat1 =` not needed
30 data->ReadEntity(num,1,"presentation",ach,aPresentation);
31
32 //--- Initialisation of the read entity ---
33
34
35 ent->Init(aPresentation);
36}
37
38
39void RWStepVisual_RWBackgroundColour::WriteStep
40 (StepData_StepWriter& SW,
41 const Handle(StepVisual_BackgroundColour)& ent) const
42{
43
44 // --- own field : presentation ---
45
46 SW.Send(ent->Presentation().Value());
47}
48
49
50void RWStepVisual_RWBackgroundColour::Share(const Handle(StepVisual_BackgroundColour)& ent, Interface_EntityIterator& iter) const
51{
52
53 iter.GetOneItem(ent->Presentation().Value());
54}
55