1 // Copyright: Matra-Datavision 1995
2 // File: GeomToIGES_GeomEntity.cxx
3 // Created: Wed Sep 13 14:29:47 1995
4 // Author: Marie Jose MARTZ
6 //rln 06.01.98 new method SetUnit
9 #include <GeomToIGES_GeomEntity.ixx>
11 #include <IGESData_IGESModel.hxx>
14 //=======================================================================
15 //function : GeomToIGES_GeomEntity
17 //=======================================================================
19 GeomToIGES_GeomEntity::GeomToIGES_GeomEntity()
24 //=======================================================================
25 //function : GeomToIGES_GeomEntity
27 //=======================================================================
29 GeomToIGES_GeomEntity::GeomToIGES_GeomEntity
30 (const GeomToIGES_GeomEntity& other)
32 TheUnitFactor = other.GetUnit();
33 TheModel = other.GetModel();
37 //=======================================================================
40 //=======================================================================
41 void GeomToIGES_GeomEntity::SetModel(const Handle(IGESData_IGESModel)& model)
44 Standard_Real unitfactor = TheModel->GlobalSection().UnitValue();
45 TheUnitFactor = unitfactor;
49 //=======================================================================
52 //=======================================================================
53 Handle(IGESData_IGESModel) GeomToIGES_GeomEntity::GetModel() const
59 //=======================================================================
62 //=======================================================================
63 void GeomToIGES_GeomEntity::SetUnit(const Standard_Real unit)
68 //=======================================================================
71 //=======================================================================
72 Standard_Real GeomToIGES_GeomEntity::GetUnit() const