VTK  9.2.20220813
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 "vtkOpenGLCamera.h"
29 #include "vtkRenderingExternalModule.h" // For export macro
30 
31 class VTKRENDERINGEXTERNAL_EXPORT vtkExternalOpenGLCamera : public vtkOpenGLCamera
32 {
33 public:
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
41  void SetViewTransformMatrix(const double elements[16]);
42 
46  void SetProjectionTransformMatrix(const double elements[16]);
47 
48 protected:
50  ~vtkExternalOpenGLCamera() override = default;
51 
56  void ComputeViewTransform() override;
57 
58 private:
59  bool UserProvidedViewTransform;
60 
62  void operator=(const vtkExternalOpenGLCamera&) = delete;
63 };
64 
65 #endif
~vtkExternalOpenGLCamera() override=default
void SetProjectionTransformMatrix(const double elements[16])
Set the projection matrix.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkExternalOpenGLCamera * New()
void ComputeViewTransform() override
These methods should only be used within vtkCamera.cxx.
void SetViewTransformMatrix(const double elements[16])
Set the view transform matrix.
a simple class to control print indentation
Definition: vtkIndent.h:119
OpenGL camera.