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