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 =========================================================================*/
25 #ifndef vtkOpenGLCamera_h
26 #define vtkOpenGLCamera_h
27 
28 #include "vtkRenderingOpenGL2Module.h" // For export macro
29 #include "vtkCamera.h"
30 
31 class vtkOpenGLRenderer;
32 class vtkMatrix3x3;
33 class vtkMatrix4x4;
34 
35 class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLCamera : public vtkCamera
36 {
37 public:
38  static vtkOpenGLCamera *New();
39  vtkTypeMacro(vtkOpenGLCamera, vtkCamera);
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
45  void Render(vtkRenderer *ren) override;
46 
47  void UpdateViewport(vtkRenderer *ren) override;
48 
49  virtual void GetKeyMatrices(vtkRenderer *ren, vtkMatrix4x4 *&WCVCMatrix,
50  vtkMatrix3x3 *&normalMatrix, vtkMatrix4x4 *&VCDCMatrix, vtkMatrix4x4 *&WCDCMatrix);
51 
52 protected:
54  ~vtkOpenGLCamera() override;
55 
62 
63 private:
64  vtkOpenGLCamera(const vtkOpenGLCamera&) = delete;
65  void operator=(const vtkOpenGLCamera&) = delete;
66 };
67 
68 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:41
record modification and/or execution time
Definition: vtkTimeStamp.h:35
abstract specification for renderers
Definition: vtkRenderer.h:63
virtual void UpdateViewport(vtkRenderer *vtkNotUsed(ren))
Update the viewport.
Definition: vtkCamera.h:638
a simple class to control print indentation
Definition: vtkIndent.h:39
a virtual camera for 3D rendering
Definition: vtkCamera.h:50
virtual void Render(vtkRenderer *)
This method causes the camera to set up whatever is required for viewing the scene.
Definition: vtkCamera.h:590
vtkMatrix4x4 * VCDCMatrix
vtkMatrix4x4 * WCVCMatrix
vtkMatrix4x4 * WCDCMatrix
vtkTimeStamp KeyMatrixTime
OpenGL renderer.
represent and manipulate 3x3 transformation matrices
Definition: vtkMatrix3x3.h:36
OpenGL camera.
static vtkCamera * New()
Construct camera instance with its focal point at the origin, and position=(0,0,1).
vtkMatrix3x3 * NormalMatrix
vtkRenderer * LastRenderer