VTK  9.2.6
vtkOpenXRCamera.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 =========================================================================*/
30 #ifndef vtkOpenXRCamera_h
31 #define vtkOpenXRCamera_h
32 
33 #include "vtkRenderingOpenXRModule.h" // For export macro
34 #include "vtkVRHMDCamera.h"
35 
36 class VTKRENDERINGOPENXR_EXPORT vtkOpenXRCamera : public vtkVRHMDCamera
37 {
38 public:
39  static vtkOpenXRCamera* New();
41 
45  void Render(vtkRenderer* ren) override;
46 
47 protected:
49  ~vtkOpenXRCamera();
50 
51  // gets the pose and projections for the left and right eyes from
52  // the openvr library
53  void UpdateWorldToEyeMatrices(vtkRenderer*) override;
55 
56 private:
57  vtkOpenXRCamera(const vtkOpenXRCamera&) = delete;
58  void operator=(const vtkOpenXRCamera&) = delete;
59 };
60 
61 #endif
static vtkOpenGLCamera * New()
virtual void UpdateWorldToEyeMatrices(vtkRenderer *)=0
OpenXR camera.
abstract specification for renderers
Definition: vtkRenderer.h:72
A superclass for HMD style cameras.
void Render(vtkRenderer *ren) override
Implement base class method.
virtual void UpdateEyeToProjectionMatrices(vtkRenderer *)=0