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 =========================================================================*/
30 #ifndef vtkOpenGLModelViewProjectionMonitor_h
31 #define vtkOpenGLModelViewProjectionMonitor_h
32 
33 #include "vtkRenderingOpenGLModule.h" // for export macro
34 #include "vtkObject.h"
35 
36 class VTKRENDERINGOPENGL_EXPORT vtkOpenGLModelViewProjectionMonitor : public vtkObject
37 {
38 public:
41  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
42 
50  bool StateChanged();
51 
56  void Update();
57 
59 
62  void SetProjection(float *val);
63  void SetModelView(float *val);
65 
66 protected:
68  { this->Initialize(); }
69 
71 
72  void Initialize();
73 
74 private:
75  float Projection[16];
76  float ModelView[16];
77  long long UpTime;
78 
79 private:
81  void operator=(const vtkOpenGLModelViewProjectionMonitor &) VTK_DELETE_FUNCTION;
82 };
83 
84 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:53
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:33
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...