VTK  9.2.6
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 "vtkRenderingOpenVRModule.h" // For export macro
27 #include "vtkVRModel.h"
28 #include <openvr.h> // for ivars
29 
30 class VTKRENDERINGOPENVR_EXPORT vtkOpenVRModel : public vtkVRModel
31 {
32 public:
33  static vtkOpenVRModel* New();
34  vtkTypeMacro(vtkOpenVRModel, vtkVRModel);
35 
36  vr::RenderModel_t* RawModel;
37 
38 protected:
40  ~vtkOpenVRModel() override = default;
41 
42  void FillModelHelper() override;
43  void SetPositionAndTCoords() override;
44  void CreateTextureObject(vtkOpenGLRenderWindow* win) override;
45  void LoadModelAndTexture(vtkOpenGLRenderWindow* win) override;
46  vr::RenderModel_TextureMap_t* RawTexture;
47 
48 private:
49  vtkOpenVRModel(const vtkOpenVRModel&) = delete;
50  void operator=(const vtkOpenVRModel&) = delete;
51 };
52 
53 #endif
OpenGL rendering window.
virtual void SetPositionAndTCoords()=0
virtual void CreateTextureObject(vtkOpenGLRenderWindow *win)=0
virtual void FillModelHelper()=0
vr::RenderModel_TextureMap_t * RawTexture
VR device model.
Definition: vtkVRModel.h:39
virtual void LoadModelAndTexture(vtkOpenGLRenderWindow *win)=0
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
OpenVR device model.