VTK  9.1.0
vtkOpenVRModel.h
Go to the documentation of this file.
1/*=========================================================================
2
3Program: Visualization Toolkit
4
5Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
6All rights reserved.
7See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
8
9This software is distributed WITHOUT ANY WARRANTY; without even
10the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11PURPOSE. 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
31class VTKRENDERINGOPENVR_EXPORT vtkOpenVRModel : public vtkVRModel
32{
33public:
35 vtkTypeMacro(vtkOpenVRModel, vtkVRModel);
36
37 vr::RenderModel_t* RawModel;
38
39protected:
41 ~vtkOpenVRModel() override = default;
42
43 void FillModelHelper() override;
44 void SetPositionAndTCoords() override;
47 vr::RenderModel_TextureMap_t* RawTexture;
48
49private:
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
void LoadModelAndTexture(vtkOpenGLRenderWindow *win) override
static vtkOpenVRModel * New()
vr::RenderModel_t * RawModel
VR device model.
Definition: vtkVRModel.h:41