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 =========================================================================*/
23 #ifndef vtkOpenGLCamera_h
24 #define vtkOpenGLCamera_h
25 
26 #include "vtkRenderingOpenGLModule.h" // For export macro
27 #include "vtkCamera.h"
28 
29 class vtkOpenGLRenderer;
30 
31 class VTKRENDERINGOPENGL_EXPORT vtkOpenGLCamera : public vtkCamera
32 {
33 public:
34  static vtkOpenGLCamera *New();
35  vtkTypeMacro(vtkOpenGLCamera, vtkCamera);
36  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
37 
41  void Render(vtkRenderer *ren);
42 
43  void UpdateViewport(vtkRenderer *ren);
44 
45 protected:
48 private:
49  vtkOpenGLCamera(const vtkOpenGLCamera&) VTK_DELETE_FUNCTION;
50  void operator=(const vtkOpenGLCamera&) VTK_DELETE_FUNCTION;
51 };
52 
53 #endif
abstract specification for renderers
Definition: vtkRenderer.h:63
virtual void UpdateViewport(vtkRenderer *vtkNotUsed(ren))
Update the viewport.
Definition: vtkCamera.h:592
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:544
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
OpenGL renderer.
OpenGL camera.
static vtkCamera * New()
Construct camera instance with its focal point at the origin, and position=(0,0,1).