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 =========================================================================*/
24 #ifndef vtkExternalOpenGLCamera_h
25 #define vtkExternalOpenGLCamera_h
26 
27 #include "vtkRenderingExternalModule.h" // For export macro
28 #include "vtkOpenGLCamera.h"
29 
30 class VTKRENDERINGEXTERNAL_EXPORT vtkExternalOpenGLCamera :
31  public vtkOpenGLCamera
32 {
33 public:
34  static vtkExternalOpenGLCamera *New();
36  virtual void PrintSelf(ostream& os, vtkIndent indent);
37 
39  void Render(vtkRenderer *ren);
40 
42  void SetViewTransformMatrix(const double elements[16]);
43 
45  void SetProjectionTransformMatrix(const double elements[16]);
46 
47 protected:
50 
52 
54  void ComputeProjectionTransform(double aspect,
55  double nearz,
56  double farz);
58 
61  void ComputeViewTransform();
62 
63 private:
64  bool UserProvidedProjectionTransform;
65  bool UserProvidedViewTransform;
66 
67  vtkExternalOpenGLCamera(const vtkExternalOpenGLCamera&); // Not implemented.
68  void operator=(const vtkExternalOpenGLCamera&); // Not implemented.
69 };
70 
71 #endif
static vtkOpenGLCamera * New()
abstract specification for renderers
Definition: vtkRenderer.h:63
virtual void ComputeProjectionTransform(double aspect, double nearz, double farz)
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual void ComputeViewTransform()
virtual void PrintSelf(ostream &os, vtkIndent indent)
void Render(vtkRenderer *ren)
OpenGL camera.