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 =========================================================================*/
33 #ifndef vtkOpenGLModelViewProjectionMonitor_h
34 #define vtkOpenGLModelViewProjectionMonitor_h
35 
36 #include "vtkRenderingOpenGLModule.h" // for export macro
37 #include "vtkObject.h"
38 
39 class VTKRENDERINGOPENGL_EXPORT vtkOpenGLModelViewProjectionMonitor : public vtkObject
40 {
41 public:
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
53  bool StateChanged();
54 
59  void Update();
60 
62 
65  void SetProjection(float *val);
66  void SetModelView(float *val);
68 
69 protected:
71  { this->Initialize(); }
72 
74 
75  void Initialize();
76 
77 private:
78  float Projection[16];
79  float ModelView[16];
80  long long UpTime;
81 
82 private:
84  void operator=(const vtkOpenGLModelViewProjectionMonitor &) VTK_DELETE_FUNCTION;
85 };
86 
87 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:59
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void Update()
Updates the extensions string.
a simple class to control print indentation
Definition: vtkIndent.h:39
tracks state of OpenGL model-view and projection matrices.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...