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