VTK
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 =========================================================================*/
34 #ifndef vtkBackgroundColorMonitor_h
35 #define vtkBackgroundColorMonitor_h
36 
37 #include "vtkRenderingCoreModule.h" // for export macro
38 #include "vtkObject.h"
39 
40 class vtkRenderer;
41 
43 {
44 public:
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
53  bool StateChanged(vtkRenderer *ren);
54 
57  void Update(vtkRenderer *ren);
58 
59 protected:
62 
63 private:
64  unsigned int UpTime;
65  bool Gradient;
66  double Color1[3];
67  double Color2[3];
68 
69 private:
70  vtkBackgroundColorMonitor(const vtkBackgroundColorMonitor&); // Not implemented
71  void operator=(const vtkBackgroundColorMonitor&); // Not implemented
72 };
73 
74 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:61
abstract specification for renderers
Definition: vtkRenderer.h:63
virtual void Update()
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKRENDERINGCORE_EXPORT
static vtkObject * New()