Warnings on vc14 were eliminated
[occt.git] / src / Aspect / Aspect_Background.cxx
1 // Created by: NW,JPB,CAL
2 // Copyright (c) 1991-1999 Matra Datavision
3 // Copyright (c) 1999-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 //-Version      
17 //-Design       Declaration des variables specifiques aux fonds d'ecran.
18 //-Warning      Un fond d'ecran est defini par une couleur.
19 //-References   
20 //-Language     C++ 2.0
21 //-Declarations
22 // for the class
23
24 #include <Aspect_Background.hxx>
25 #include <Quantity_Color.hxx>
26
27 //-Aliases
28 //-Global data definitions
29 //      -- la couleur associee au fond d'ecran
30 //      MyColor :       Color;
31 //-Constructors
32 //-Destructors
33 //-Methods, in order
34 Aspect_Background::Aspect_Background () {
35
36 Quantity_Color MatraGray (Quantity_NOC_MATRAGRAY);
37
38         MyColor = MatraGray;
39
40 }
41
42 Aspect_Background::Aspect_Background (const Quantity_Color& AColor) {
43
44         MyColor = AColor;
45
46 }
47
48 void Aspect_Background::SetColor (const Quantity_Color& AColor) {
49
50         MyColor = AColor;
51
52 }
53
54 Quantity_Color Aspect_Background::Color () const {
55
56         return (MyColor);
57
58 }