0031668: Visualization - WebGL sample doesn't work on Emscripten 1.39
[occt.git] / src / StepVisual / StepVisual_SurfaceStyleTransparent.cxx
1 // Created on : Tue May 12 14:11:46 2020
2 // Created by: Igor KHOZHANOV
3 // Generator:   Express (EXPRESS -> CASCADE/XSTEP Translator) V2.0
4 // Copyright (c) Open CASCADE 2020
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #include <StepVisual_SurfaceStyleTransparent.hxx>
18
19 IMPLEMENT_STANDARD_RTTIEXT(StepVisual_SurfaceStyleTransparent, Standard_Transient)
20
21 //=======================================================================
22 //function : StepVisual_SurfaceStyleTransparent
23 //purpose  :
24 //=======================================================================
25
26 StepVisual_SurfaceStyleTransparent::StepVisual_SurfaceStyleTransparent ()
27 {
28 }
29
30 //=======================================================================
31 //function : Init
32 //purpose  :
33 //=======================================================================
34
35 void StepVisual_SurfaceStyleTransparent::Init (const Standard_Real theTransparency)
36 {
37
38   myTransparency = theTransparency;
39 }
40
41 //=======================================================================
42 //function : Transparency
43 //purpose  :
44 //=======================================================================
45
46 Standard_Real StepVisual_SurfaceStyleTransparent::Transparency () const
47 {
48   return myTransparency;
49 }
50
51 //=======================================================================
52 //function : SetTransparency
53 //purpose  :
54 //=======================================================================
55
56 void StepVisual_SurfaceStyleTransparent::SetTransparency (const Standard_Real theTransparency)
57 {
58   myTransparency = theTransparency;
59 }