VTK
vtkOpenGLCamera.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4 
5  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
6  All rights reserved.
7  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notice for more information.
12 
13 =========================================================================*/
21 #ifndef vtkOpenGLCamera_h
22 #define vtkOpenGLCamera_h
23 
24 #include "vtkRenderingOpenGL2Module.h" // For export macro
25 #include "vtkCamera.h"
26 
27 class vtkOpenGLRenderer;
28 class vtkMatrix3x3;
29 class vtkMatrix4x4;
30 
32 {
33 public:
34  static vtkOpenGLCamera *New();
35  vtkTypeMacro(vtkOpenGLCamera, vtkCamera);
36  virtual void PrintSelf(ostream& os, vtkIndent indent);
37 
39  void Render(vtkRenderer *ren);
40 
41  void UpdateViewport(vtkRenderer *ren);
42 
43  void GetKeyMatrices(vtkRenderer *ren, vtkMatrix4x4 *&WCVCMatrix,
44  vtkMatrix3x3 *&normalMatrix, vtkMatrix4x4 *&VCDCMatrix, vtkMatrix4x4 *&WCDCMatrix);
45 
46 protected:
48  ~vtkOpenGLCamera();
49 
56 
57 private:
58  vtkOpenGLCamera(const vtkOpenGLCamera&); // Not implemented.
59  void operator=(const vtkOpenGLCamera&); // Not implemented.
60 };
61 
62 #endif
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:38
#define VTKRENDERINGOPENGL2_EXPORT
record modification and/or execution time
Definition: vtkTimeStamp.h:34
abstract specification for renderers
Definition: vtkRenderer.h:62
virtual void UpdateViewport(vtkRenderer *vtkNotUsed(ren))
Definition: vtkCamera.h:476
a simple class to control print indentation
Definition: vtkIndent.h:38
a virtual camera for 3D rendering
Definition: vtkCamera.h:49
virtual void Render(vtkRenderer *)
Definition: vtkCamera.h:441
vtkMatrix4x4 * VCDCMatrix
vtkMatrix4x4 * WCVCMatrix
vtkMatrix4x4 * WCDCMatrix
vtkTimeStamp KeyMatrixTime
void PrintSelf(ostream &os, vtkIndent indent)
OpenGL renderer.
represent and manipulate 3x3 transformation matrices
Definition: vtkMatrix3x3.h:35
OpenGL camera.
static vtkCamera * New()
vtkMatrix3x3 * NormalMatrix
vtkRenderer * LastRenderer