0031687: Draw Harness, ViewerTest - extend command vrenderparams with option updating...
[occt.git] / src / StepVisual / StepVisual_SurfaceStyleRendering.cxx
1 // Created on : Thu May 14 15:13:19 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_SurfaceStyleRendering.hxx>
18
19 IMPLEMENT_STANDARD_RTTIEXT(StepVisual_SurfaceStyleRendering, Standard_Transient)
20
21 //=======================================================================
22 //function : StepVisual_SurfaceStyleRendering
23 //purpose  :
24 //=======================================================================
25
26 StepVisual_SurfaceStyleRendering::StepVisual_SurfaceStyleRendering ()
27 {
28 }
29
30 //=======================================================================
31 //function : Init
32 //purpose  :
33 //=======================================================================
34
35 void StepVisual_SurfaceStyleRendering::Init (const StepVisual_ShadingSurfaceMethod theRenderingMethod,
36                                              const Handle(StepVisual_Colour)& theSurfaceColour)
37 {
38
39   myRenderingMethod = theRenderingMethod;
40
41   mySurfaceColour = theSurfaceColour;
42 }
43
44 //=======================================================================
45 //function : RenderingMethod
46 //purpose  :
47 //=======================================================================
48
49 StepVisual_ShadingSurfaceMethod StepVisual_SurfaceStyleRendering::RenderingMethod () const
50 {
51   return myRenderingMethod;
52 }
53
54 //=======================================================================
55 //function : SetRenderingMethod
56 //purpose  :
57 //=======================================================================
58
59 void StepVisual_SurfaceStyleRendering::SetRenderingMethod (const StepVisual_ShadingSurfaceMethod theRenderingMethod)
60 {
61   myRenderingMethod = theRenderingMethod;
62 }
63
64 //=======================================================================
65 //function : SurfaceColour
66 //purpose  :
67 //=======================================================================
68
69 Handle(StepVisual_Colour) StepVisual_SurfaceStyleRendering::SurfaceColour () const
70 {
71   return mySurfaceColour;
72 }
73
74 //=======================================================================
75 //function : SetSurfaceColour
76 //purpose  :
77 //=======================================================================
78
79 void StepVisual_SurfaceStyleRendering::SetSurfaceColour (const Handle(StepVisual_Colour)& theSurfaceColour)
80 {
81   mySurfaceColour = theSurfaceColour;
82 }