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
vtkOpenGLModelViewProjectionMonitor::SetModelView
void SetModelView(float *val)
vtkOpenGLModelViewProjectionMonitor::~vtkOpenGLModelViewProjectionMonitor
~vtkOpenGLModelViewProjectionMonitor()
Definition: vtkOpenGLModelViewProjectionMonitor.h:73
vtkOpenGLModelViewProjectionMonitor
tracks state of OpenGL model-view and projection matrices.
Definition: vtkOpenGLModelViewProjectionMonitor.h:40
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:60
vtkOpenGLModelViewProjectionMonitor::Initialize
void Initialize()
vtkOpenGLModelViewProjectionMonitor::vtkOpenGLModelViewProjectionMonitor
vtkOpenGLModelViewProjectionMonitor()
Definition: vtkOpenGLModelViewProjectionMonitor.h:70
vtkOpenGLModelViewProjectionMonitor::New
static vtkOpenGLModelViewProjectionMonitor * New()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkOpenGLModelViewProjectionMonitor::StateChanged
bool StateChanged()
Fetches the current GL state and updates the internal copies of the data.
vtkObject.h
vtkOpenGLModelViewProjectionMonitor::SetProjection
void SetProjection(float *val)
Set the matrix data.
vtkOpenGLModelViewProjectionMonitor::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkOpenGLModelViewProjectionMonitor::Update
void Update()
Fetch and store OpenGL model view matrix.