VTK
vtkOpenGLCamera.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4
5 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
6 All rights reserved.
7 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
8
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the above copyright notice for more information.
12
13=========================================================================*/
22#ifndef vtkOpenGLCamera_h
23#define vtkOpenGLCamera_h
24
25#include "vtkRenderingOpenGL2Module.h" // For export macro
26#include "vtkCamera.h"
27
29class vtkMatrix3x3;
30class vtkMatrix4x4;
31
32class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLCamera : public vtkCamera
33{
34public:
36 vtkTypeMacro(vtkOpenGLCamera, vtkCamera);
37 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
38
42 virtual void Render(vtkRenderer *ren);
43
44 virtual void UpdateViewport(vtkRenderer *ren);
45
46 virtual void GetKeyMatrices(vtkRenderer *ren, vtkMatrix4x4 *&WCVCMatrix,
47 vtkMatrix3x3 *&normalMatrix, vtkMatrix4x4 *&VCDCMatrix, vtkMatrix4x4 *&WCDCMatrix);
48
49protected:
52
59
60private:
61 vtkOpenGLCamera(const vtkOpenGLCamera&) VTK_DELETE_FUNCTION;
62 void operator=(const vtkOpenGLCamera&) VTK_DELETE_FUNCTION;
63};
64
65#endif
a virtual camera for 3D rendering
Definition: vtkCamera.h:51
a simple class to control print indentation
Definition: vtkIndent.h:40
represent and manipulate 3x3 transformation matrices
Definition: vtkMatrix3x3.h:37
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:42
OpenGL camera.
vtkRenderer * LastRenderer
virtual void UpdateViewport(vtkRenderer *ren)
vtkMatrix4x4 * VCDCMatrix
virtual void GetKeyMatrices(vtkRenderer *ren, vtkMatrix4x4 *&WCVCMatrix, vtkMatrix3x3 *&normalMatrix, vtkMatrix4x4 *&VCDCMatrix, vtkMatrix4x4 *&WCDCMatrix)
vtkTimeStamp KeyMatrixTime
vtkMatrix3x3 * NormalMatrix
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void Render(vtkRenderer *ren)
Implement base class method.
vtkMatrix4x4 * WCVCMatrix
static vtkOpenGLCamera * New()
vtkMatrix4x4 * WCDCMatrix
OpenGL renderer.
abstract specification for renderers
Definition: vtkRenderer.h:64
record modification and/or execution time
Definition: vtkTimeStamp.h:36