VTK  9.1.0
vtkBackgroundColorMonitor.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkBackgroundColorMonitor
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
32#ifndef vtkBackgroundColorMonitor_h
33#define vtkBackgroundColorMonitor_h
34
35#include "vtkObject.h"
36#include "vtkRenderingCoreModule.h" // for export macro
37
38class vtkRenderer;
39
40class VTKRENDERINGCORE_EXPORT vtkBackgroundColorMonitor : public vtkObject
41{
42public:
45 void PrintSelf(ostream& os, vtkIndent indent) override;
46
55
60 void Update(vtkRenderer* ren);
61
62protected:
64 ~vtkBackgroundColorMonitor() override = default;
65
66private:
67 unsigned int UpTime;
68 bool Gradient;
69 double Color1[3];
70 double Color2[3];
71
72private:
74 void operator=(const vtkBackgroundColorMonitor&) = delete;
75};
76
77#endif
tracks state of background color(s).
bool StateChanged(vtkRenderer *ren)
Fetches the current background color state and updates the internal copies of the data.
static vtkBackgroundColorMonitor * New()
~vtkBackgroundColorMonitor() override=default
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void Update(vtkRenderer *ren)
Update the internal state if anything changed.
a simple class to control print indentation
Definition: vtkIndent.h:113
abstract base class for most VTK objects
Definition: vtkObject.h:73
abstract specification for renderers
Definition: vtkRenderer.h:173