VTK  9.3.0
vtkOpenGLCamera.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
11 #ifndef vtkOpenGLCamera_h
12 #define vtkOpenGLCamera_h
13 
14 #include "vtkCamera.h"
15 #include "vtkRenderingOpenGL2Module.h" // For export macro
16 
17 VTK_ABI_NAMESPACE_BEGIN
18 class vtkOpenGLRenderer;
19 class vtkMatrix3x3;
20 class vtkMatrix4x4;
21 
22 class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLCamera : public vtkCamera
23 {
24 public:
25  static vtkOpenGLCamera* New();
26  vtkTypeMacro(vtkOpenGLCamera, vtkCamera);
27  void PrintSelf(ostream& os, vtkIndent indent) override;
28 
32  void Render(vtkRenderer* ren) override;
33 
34  void UpdateViewport(vtkRenderer* ren) override;
35 
36  virtual void GetKeyMatrices(vtkRenderer* ren, vtkMatrix4x4*& WCVCMatrix,
37  vtkMatrix3x3*& normalMatrix, vtkMatrix4x4*& VCDCMatrix, vtkMatrix4x4*& WCDCMatrix);
38 
39 protected:
41  ~vtkOpenGLCamera() override;
42 
49 
50 private:
51  vtkOpenGLCamera(const vtkOpenGLCamera&) = delete;
52  void operator=(const vtkOpenGLCamera&) = delete;
53 };
54 
55 VTK_ABI_NAMESPACE_END
56 #endif
a virtual camera for 3D rendering
Definition: vtkCamera.h:50
a simple class to control print indentation
Definition: vtkIndent.h:38
represent and manipulate 3x3 transformation matrices
Definition: vtkMatrix3x3.h:35
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:40
OpenGL camera.
vtkRenderer * LastRenderer
vtkMatrix4x4 * VCDCMatrix
virtual void GetKeyMatrices(vtkRenderer *ren, vtkMatrix4x4 *&WCVCMatrix, vtkMatrix3x3 *&normalMatrix, vtkMatrix4x4 *&VCDCMatrix, vtkMatrix4x4 *&WCDCMatrix)
vtkTimeStamp KeyMatrixTime
vtkMatrix3x3 * NormalMatrix
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkMatrix4x4 * WCVCMatrix
void Render(vtkRenderer *ren) override
Implement base class method.
void UpdateViewport(vtkRenderer *ren) override
~vtkOpenGLCamera() override
static vtkOpenGLCamera * New()
vtkMatrix4x4 * WCDCMatrix
OpenGL renderer.
abstract specification for renderers
Definition: vtkRenderer.h:71
record modification and/or execution time
Definition: vtkTimeStamp.h:34