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
39class VTKRENDERINGOPENGL_EXPORT vtkOpenGLModelViewProjectionMonitor : public vtkObject
40{
41public:
44 void PrintSelf(ostream& os, vtkIndent indent);
45
54
59 void Update();
60
62
65 void SetProjection(float *val);
66 void SetModelView(float *val);
68
69protected:
71 { this->Initialize(); }
72
74
75 void Initialize();
76
77private:
78 float Projection[16];
79 float ModelView[16];
80 long long UpTime;
81
82private:
84 void operator=(const vtkOpenGLModelViewProjectionMonitor &) VTK_DELETE_FUNCTION;
85};
86
87#endif
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract base class for most VTK objects
Definition: vtkObject.h:60
tracks state of OpenGL model-view and projection matrices.
void SetProjection(float *val)
Set the matrix data.
bool StateChanged()
Fetches the current GL state and updates the internal copies of the data.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static vtkOpenGLModelViewProjectionMonitor * New()
void Update()
Fetch and store OpenGL model view matrix.