VTK  9.4.20250102
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
20VTK_ABI_NAMESPACE_BEGIN
21class VTKRENDERINGOPENXR_EXPORT vtkOpenXRModel : public vtkVRModel
22{
23public:
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
31protected:
33 ~vtkOpenXRModel() override;
34
35 void FillModelHelper() override;
36 void SetPositionAndTCoords() override;
39
40 std::string AssetPath;
41
42private:
43 vtkOpenXRModel(const vtkOpenXRModel&) = delete;
44 void operator=(const vtkOpenXRModel&) = delete;
45
46 class vtkInternals;
47 std::unique_ptr<vtkInternals> Internal;
48};
49
50VTK_ABI_NAMESPACE_END
51#endif
OpenGL rendering window.
OpenXR device model.
~vtkOpenXRModel() override
void LoadModelAndTexture(vtkOpenGLRenderWindow *win) override
void SetPositionAndTCoords() override
const std::string & GetAssetPath()
void SetAssetPath(const std::string &assetPath)
void CreateTextureObject(vtkOpenGLRenderWindow *win) override
std::string AssetPath
static vtkOpenXRModel * New()
void FillModelHelper() override
VR device model.
Definition vtkVRModel.h:29