VTK
vtkOpenGLCamera.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOpenGLCamera.h
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 =========================================================================*/
26 #ifndef vtkOpenGLCamera_h
27 #define vtkOpenGLCamera_h
28 
29 #include "vtkRenderingOpenGLModule.h" // For export macro
30 #include "vtkCamera.h"
31 
32 class vtkOpenGLRenderer;
33 
34 class VTKRENDERINGOPENGL_EXPORT vtkOpenGLCamera : public vtkCamera
35 {
36 public:
37  static vtkOpenGLCamera *New();
38  vtkTypeMacro(vtkOpenGLCamera, vtkCamera);
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
44  void Render(vtkRenderer *ren) override;
45 
46  void UpdateViewport(vtkRenderer *ren) override;
47 
48 protected:
50  ~vtkOpenGLCamera() override {}
51 private:
52  vtkOpenGLCamera(const vtkOpenGLCamera&) = delete;
53  void operator=(const vtkOpenGLCamera&) = delete;
54 };
55 
56 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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
~vtkOpenGLCamera() override
OpenGL renderer.
OpenGL camera.
static vtkCamera * New()
Construct camera instance with its focal point at the origin, and position=(0,0,1).