VTK  9.7.20260912
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
19
20#ifndef vtkBackgroundColorMonitor_h
21#define vtkBackgroundColorMonitor_h
22
23#include "vtkObject.h"
24#include "vtkRenderingCoreModule.h" // for export macro
25#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
26
27VTK_ABI_NAMESPACE_BEGIN
28class vtkRenderer;
29
30class VTKRENDERINGCORE_EXPORT VTK_MARSHALAUTO vtkBackgroundColorMonitor : public vtkObject
31{
32public:
35 void PrintSelf(ostream& os, vtkIndent indent) override;
36
45
50 void Update(vtkRenderer* ren);
51
52protected:
54 ~vtkBackgroundColorMonitor() override = default;
55
56private:
57 unsigned int UpTime;
58 bool Gradient;
59 double Color1[3];
60 double Color2[3];
61
63 void operator=(const vtkBackgroundColorMonitor&) = delete;
64};
65
66VTK_ABI_NAMESPACE_END
67#endif
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 specification for renderers
#define VTK_MARSHALAUTO