VTK
vtkOpenGLModelViewProjectionMonitor.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOpenGLModelViewProjectionMonitor
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 vtkOpenGLModelViewProjectionMonitor_h
33 #define vtkOpenGLModelViewProjectionMonitor_h
34 
35 #include "vtkRenderingOpenGLModule.h" // for export macro
36 #include "vtkObject.h"
37 
38 class VTKRENDERINGOPENGL_EXPORT vtkOpenGLModelViewProjectionMonitor : public vtkObject
39 {
40 public:
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
48  bool StateChanged();
49 
52  void Update();
53 
54  //BTX
56 
57  void SetProjection(float *val);
58  void SetModelView(float *val);
59  //ETX
61 
62 protected:
64  { this->Initialize(); }
65 
67 
68  void Initialize();
69 
70 private:
71  float Projection[16];
72  float ModelView[16];
73  long long UpTime;
74 
75 private:
77  void operator=(const vtkOpenGLModelViewProjectionMonitor &); // Not implemented
78 };
79 
80 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:61
virtual void Update()
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
static vtkObject * New()