Integration of OCCT 6.5.0 from SVN
[occt.git] / src / StepVisual / StepVisual_ColourRgb.cxx
CommitLineData
7fd59977 1#include <StepVisual_ColourRgb.ixx>
2
3
4StepVisual_ColourRgb::StepVisual_ColourRgb () {}
5
6void StepVisual_ColourRgb::Init(
7 const Handle(TCollection_HAsciiString)& aName)
8{
9
10 StepVisual_ColourSpecification::Init(aName);
11}
12
13void StepVisual_ColourRgb::Init(
14 const Handle(TCollection_HAsciiString)& aName,
15 const Standard_Real aRed,
16 const Standard_Real aGreen,
17 const Standard_Real aBlue)
18{
19 // --- classe own fields ---
20 red = aRed;
21 green = aGreen;
22 blue = aBlue;
23 // --- classe inherited fields ---
24 StepVisual_ColourSpecification::Init(aName);
25}
26
27
28void StepVisual_ColourRgb::SetRed(const Standard_Real aRed)
29{
30 red = aRed;
31}
32
33Standard_Real StepVisual_ColourRgb::Red() const
34{
35 return red;
36}
37
38void StepVisual_ColourRgb::SetGreen(const Standard_Real aGreen)
39{
40 green = aGreen;
41}
42
43Standard_Real StepVisual_ColourRgb::Green() const
44{
45 return green;
46}
47
48void StepVisual_ColourRgb::SetBlue(const Standard_Real aBlue)
49{
50 blue = aBlue;
51}
52
53Standard_Real StepVisual_ColourRgb::Blue() const
54{
55 return blue;
56}