0024275: Cppcheck warnings on uninitialized class members
[occt.git] / src / PPrsStd / PPrsStd_AISPresentation.cxx
CommitLineData
b311480e 1// Created on: 1999-07-08
2// Created by: srn
3// Copyright (c) 1999-1999 Matra Datavision
4// Copyright (c) 1999-2012 OPEN CASCADE SAS
5//
6// The content of this file is subject to the Open CASCADE Technology Public
7// License Version 6.5 (the "License"). You may not use the content of this file
8// except in compliance with the License. Please obtain a copy of the License
9// at http://www.opencascade.org and read it completely before using this file.
10//
11// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13//
14// The Original Code and all software distributed under the License is
15// distributed on an "AS IS" basis, without warranty of any kind, and the
16// Initial Developer hereby disclaims all such warranties, including without
17// limitation, any warranties of merchantability, fitness for a particular
18// purpose or non-infringement. Please see the License for the specific terms
19// and conditions governing the rights and limitations under the License.
20
7fd59977 21
22
23#include <PPrsStd_AISPresentation.ixx>
24
25
26//=======================================================================
27//function : PPrsStd_AISPresentation
28//purpose :
29//=======================================================================
30
c24d4017 31PPrsStd_AISPresentation::PPrsStd_AISPresentation() :
32 myIsDisplayed(Standard_False),
33 myTransparency(0.),
34 myColor(0),
35 myMaterial(0),
36 myWidth(0.)
7fd59977 37{}
38
39
40//=======================================================================
41//function : SetDisplayed
42//purpose :
43//=======================================================================
44
45void PPrsStd_AISPresentation::SetDisplayed (const Standard_Boolean B)
46{
47 myIsDisplayed = B ;
48}
49
50//=======================================================================
51//function : IsDisplayed
52//purpose :
53//=======================================================================
54
55Standard_Boolean PPrsStd_AISPresentation::IsDisplayed() const
56{
57 return myIsDisplayed;
58}
59
60
61//=======================================================================
62//function : SetDriverGUID
63//purpose :
64//=======================================================================
65void PPrsStd_AISPresentation::SetDriverGUID( const Handle(PCollection_HExtendedString)& guid)
66{
67 myDriverGUID = guid;
68}
69
70//=======================================================================
71//function : GetDriverGUID
72//purpose :
73//=======================================================================
74Handle(PCollection_HExtendedString) PPrsStd_AISPresentation::GetDriverGUID( void ) const
75{
76 return myDriverGUID;
77}
78
79//=======================================================================
80//function : Color
81//purpose :
82//=======================================================================
83Standard_Integer PPrsStd_AISPresentation::Color() const
84{
85 return myColor;
86}
87
88//=======================================================================
89//function : SetColor
90//purpose :
91//=======================================================================
92void PPrsStd_AISPresentation::SetColor(const Standard_Integer C)
93{
94 myColor = C;
95}
96
97//=======================================================================
98//function : Transparency
99//purpose :
100//=======================================================================
101Standard_Real PPrsStd_AISPresentation::Transparency() const
102{
103 return myTransparency;
104}
105
106//=======================================================================
107//function : SetTransparency
108//purpose :
109//=======================================================================
110void PPrsStd_AISPresentation::SetTransparency(const Standard_Real T)
111{
112 myTransparency = T;
113}
114
115//=======================================================================
116//function : Material
117//purpose :
118//=======================================================================
119Standard_Integer PPrsStd_AISPresentation::Material() const
120{
121 return myMaterial;
122}
123
124//=======================================================================
125//function : SetMaterial
126//purpose :
127//=======================================================================
128void PPrsStd_AISPresentation::SetMaterial(const Standard_Integer M)
129{
130 myMaterial = M;
131}
132
133//=======================================================================
134//function : Width
135//purpose :
136//=======================================================================
137Standard_Real PPrsStd_AISPresentation::Width() const
138{
139 return myWidth;
140}
141
142//=======================================================================
143//function : SetWidth
144//purpose :
145//=======================================================================
146void PPrsStd_AISPresentation::SetWidth(const Standard_Real W)
147{
148 myWidth = W;
149}
150