0032306: Draw Harness, ViewerTest - move window message processing to TKService
[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 #include <Standard_Dump.hxx>
27
28 //-Aliases
29 //-Global data definitions
30 //      -- la couleur associee au fond d'ecran
31 //      MyColor :       Color;
32 //-Constructors
33 //-Destructors
34 //-Methods, in order
35 Aspect_Background::Aspect_Background () {
36
37 Quantity_Color MatraGray (Quantity_NOC_MATRAGRAY);
38
39         MyColor = MatraGray;
40
41 }
42
43 Aspect_Background::Aspect_Background (const Quantity_Color& AColor) {
44
45         MyColor = AColor;
46
47 }
48
49 void Aspect_Background::SetColor (const Quantity_Color& AColor) {
50
51         MyColor = AColor;
52
53 }
54
55 Quantity_Color Aspect_Background::Color () const {
56
57         return (MyColor);
58
59 }
60
61 // =======================================================================
62 // function : DumpJson
63 // purpose  :
64 // =======================================================================
65 void Aspect_Background::DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth) const
66 {
67   OCCT_DUMP_CLASS_BEGIN (theOStream, Aspect_Background)
68
69   OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &MyColor)
70 }