0024275: Cppcheck warnings on uninitialized class members
[occt.git] / src / PXCAFDoc / PXCAFDoc_Material.cxx
CommitLineData
b311480e 1// Created on: 2008-12-10
2// Created by: Pavel TELKOV
3// Copyright (c) 2008-2012 OPEN CASCADE SAS
4//
5// The content of this file is subject to the Open CASCADE Technology Public
6// License Version 6.5 (the "License"). You may not use the content of this file
7// except in compliance with the License. Please obtain a copy of the License
8// at http://www.opencascade.org and read it completely before using this file.
9//
10// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
11// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
12//
13// The Original Code and all software distributed under the License is
14// distributed on an "AS IS" basis, without warranty of any kind, and the
15// Initial Developer hereby disclaims all such warranties, including without
16// limitation, any warranties of merchantability, fitness for a particular
17// purpose or non-infringement. Please see the License for the specific terms
18// and conditions governing the rights and limitations under the License.
19
7fd59977 20
21#include <PXCAFDoc_Material.ixx>
22
23//=======================================================================
24//function : PXCAFDoc_Material
25//purpose :
26//=======================================================================
27
c24d4017 28PXCAFDoc_Material::PXCAFDoc_Material () : myDensity(0.)
7fd59977 29{}
30
31//=======================================================================
32//function : PXCAFDoc_Material
33//purpose :
34//=======================================================================
35
36PXCAFDoc_Material::PXCAFDoc_Material
37 (const Handle(PCollection_HAsciiString)& theName,
38 const Handle(PCollection_HAsciiString)& theDescr,
39 const Standard_Real theDensity,
40 const Handle(PCollection_HAsciiString)& theDensName,
41 const Handle(PCollection_HAsciiString)& theDensValType)
42: myName(theName),
43 myDescr(theDescr),
44 myDensity(theDensity),
45 myDensName(theDensName),
46 myDensValType(theDensValType)
47{}
48
49//=======================================================================
50//function : Set
51//purpose :
52//=======================================================================
53
54void PXCAFDoc_Material::Set
55 (const Handle(PCollection_HAsciiString)& theName,
56 const Handle(PCollection_HAsciiString)& theDescr,
57 const Standard_Real theDensity,
58 const Handle(PCollection_HAsciiString)& theDensName,
59 const Handle(PCollection_HAsciiString)& theDensValType)
60{
61 myName = theName;
62 myDescr = theDescr;
63 myDensity = theDensity;
64 myDensName = theDensName;
65 myDensValType = theDensValType;
66}
67
68//=======================================================================
69//function : GetDensity
70//purpose :
71//=======================================================================
72
73Standard_Real PXCAFDoc_Material::GetDensity () const
74{
75 return myDensity;
76}
77
78//=======================================================================
79//function : GetName
80//purpose :
81//=======================================================================
82
83Handle(PCollection_HAsciiString) PXCAFDoc_Material::GetName () const
84{
85 return myName;
86}
87
88//=======================================================================
89//function : GetDescription
90//purpose :
91//=======================================================================
92
93Handle(PCollection_HAsciiString) PXCAFDoc_Material::GetDescription () const
94{
95 return myDescr;
96}
97
98//=======================================================================
99//function : GetDensName
100//purpose :
101//=======================================================================
102
103Handle(PCollection_HAsciiString) PXCAFDoc_Material::GetDensName () const
104{
105 return myDensName;
106}
107
108//=======================================================================
109//function : GetDensValType
110//purpose :
111//=======================================================================
112
113Handle(PCollection_HAsciiString) PXCAFDoc_Material::GetDensValType () const
114{
115 return myDensValType;
116}