VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/Rendering/Core/vtkBackgroundColorMonitor.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkBackgroundColorMonitor
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00034 #ifndef vtkBackgroundColorMonitor_h
00035 #define vtkBackgroundColorMonitor_h
00036 
00037 #include "vtkRenderingCoreModule.h" // for export macro
00038 #include "vtkObject.h"
00039 
00040 class vtkRenderer;
00041 
00042 class VTKRENDERINGCORE_EXPORT vtkBackgroundColorMonitor : public vtkObject
00043 {
00044 public:
00045   static vtkBackgroundColorMonitor* New();
00046   vtkTypeMacro(vtkBackgroundColorMonitor, vtkObject);
00047   void PrintSelf(ostream& os, vtkIndent indent);
00048 
00053   bool StateChanged(vtkRenderer *ren);
00054 
00057   void Update(vtkRenderer *ren);
00058 
00059 protected:
00060   vtkBackgroundColorMonitor();
00061   ~vtkBackgroundColorMonitor(){}
00062 
00063 private:
00064   unsigned int UpTime;
00065   bool Gradient;
00066   double Color1[3];
00067   double Color2[3];
00068 
00069 private:
00070  vtkBackgroundColorMonitor(const vtkBackgroundColorMonitor&); // Not implemented
00071  void operator=(const vtkBackgroundColorMonitor&); // Not implemented
00072 };
00073 
00074 #endif