VTK  9.7.1
vtkOpenXRModel.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
12 #ifndef vtkOpenXRModel_h
13 #define vtkOpenXRModel_h
14 
15 #include "vtkRenderingOpenXRModule.h" // For export macro
16 #include "vtkVRModel.h"
17 
18 #include <memory> // for std::unique_ptr
19 
20 VTK_ABI_NAMESPACE_BEGIN
21 class VTKRENDERINGOPENXR_EXPORT vtkOpenXRModel : public vtkVRModel
22 {
23 public:
24  static vtkOpenXRModel* New();
25  vtkTypeMacro(vtkOpenXRModel, vtkVRModel);
26 
27  void SetAssetPath(const std::string& assetPath) { this->AssetPath = assetPath; }
28 
29  const std::string& GetAssetPath() { return this->AssetPath; }
30 
31 protected:
33  ~vtkOpenXRModel() override;
34 
35  void FillModelHelper() override;
36  void SetPositionAndTCoords() override;
37  void CreateTextureObject(vtkOpenGLRenderWindow* win) override;
38  void LoadModelAndTexture(vtkOpenGLRenderWindow* win) override;
39 
41 
42 private:
43  vtkOpenXRModel(const vtkOpenXRModel&) = delete;
44  void operator=(const vtkOpenXRModel&) = delete;
45 
46  class vtkInternals;
47  std::unique_ptr<vtkInternals> Internal;
48 };
49 
50 VTK_ABI_NAMESPACE_END
51 #endif
OpenGL rendering window.
virtual void SetPositionAndTCoords()=0
virtual void CreateTextureObject(vtkOpenGLRenderWindow *win)=0
virtual void FillModelHelper()=0
const std::string & GetAssetPath()
VR device model.
Definition: vtkVRModel.h:29
void SetAssetPath(const std::string &assetPath)
OpenXR device model.
virtual void LoadModelAndTexture(vtkOpenGLRenderWindow *win)=0
std::string AssetPath
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...