VTK  9.4.20241226
vtkBackgroundColorMonitor.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
20#ifndef vtkBackgroundColorMonitor_h
21#define vtkBackgroundColorMonitor_h
22
23#include "vtkObject.h"
24#include "vtkRenderingCoreModule.h" // for export macro
25
26VTK_ABI_NAMESPACE_BEGIN
27class vtkRenderer;
28
29class VTKRENDERINGCORE_EXPORT vtkBackgroundColorMonitor : public vtkObject
30{
31public:
34 void PrintSelf(ostream& os, vtkIndent indent) override;
35
44
49 void Update(vtkRenderer* ren);
50
51protected:
53 ~vtkBackgroundColorMonitor() override = default;
54
55private:
56 unsigned int UpTime;
57 bool Gradient;
58 double Color1[3];
59 double Color2[3];
60
62 void operator=(const vtkBackgroundColorMonitor&) = delete;
63};
64
65VTK_ABI_NAMESPACE_END
66#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:108
abstract base class for most VTK objects
Definition vtkObject.h:162
abstract specification for renderers