VTK
vtkExternalOpenGLCamera.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkExternalOpenGLCamera.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 =========================================================================*/
25 #ifndef vtkExternalOpenGLCamera_h
26 #define vtkExternalOpenGLCamera_h
27 
28 #include "vtkRenderingExternalModule.h" // For export macro
29 #include "vtkOpenGLCamera.h"
30 
31 class VTKRENDERINGEXTERNAL_EXPORT vtkExternalOpenGLCamera :
32  public vtkOpenGLCamera
33 {
34 public:
35  static vtkExternalOpenGLCamera *New();
37  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
38 
42  void Render(vtkRenderer *ren);
43 
47  void SetViewTransformMatrix(const double elements[16]);
48 
52  void SetProjectionTransformMatrix(const double elements[16]);
53 
54 protected:
57 
62  void ComputeProjectionTransform(double aspect,
63  double nearz,
64  double farz);
65 
70  void ComputeViewTransform();
71 
72 private:
73  bool UserProvidedProjectionTransform;
74  bool UserProvidedViewTransform;
75 
76  vtkExternalOpenGLCamera(const vtkExternalOpenGLCamera&) VTK_DELETE_FUNCTION;
77  void operator=(const vtkExternalOpenGLCamera&) VTK_DELETE_FUNCTION;
78 };
79 
80 #endif
static vtkOpenGLCamera * New()
abstract specification for renderers
Definition: vtkRenderer.h:63
virtual void ComputeProjectionTransform(double aspect, double nearz, double farz)
These methods should only be used within vtkCamera.cxx.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual void ComputeViewTransform()
These methods should only be used within vtkCamera.cxx.
void Render(vtkRenderer *ren)
Implement base class method.
OpenGL camera.