1 // Created by: NW,JPB,CAL
2 // Copyright (c) 1991-1999 Matra Datavision
3 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
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.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
17 //-Design Declaration des variables specifiques aux fonds d'ecran.
18 //-Warning Un fond d'ecran est defini par une couleur.
24 #include <Aspect_Background.hxx>
25 #include <Quantity_Color.hxx>
26 #include <Standard_Dump.hxx>
29 //-Global data definitions
30 // -- la couleur associee au fond d'ecran
35 Aspect_Background::Aspect_Background () {
37 Quantity_Color MatraGray (Quantity_NOC_MATRAGRAY);
43 Aspect_Background::Aspect_Background (const Quantity_Color& AColor) {
49 void Aspect_Background::SetColor (const Quantity_Color& AColor) {
55 Quantity_Color Aspect_Background::Color () const {
61 // =======================================================================
62 // function : DumpJson
64 // =======================================================================
65 void Aspect_Background::DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth) const
67 OCCT_DUMP_CLASS_BEGIN (theOStream, Aspect_Background)
69 OCCT_DUMP_FIELD_VALUES_DUMPED (theOStream, theDepth, &MyColor)