0022922: Clean up warnings on uninitialized / unused variables
[occt.git] / src / GeomToIGES / GeomToIGES_GeomEntity.cxx
1 // Copyright:   Matra-Datavision 1995
2 // File:        GeomToIGES_GeomEntity.cxx
3 // Created:     Wed Sep 13 14:29:47 1995
4 // Author:      Marie Jose MARTZ
5 //              <mjm>
6 //rln 06.01.98 new method SetUnit
7
8
9 #include <GeomToIGES_GeomEntity.ixx>
10
11 #include <IGESData_IGESModel.hxx>
12
13
14 //=======================================================================
15 //function : GeomToIGES_GeomEntity
16 //purpose  : 
17 //=======================================================================
18
19 GeomToIGES_GeomEntity::GeomToIGES_GeomEntity()
20 {
21 }
22
23
24 //=======================================================================
25 //function : GeomToIGES_GeomEntity
26 //purpose  : 
27 //=======================================================================
28
29 GeomToIGES_GeomEntity::GeomToIGES_GeomEntity
30 (const GeomToIGES_GeomEntity& other)
31 {
32   TheUnitFactor = other.GetUnit();
33   TheModel      = other.GetModel();
34 }
35
36
37 //=======================================================================
38 //function : SetModel
39 //purpose  : 
40 //=======================================================================
41 void GeomToIGES_GeomEntity::SetModel(const Handle(IGESData_IGESModel)& model)
42 {  
43   TheModel = model;  
44   Standard_Real unitfactor = TheModel->GlobalSection().UnitValue();
45   TheUnitFactor = unitfactor;
46 }
47
48
49 //=======================================================================
50 //function : GetModel
51 //purpose  : 
52 //=======================================================================
53 Handle(IGESData_IGESModel) GeomToIGES_GeomEntity::GetModel() const
54
55   return TheModel; 
56 }
57
58
59 //=======================================================================
60 //function : GetUnit
61 //purpose  : 
62 //=======================================================================
63 void GeomToIGES_GeomEntity::SetUnit(const Standard_Real unit)
64 {
65   TheUnitFactor = unit;
66 }
67
68 //=======================================================================
69 //function : GetUnit
70 //purpose  : 
71 //=======================================================================
72 Standard_Real GeomToIGES_GeomEntity::GetUnit() const
73 {
74   return TheUnitFactor;
75 }  
76
77