VTK  9.1.0
vtkOpenVRModel.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 =========================================================================*/
23 #ifndef vtkOpenVRModel_h
24 #define vtkOpenVRModel_h
25 
26 #include "vtkNew.h" // for ivar
27 #include "vtkRenderingOpenVRModule.h" // For export macro
28 #include "vtkVRModel.h"
29 #include <openvr.h> // for ivars
30 
31 class VTKRENDERINGOPENVR_EXPORT vtkOpenVRModel : public vtkVRModel
32 {
33 public:
34  static vtkOpenVRModel* New();
35  vtkTypeMacro(vtkOpenVRModel, vtkVRModel);
36 
37  vr::RenderModel_t* RawModel;
38 
39 protected:
41  ~vtkOpenVRModel() override = default;
42 
43  void FillModelHelper() override;
44  void SetPositionAndTCoords() override;
47  vr::RenderModel_TextureMap_t* RawTexture;
48 
49 private:
50  vtkOpenVRModel(const vtkOpenVRModel&) = delete;
51  void operator=(const vtkOpenVRModel&) = delete;
52 };
53 
54 #endif
OpenGL rendering window.
OpenVR device model.
void CreateTextureObject(vtkOpenGLRenderWindow *win) override
void SetPositionAndTCoords() override
vr::RenderModel_TextureMap_t * RawTexture
void FillModelHelper() override
~vtkOpenVRModel() override=default
static vtkOpenVRModel * New()
void LoadModelAndTexture(vtkOpenGLRenderWindow *win) override
vr::RenderModel_t * RawModel
VR device model.
Definition: vtkVRModel.h:41