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
31class VTKRENDERINGEXTERNAL_EXPORT vtkExternalOpenGLCamera :
32 public vtkOpenGLCamera
33{
34public:
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
54protected:
57
62 void ComputeProjectionTransform(double aspect,
63 double nearz,
64 double farz);
65
71
72private:
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
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 Render(vtkRenderer *ren)
Implement base class method.
void ComputeViewTransform()
These methods should only be used within vtkCamera.cxx.
void SetViewTransformMatrix(const double elements[16])
Set the view transform matrix.
void ComputeProjectionTransform(double aspect, double nearz, double farz)
These methods should only be used within vtkCamera.cxx.
a simple class to control print indentation
Definition: vtkIndent.h:40
OpenGL camera.
abstract specification for renderers
Definition: vtkRenderer.h:64