Integration of OCCT 6.5.0 from SVN
[occt.git] / src / PXCAFDoc / PXCAFDoc_Material.cxx
CommitLineData
7fd59977 1// File: PXCAFDoc_Material.cxx
2// Created: 10.12.08 11:46:02
3// Author: Pavel TELKOV
4// Copyright: Open CASCADE 2008
5
6#include <PXCAFDoc_Material.ixx>
7
8//=======================================================================
9//function : PXCAFDoc_Material
10//purpose :
11//=======================================================================
12
13PXCAFDoc_Material::PXCAFDoc_Material ()
14{}
15
16//=======================================================================
17//function : PXCAFDoc_Material
18//purpose :
19//=======================================================================
20
21PXCAFDoc_Material::PXCAFDoc_Material
22 (const Handle(PCollection_HAsciiString)& theName,
23 const Handle(PCollection_HAsciiString)& theDescr,
24 const Standard_Real theDensity,
25 const Handle(PCollection_HAsciiString)& theDensName,
26 const Handle(PCollection_HAsciiString)& theDensValType)
27: myName(theName),
28 myDescr(theDescr),
29 myDensity(theDensity),
30 myDensName(theDensName),
31 myDensValType(theDensValType)
32{}
33
34//=======================================================================
35//function : Set
36//purpose :
37//=======================================================================
38
39void PXCAFDoc_Material::Set
40 (const Handle(PCollection_HAsciiString)& theName,
41 const Handle(PCollection_HAsciiString)& theDescr,
42 const Standard_Real theDensity,
43 const Handle(PCollection_HAsciiString)& theDensName,
44 const Handle(PCollection_HAsciiString)& theDensValType)
45{
46 myName = theName;
47 myDescr = theDescr;
48 myDensity = theDensity;
49 myDensName = theDensName;
50 myDensValType = theDensValType;
51}
52
53//=======================================================================
54//function : GetDensity
55//purpose :
56//=======================================================================
57
58Standard_Real PXCAFDoc_Material::GetDensity () const
59{
60 return myDensity;
61}
62
63//=======================================================================
64//function : GetName
65//purpose :
66//=======================================================================
67
68Handle(PCollection_HAsciiString) PXCAFDoc_Material::GetName () const
69{
70 return myName;
71}
72
73//=======================================================================
74//function : GetDescription
75//purpose :
76//=======================================================================
77
78Handle(PCollection_HAsciiString) PXCAFDoc_Material::GetDescription () const
79{
80 return myDescr;
81}
82
83//=======================================================================
84//function : GetDensName
85//purpose :
86//=======================================================================
87
88Handle(PCollection_HAsciiString) PXCAFDoc_Material::GetDensName () const
89{
90 return myDensName;
91}
92
93//=======================================================================
94//function : GetDensValType
95//purpose :
96//=======================================================================
97
98Handle(PCollection_HAsciiString) PXCAFDoc_Material::GetDensValType () const
99{
100 return myDensValType;
101}